Beispiel #1
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////
        /// <summary>   Pre training complete. </summary>
        ///
        /// <exception cref="Exception">    Thrown when an exception error condition occurs. </exception>
        ////////////////////////////////////////////////////////////////////////////////////////////////////

        public void PreTrainingComplete()
        {
            if (!pretraining)
            {
                throw new AutoEncoderException("You can only call PreTrainingComplete() once!");
            }
            pretraining = false;
            for (int i = 0; i < numlayers; i++)
            {
                generativeweights = (AutoencoderWeights)recognitionweights.Clone();
            }
        }
 public void PreTrainingComplete()
 {
     if (!pretraining)
     {
         throw new Exception("You have already called PreTrainingComplete()!"
                             + " Don't call it twice!");
     }
     pretraining = false;
     for (int i = 0; i < numlayers; i++)
     {
         generativeweights = (AutoencoderWeights)recognitionweights.Clone();
     }
 }