/// <summary> /// Construct a training class. /// </summary> /// /// <param name="network">The network to train.</param> /// <param name="training">The training data.</param> public ScaledConjugateGradient(IContainsFlat network, IMLDataSet training) : base(network, training) { var rpropFlat = new TrainFlatNetworkSCG( network.Flat, Training); FlatTraining = rpropFlat; }
/// <summary> /// Construct a training class. /// </summary> /// <param name="network">The network to train.</param> /// <param name="training">The training data.</param> public ScaledConjugateGradient(BasicNetwork network, INeuralDataSet training) : base(network, training) { TrainFlatNetworkSCG rpropFlat = new TrainFlatNetworkSCG( network.Structure.Flat, this.Training); this.FlatTraining = rpropFlat; }