Uses of Class
org.deeplearning4j.nn.graph.ComputationGraph
-
-
Uses of ComputationGraph in org.deeplearning4j.earlystopping.saver
Methods in org.deeplearning4j.earlystopping.saver that return ComputationGraph Modifier and Type Method Description ComputationGraph
LocalFileGraphSaver. getBestModel()
ComputationGraph
LocalFileGraphSaver. getLatestModel()
Methods in org.deeplearning4j.earlystopping.saver with parameters of type ComputationGraph Modifier and Type Method Description void
LocalFileGraphSaver. saveBestModel(ComputationGraph net, double score)
void
LocalFileGraphSaver. saveLatestModel(ComputationGraph net, double score)
-
Uses of ComputationGraph in org.deeplearning4j.earlystopping.scorecalc
Methods in org.deeplearning4j.earlystopping.scorecalc with parameters of type ComputationGraph Modifier and Type Method Description double
DataSetLossCalculatorCG. calculateScore(ComputationGraph network)
Deprecated. -
Uses of ComputationGraph in org.deeplearning4j.earlystopping.trainer
Constructors in org.deeplearning4j.earlystopping.trainer with parameters of type ComputationGraph Constructor Description EarlyStoppingGraphTrainer(EarlyStoppingConfiguration<ComputationGraph> esConfig, ComputationGraph net, DataSetIterator train)
EarlyStoppingGraphTrainer(EarlyStoppingConfiguration<ComputationGraph> esConfig, ComputationGraph net, DataSetIterator train, EarlyStoppingListener<ComputationGraph> listener)
Constructor for training using aDataSetIterator
EarlyStoppingGraphTrainer(EarlyStoppingConfiguration<ComputationGraph> esConfig, ComputationGraph net, MultiDataSetIterator train, EarlyStoppingListener<ComputationGraph> listener)
Constructor for training using aMultiDataSetIterator
-
Uses of ComputationGraph in org.deeplearning4j.nn.conf.graph
Methods in org.deeplearning4j.nn.conf.graph with parameters of type ComputationGraph Modifier and Type Method Description GraphVertex
ElementWiseVertex. instantiate(ComputationGraph graph, String name, int idx, INDArray paramsView, boolean initializeParams, DataType networkDatatype)
GraphVertex
FrozenVertex. instantiate(ComputationGraph graph, String name, int idx, INDArray paramsView, boolean initializeParams, DataType networkDatatype)
abstract GraphVertex
GraphVertex. instantiate(ComputationGraph graph, String name, int idx, INDArray paramsView, boolean initializeParams, DataType networkDatatype)
Create aGraphVertex
instance, for the given computation graph, given the configuration instance.GraphVertex
L2NormalizeVertex. instantiate(ComputationGraph graph, String name, int idx, INDArray paramsView, boolean initializeParams, DataType networkDatatype)
GraphVertex
L2Vertex. instantiate(ComputationGraph graph, String name, int idx, INDArray paramsView, boolean initializeParams, DataType networkDatatype)
GraphVertex
LayerVertex. instantiate(ComputationGraph graph, String name, int idx, INDArray paramsView, boolean initializeParams, DataType networkDatatype)
GraphVertex
MergeVertex. instantiate(ComputationGraph graph, String name, int idx, INDArray paramsView, boolean initializeParams, DataType networkDatatype)
GraphVertex
PoolHelperVertex. instantiate(ComputationGraph graph, String name, int idx, INDArray paramsView, boolean initializeParams, DataType networkDatatype)
GraphVertex
PreprocessorVertex. instantiate(ComputationGraph graph, String name, int idx, INDArray paramsView, boolean initializeParams, DataType networkDatatype)
GraphVertex
ReshapeVertex. instantiate(ComputationGraph graph, String name, int idx, INDArray paramsView, boolean initializeParams, DataType networkDatatype)
GraphVertex
ScaleVertex. instantiate(ComputationGraph graph, String name, int idx, INDArray paramsView, boolean initializeParams, DataType networkDatatype)
GraphVertex
ShiftVertex. instantiate(ComputationGraph graph, String name, int idx, INDArray paramsView, boolean initializeParams, DataType networkDatatype)
GraphVertex
StackVertex. instantiate(ComputationGraph graph, String name, int idx, INDArray paramsView, boolean initializeParams, DataType networkDatatype)
GraphVertex
SubsetVertex. instantiate(ComputationGraph graph, String name, int idx, INDArray paramsView, boolean initializeParams, DataType networkDatatype)
GraphVertex
UnstackVertex. instantiate(ComputationGraph graph, String name, int idx, INDArray paramsView, boolean initializeParams, DataType networkDatatype)
-
Uses of ComputationGraph in org.deeplearning4j.nn.conf.graph.rnn
Methods in org.deeplearning4j.nn.conf.graph.rnn with parameters of type ComputationGraph Modifier and Type Method Description GraphVertex
DuplicateToTimeSeriesVertex. instantiate(ComputationGraph graph, String name, int idx, INDArray paramsView, boolean initializeParams, DataType networkDatatype)
LastTimeStepVertex
LastTimeStepVertex. instantiate(ComputationGraph graph, String name, int idx, INDArray paramsView, boolean initializeParams, DataType networkDatatype)
ReverseTimeSeriesVertex
ReverseTimeSeriesVertex. instantiate(ComputationGraph graph, String name, int idx, INDArray paramsView, boolean initializeParams, DataType networkDatatype)
-
Uses of ComputationGraph in org.deeplearning4j.nn.conf.layers.samediff
Methods in org.deeplearning4j.nn.conf.layers.samediff with parameters of type ComputationGraph Modifier and Type Method Description GraphVertex
SameDiffVertex. instantiate(ComputationGraph graph, String name, int idx, INDArray paramsView, boolean initializeParams, DataType networkDatatype)
-
Uses of ComputationGraph in org.deeplearning4j.nn.graph
Methods in org.deeplearning4j.nn.graph that return ComputationGraph Modifier and Type Method Description ComputationGraph
ComputationGraph. clone()
ComputationGraph
ComputationGraph. convertDataType(@NonNull DataType dataType)
Return a copy of the network with the parameters and activations set to use the specified (floating point) data type.static ComputationGraph
ComputationGraph. load(File f, boolean loadUpdater)
Restore a ComputationGraph to a file, saved usingsave(File)
orModelSerializer
-
Uses of ComputationGraph in org.deeplearning4j.nn.graph.vertex
Fields in org.deeplearning4j.nn.graph.vertex declared as ComputationGraph Modifier and Type Field Description protected ComputationGraph
BaseGraphVertex. graph
Constructors in org.deeplearning4j.nn.graph.vertex with parameters of type ComputationGraph Constructor Description BaseGraphVertex(ComputationGraph graph, String name, int vertexIndex, VertexIndices[] inputVertices, VertexIndices[] outputVertices, DataType dataType)
-
Uses of ComputationGraph in org.deeplearning4j.nn.graph.vertex.impl
Constructors in org.deeplearning4j.nn.graph.vertex.impl with parameters of type ComputationGraph Constructor Description ElementWiseVertex(ComputationGraph graph, String name, int vertexIndex, ElementWiseVertex.Op op, DataType dataType)
ElementWiseVertex(ComputationGraph graph, String name, int vertexIndex, VertexIndices[] inputVertices, VertexIndices[] outputVertices, ElementWiseVertex.Op op, DataType dataType)
InputVertex(ComputationGraph graph, String name, int vertexIndex, VertexIndices[] outputVertices, DataType dataType)
L2NormalizeVertex(ComputationGraph graph, String name, int vertexIndex, int[] dimension, double eps, DataType dataType)
L2NormalizeVertex(ComputationGraph graph, String name, int vertexIndex, VertexIndices[] inputVertices, VertexIndices[] outputVertices, int[] dimension, double eps, DataType dataType)
L2Vertex(ComputationGraph graph, String name, int vertexIndex, double eps, DataType dataType)
L2Vertex(ComputationGraph graph, String name, int vertexIndex, VertexIndices[] inputVertices, VertexIndices[] outputVertices, double eps, DataType dataType)
LayerVertex(ComputationGraph graph, String name, int vertexIndex, Layer layer, InputPreProcessor layerPreProcessor, boolean outputVertex, DataType dataType)
Create a network input vertex:LayerVertex(ComputationGraph graph, String name, int vertexIndex, VertexIndices[] inputVertices, VertexIndices[] outputVertices, Layer layer, InputPreProcessor layerPreProcessor, boolean outputVertex, DataType dataType)
MergeVertex(ComputationGraph graph, String name, int vertexIndex, VertexIndices[] inputVertices, VertexIndices[] outputVertices, DataType dataType, int mergeAxis)
MergeVertex(ComputationGraph graph, String name, int vertexIndex, DataType dataType, int mergeAxis)
PoolHelperVertex(ComputationGraph graph, String name, int vertexIndex, VertexIndices[] inputVertices, VertexIndices[] outputVertices, DataType dataType)
PoolHelperVertex(ComputationGraph graph, String name, int vertexIndex, DataType dataType)
PreprocessorVertex(ComputationGraph graph, String name, int vertexIndex, InputPreProcessor preProcessor, DataType dataType)
PreprocessorVertex(ComputationGraph graph, String name, int vertexIndex, VertexIndices[] inputVertices, VertexIndices[] outputVertices, InputPreProcessor preProcessor, DataType dataType)
ReshapeVertex(ComputationGraph graph, String name, int vertexIndex, char order, int[] newShape, int[] maskShape, DataType dataType)
ReshapeVertex(ComputationGraph graph, String name, int vertexIndex, VertexIndices[] inputVertices, VertexIndices[] outputVertices, char order, int[] newShape, int[] maskShape, DataType dataType)
ScaleVertex(ComputationGraph graph, String name, int vertexIndex, double scaleFactor, DataType dataType)
ScaleVertex(ComputationGraph graph, String name, int vertexIndex, VertexIndices[] inputVertices, VertexIndices[] outputVertices, double scaleFactor, DataType dataType)
ShiftVertex(ComputationGraph graph, String name, int vertexIndex, double shiftFactor, DataType dataType)
ShiftVertex(ComputationGraph graph, String name, int vertexIndex, VertexIndices[] inputVertices, VertexIndices[] outputVertices, double shiftFactor, DataType dataType)
StackVertex(ComputationGraph graph, String name, int vertexIndex, VertexIndices[] inputVertices, VertexIndices[] outputVertices, DataType dataType)
StackVertex(ComputationGraph graph, String name, int vertexIndex, DataType dataType)
SubsetVertex(ComputationGraph graph, String name, int vertexIndex, int from, int to, DataType dataType)
SubsetVertex(ComputationGraph graph, String name, int vertexIndex, VertexIndices[] inputVertices, VertexIndices[] outputVertices, int from, int to, DataType dataType)
UnstackVertex(ComputationGraph graph, String name, int vertexIndex, int from, int stackSize, DataType dataType)
UnstackVertex(ComputationGraph graph, String name, int vertexIndex, VertexIndices[] inputVertices, VertexIndices[] outputVertices, int from, int stackSize, DataType dataType)
-
Uses of ComputationGraph in org.deeplearning4j.nn.graph.vertex.impl.rnn
Constructors in org.deeplearning4j.nn.graph.vertex.impl.rnn with parameters of type ComputationGraph Constructor Description DuplicateToTimeSeriesVertex(ComputationGraph graph, String name, int vertexIndex, String inputVertexName, DataType dataType)
DuplicateToTimeSeriesVertex(ComputationGraph graph, String name, int vertexIndex, VertexIndices[] inputVertices, VertexIndices[] outputVertices, String inputName, DataType dataType)
LastTimeStepVertex(ComputationGraph graph, String name, int vertexIndex, String inputName, DataType dataType)
LastTimeStepVertex(ComputationGraph graph, String name, int vertexIndex, VertexIndices[] inputVertices, VertexIndices[] outputVertices, String inputName, DataType dataType)
ReverseTimeSeriesVertex(ComputationGraph graph, String name, int vertexIndex, String inputName, DataType dataType)
-
Uses of ComputationGraph in org.deeplearning4j.nn.layers.samediff
Constructors in org.deeplearning4j.nn.layers.samediff with parameters of type ComputationGraph Constructor Description SameDiffGraphVertex(SameDiffVertex config, ComputationGraph graph, String name, int vertexIndex, INDArray paramsView, boolean initParams, DataType dataType)
-
Uses of ComputationGraph in org.deeplearning4j.nn.multilayer
Methods in org.deeplearning4j.nn.multilayer that return ComputationGraph Modifier and Type Method Description ComputationGraph
MultiLayerNetwork. toComputationGraph()
Convert this MultiLayerNetwork to a ComputationGraph -
Uses of ComputationGraph in org.deeplearning4j.nn.transferlearning
Methods in org.deeplearning4j.nn.transferlearning that return ComputationGraph Modifier and Type Method Description ComputationGraph
TransferLearning.GraphBuilder. build()
Returns a computation graph build to specifications.ComputationGraph
TransferLearningHelper. unfrozenGraph()
Returns the unfrozen subset of the original computation graph as a computation graph Note that with each call to featurizedFit the parameters to the original computation graph are also updatedConstructors in org.deeplearning4j.nn.transferlearning with parameters of type ComputationGraph Constructor Description GraphBuilder(ComputationGraph origGraph)
Computation Graph to tweak for transfer learningTransferLearningHelper(ComputationGraph orig)
Expects a computation graph where some vertices are frozenTransferLearningHelper(ComputationGraph orig, String... frozenOutputAt)
Will modify the given comp graph (in place!) to freeze vertices from input to the vertex specified. -
Uses of ComputationGraph in org.deeplearning4j.nn.updater.graph
Constructors in org.deeplearning4j.nn.updater.graph with parameters of type ComputationGraph Constructor Description ComputationGraphUpdater(ComputationGraph graph)
ComputationGraphUpdater(ComputationGraph graph, INDArray updaterState)
-
Uses of ComputationGraph in org.deeplearning4j.optimize.listeners
Methods in org.deeplearning4j.optimize.listeners that return ComputationGraph Modifier and Type Method Description ComputationGraph
CheckpointListener. loadCheckpointCG(int checkpointNum)
Load a ComputationGraph for the given checkpointstatic ComputationGraph
CheckpointListener. loadCheckpointCG(File rootDir, int checkpointNum)
Load a ComputationGraph for the given checkpoint that resides in the specified root directorystatic ComputationGraph
CheckpointListener. loadCheckpointCG(File rootDir, Checkpoint checkpoint)
Load a ComputationGraph for the given checkpoint from the specified root direcotryComputationGraph
CheckpointListener. loadCheckpointCG(Checkpoint checkpoint)
Load a ComputationGraph for the given checkpointstatic ComputationGraph
CheckpointListener. loadLastCheckpointCG(File rootDir)
Load the last (most recent) checkpoint from the specified root directory -
Uses of ComputationGraph in org.deeplearning4j.util
Methods in org.deeplearning4j.util that return ComputationGraph Modifier and Type Method Description static ComputationGraph
ModelSerializer. restoreComputationGraph(@NonNull File file)
Load a computation graph from a filestatic ComputationGraph
ModelSerializer. restoreComputationGraph(@NonNull File file, boolean loadUpdater)
Load a computation graph from a filestatic ComputationGraph
ModelSerializer. restoreComputationGraph(@NonNull InputStream is)
Load a computation graph from a InputStreamstatic ComputationGraph
ModelSerializer. restoreComputationGraph(@NonNull InputStream is, boolean loadUpdater)
Load a computation graph from a InputStreamstatic ComputationGraph
ModelSerializer. restoreComputationGraph(@NonNull String path)
Load a computation graph from a filestatic ComputationGraph
ModelSerializer. restoreComputationGraph(@NonNull String path, boolean loadUpdater)
Load a computation graph from a filestatic ComputationGraph
NetworkUtils. toComputationGraph(MultiLayerNetwork net)
Convert a MultiLayerNetwork to a ComputationGraphMethods in org.deeplearning4j.util that return types with arguments of type ComputationGraph Modifier and Type Method Description static Pair<ComputationGraph,Normalizer>
ModelSerializer. restoreComputationGraphAndNormalizer(@NonNull File file, boolean loadUpdater)
Restore a ComputationGraph and Normalizer (if present - null if not) from a Filestatic Pair<ComputationGraph,Normalizer>
ModelSerializer. restoreComputationGraphAndNormalizer(@NonNull InputStream is, boolean loadUpdater)
Restore a ComputationGraph and Normalizer (if present - null if not) from the InputStream.Methods in org.deeplearning4j.util with parameters of type ComputationGraph Modifier and Type Method Description static Double
NetworkUtils. getLearningRate(ComputationGraph net, String layerName)
Get the current learning rate, for the specified layer, from the network.static void
NetworkUtils. setLearningRate(ComputationGraph net, double newLr)
Set the learning rate for all layers in the network to the specified value.static void
NetworkUtils. setLearningRate(ComputationGraph net, String layerName, double newLr)
Set the learning rate for a single layer in the network to the specified value.static void
NetworkUtils. setLearningRate(ComputationGraph net, String layerName, ISchedule lrSchedule)
Set the learning rate schedule for a single layer in the network to the specified value.
Note also thatNetworkUtils.setLearningRate(ComputationGraph, ISchedule)
should also be used in preference, when all layers need to be set to a new LR schedule.
This schedule will replace any/all existing schedules, and also any fixed learning rate values.
Note also that the iteration/epoch counts will not be reset.static void
NetworkUtils. setLearningRate(ComputationGraph net, ISchedule newLrSchedule)
Set the learning rate schedule for all layers in the network to the specified schedule.
-