|
Java example source code file (Updater.java)
The Updater.java Java example source codepackage org.deeplearning4j.nn.api; import org.deeplearning4j.nn.gradient.Gradient; import org.deeplearning4j.nn.updater.aggregate.UpdaterAggregator; import java.io.Serializable; /** * Update the model * * @author Adam Gibson */ public interface Updater extends Serializable, Cloneable { /** * Updater: updates the model * * @param layer * @param gradient * @param iteration */ void update(Layer layer, Gradient gradient, int iteration, int miniBatchSize); /** Given this updater, get an UpdaterAggregator that can be used to combine the current state (if any) * of this updater with the state of other updaters. * Typically used only in distributed learning scenarios (where each copy of the network has an updater * that needs to be combined) * @param addThis whether to add the Updater to the UpdaterAggregator, or just return an empy aggregator */ UpdaterAggregator getAggregator(boolean addThis); Updater clone(); } Other Java examples (source code examples)Here is a short list of links related to this Java Updater.java source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.