Class

ai.minxiao.ds4s.core.dl4j.cgnn

CGNN

Related Doc: package cgnn

Permalink

class CGNN extends NNBase with Serializable

Computational Graph-based Neural Networks (CGNN)

Annotations
@SerialVersionUID()
Linear Supertypes
NNBase, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CGNN
  2. NNBase
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CGNN(seed: Long = 2018L, l2: Double = 0.0, l1: Double = 0.0, l2Bias: Double = 0.0, l1Bias: Double = 0.0, weightNoise: Boolean = false, weightRetainProbability: Double = 1.0, applyToBiases: Boolean = false, optimizationAlgo: OptimizationAlgorithm = ..., miniBatch: Boolean = true, learningRate: Double = 0.1, beta1: Double = 0.9, beta2: Double = 0.999, epsilon: Double = 1E-8, momentum: Double = 0.9, rmsDecay: Double = 0.95, rho: Double = 0.95, updater: Updater = Updater.NESTEROVS, gradientNormalization: GradientNormalization = GradientNormalization.None, gradientNormalizationThreshold: Double = 1.0, pretrain: Boolean = false, backprop: Boolean = true, backpropType: BackpropType = BackpropType.Standard, tBPTTForwardLength: Int = 100, tBPTTBackwardLength: Int = 100, setListener: Boolean = true, listenType: String = "console", listenFreq: Int = 1, storagePath: String = "", enableRemote: Boolean = false, inputs: Array[String], outputs: Array[String], vertices: Array[CGVertex], inputTypes: Option[Array[IType]] = None, allowDisconnected: Boolean = false, allowNoOutput: Boolean = false)

    Permalink

    BASE -------------------------------------------------------------------------------------------------------------

    BASE -------------------------------------------------------------------------------------------------------------

    seed

    random generator seed, default=2018 ------------------------------------------------------------------------------------------------------------ REGULARIZATION

    l2

    l2 regularization, default=0.0

    l1

    l1 regularization, default=0.0

    l2Bias

    l2 bias term, default=0.0

    l1Bias

    l1 bias term, default=0.0

    weightNoise

    whether to use weight noise (drop connect), default=false

    weightRetainProbability

    weight retain probability for the weight noise (drop-connect), default=1 (no drop-connect)

    applyToBiases

    whether apply to biases for the weight noise (drop-connect), default=false ------------------------------------------------------------------------------------------------------------------ OPTIMIZATION

    optimizationAlgo

    optimization algorithm (default=STOCHASTIC_GRADIENT_DESCENT)

    STOCHASTIC_GRADIENT_DESCENT://StochasticGradientDescent.java
    LINE_GRADIENT_DESCENT://LineGradientDescent.java
    CONJUGATE_GRADIENT://ConjugateGradient.java
    LBFGS://LBFGS.java
    miniBatch

    whether to use mini-batch, default=true

    learningRate

    learning rate, default=0.1

    beta1

    gradient moving avg decay rate, default=0.9

    beta2

    gradient sqrt decay rate, default=0.999

    epsilon

    default=1E-8

    momentum

    NESTEROVS momentum, default=0.9

    rmsDecay

    RMSPROP decay rate, default=0.95

    rho

    ADADELTA decay rate, default=0.95

    updater

    weights updater, (default = NESTEROVS). Options:

    SGD: //Sgd.java
      learningRate: learning rate (default = 1E-3)
    ADAM: //Adam.java
      learningRate: learning rate, DEFAULT_ADAM_LEARNING_RATE = 1e-3;
      beta1: gradient moving avg decay rate, DEFAULT_ADAM_BETA1_MEAN_DECAY = 0.9;
      beta2: gradient sqrt decay rate, DEFAULT_ADAM_BETA2_VAR_DECAY = 0.999;
      epsilon: epsilon, DEFAULT_ADAM_EPSILON = 1e-8;
      //Adam: A Method for Stochastic Optimization
    ADAMAX: //AdaMax.java
      learningRate: learning rate, DEFAULT_ADAMAX_LEARNING_RATE = 1e-3;
      beta1: gradient moving avg decay rate, DEFAULT_ADAMAX_BETA1_MEAN_DECAY = 0.9;
      beta2: gradient sqrt decay rate, DEFAULT_ADAMAX_BETA2_VAR_DECAY = 0.999;
      epsilon: epsilon, DEFAULT_ADAMAX_EPSILON = 1e-8;
      //Adam: A Method for Stochastic Optimization
    NADAM://Nadam.java
      learningRate: learning rate, DEFAULT_NADAM_LEARNING_RATE = 1e-3;
      epsilon: DEFAULT_NADAM_EPSILON = 1e-8;
      beta1: gradient moving avg decay rate, DEFAULT_NADAM_BETA1_MEAN_DECAY = 0.9;
      beta2: gradient sqrt decay rate, DEFAULT_NADAM_BETA2_VAR_DECAY = 0.999;
      //An overview of gradient descent optimization algorithms
    AMSGRAD: //AMSGrad.java
      learningRate: learning rate, DEFAULT_AMSGRAD_LEARNING_RATE = 1e-3;
      epsilon: DEFAULT_AMSGRAD_EPSILON = 1e-8;
      beta1: DEFAULT_AMSGRAD_BETA1_MEAN_DECAY = 0.9;
      beta2: DEFAULT_AMSGRAD_BETA2_VAR_DECAY = 0.999;
    ADAGRAD: Vectorized Learning Rate used per Connection Weight//AdaGrad.java
      learningRate: learning rate, DEFAULT_ADAGRAD_LEARNING_RATE = 1e-1;
      epsilon: DEFAULT_ADAGRAD_EPSILON = 1e-6;
      //Adaptive Subgradient Methods for Online Learning and Stochastic Optimization
      //Adagrad – eliminating learning rates in stochastic gradient descent
    NESTEROVS: tracks previous layer's gradient and uses it as a way of updating the gradient //Nesterovs.java
      learningRate: learning rate, DEFAULT_NESTEROV_LEARNING_RATE = 0.1;
      momentum: DEFAULT_NESTEROV_MOMENTUM = 0.9;
    RMSPROP: //RmsProp.java
      learningRate: learning rate, DEFAULT_RMSPROP_LEARNING_RATE = 1e-1;
      epsilon: DEFAULT_RMSPROP_EPSILON = 1e-8;
      rmsDecay: decay rate, DEFAULT_RMSPROP_RMSDECAY = 0.95;
      //Neural Networks for Machine Learning
    ADADELTA: //AdaDelta.java
      rho: decay rate, controlling the decay of the previous parameter updates, DEFAULT_ADADELTA_RHO = 0.95;
      epsilon: DEFAULT_ADADELTA_EPSILON = 1e-6;
      (no need to manually set the learning rate)
      //ADADELTA: AN ADAPTIVE LEARNING RATE METHOD
    NONE: no updates //NoOp.java
    gradientNormalization

    gradient normalization, default=None Options: GradientNormalization.X

    ClipElementWiseAbsoluteValue:
     g <- sign(g)*max(maxAllowedValue,|g|).
    ClipL2PerLayer:
      GOut = G                             if l2Norm(G) < threshold (i.e., no change)
      GOut = threshold * G / l2Norm(G)     otherwise
    ClipL2PerParamType: conditional renormalization. Very similar to ClipL2PerLayer, however instead of clipping per layer, do clipping on each parameter type separately.
    None: no gradient normalization
    RenormalizeL2PerLayer: rescale gradients by dividing by the L2 norm of all gradients for the layer
    RenormalizeL2PerParamType:
     GOut_weight = G_weight / l2(G_weight)
     GOut_bias = G_bias / l2(G_bias)
    gradientNormalizationThreshold

    gradient threshold, default=0.5 ------------------------------------------------------------------------------------------------------------------------------------------- MONITOR, UI

    setListener

    whether to set a listener, default=true

    listenType

    listener type, default="console" Options:

    console: print in the console
    ui: display in the UI
    file: save to a file
    listenFreq

    listener frequency to track the score, default=1

    storagePath

    file path for saving the stats if set listenType="file", default="", not used

    enableRemote

    whether to enable remote listening, default=false ------------------------------------------------------------------------------------------------------------------------------------------- Vertex Construction

    inputs

    inputs

    outputs

    outputs

    vertices

    vertices

    allowDisconnected

    whether allow disconnected vertices, default=false

    allowNoOutput

    allow no output, default=false -------------------------------------------------------------------------------------------------------------------------------------------

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. lazy val baseConfBuilder: Builder

    Permalink

    Base Configuration Builder

    Base Configuration Builder

    Attributes
    protected
    Definition Classes
    NNBase
  6. def baseVertexConfBuilder(graphBuilder: GraphBuilder): GraphBuilder

    Permalink

    Base Configurations for Vertices

    Base Configurations for Vertices

    Attributes
    protected
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def conf: ComputationGraphConfiguration

    Permalink

    Chain all configurations: Base -> Reg -> Opt -> Vertex

    Chain all configurations: Base -> Reg -> Opt -> Vertex

    Attributes
    protected
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def model: ComputationGraph

    Permalink

    Build the CGNN and Start the Listener (if applicable)

    Build the CGNN and Start the Listener (if applicable)

    returns

    the initiated multi-layer network

  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def optConfBuilder(confBuilder: Builder): Builder

    Permalink

    Optimization Configuration Builder

    Optimization Configuration Builder

    Attributes
    protected
    Definition Classes
    NNBase
  20. def outputConfBuilder(graphBuilder: GraphBuilder): GraphBuilder

    Permalink
    Attributes
    protected
  21. def regConfBuilder(confBuilder: Builder): Builder

    Permalink

    Regularization Configuration Builder

    Regularization Configuration Builder

    Attributes
    protected
    Definition Classes
    NNBase
  22. def startListener(net: ComputationGraph): Unit

    Permalink

    Start Listener

    Start Listener

    Attributes
    protected
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. def vertexConfBuilder(confBuilder: Builder): GraphBuilder

    Permalink

    Vertex Configuration Builder

    Vertex Configuration Builder

    Attributes
    protected
    Note

    to be implemented

  26. def verticesConfBuilder(graphBuilder: GraphBuilder): GraphBuilder

    Permalink
    Attributes
    protected
  27. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from NNBase

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped