Example #1
0
        /// <summary>
        /// Retrieves the updated training Net weights as an array of bytes.
        /// </summary>
        /// <returns>The training Net weights are returned as an array of bytes.</returns>
        public byte[] UpdateWeights()
        {
            if (OnGetWeights != null)
            {
                GetBytesArgs args = new common.GetBytesArgs();
                OnGetWeights(this, args);
                m_rgWeights = args.Data;
                return(m_rgWeights);
            }

            return(null);
        }
Example #2
0
        /// <summary>
        /// Retrieves the updated Solver state as an array of bytes.
        /// </summary>
        /// <returns>The state is returned as an array of bytes.</returns>
        public byte[] UpdateState()
        {
            if (OnGetState != null)
            {
                GetBytesArgs args = new common.GetBytesArgs();
                OnGetState(this, args);
                m_rgState = args.Data;
                return(m_rgState);
            }

            return(null);
        }