Exemplo n.º 1
0
 public virtual void Init(IMLTrain train)
 {
     this._xd87f6a9c53c2ed9f = train;
     while (!(train.Method is IMLResettable))
     {
         throw new TrainingError("To use the reset strategy the machine learning method must support MLResettable.");
     }
     this._x1306445c04667cc7 = (IMLResettable) this._xd87f6a9c53c2ed9f.Method;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Initialize this strategy.
        /// </summary>
        ///
        /// <param name="train">The training algorithm.</param>
        public virtual void Init(IMLTrain train)
        {
            _train = train;

            if (!(train.Method is IMLResettable))
            {
                throw new TrainingError(
                          "To use the required improvement strategy the machine learning method must support MLResettable.");
            }

            _method = (IMLResettable)_train.Method;
        }
Exemplo n.º 3
0
        /// <summary>
        /// Initialize this strategy.
        /// </summary>
        ///
        /// <param name="train">The training algorithm.</param>
        public virtual void Init(IMLTrain train)
        {
            _train = train;

            if (!(train.Method is IMLResettable))
            {
                throw new TrainingError(
                    "To use the reset strategy the machine learning method must support MLResettable.");
            }

            _method = (IMLResettable) _train.Method;
        }