Example #1
0
        /// <summary>
        /// Returns the training dataset values for the <paramref name="quoteId"/>.
        /// </summary>
        /// <param name="quoteId">The id of the quote to recieve training values for.</param>
        /// <returns>Returns the training dataset values for the <paramref name="quoteId"/>.
        public IEnumerable <INetworkTrainingIteration> GetTrainingDataset(int quoteId)
        {
            if (_isDisposed)
            {
                throw new ObjectDisposedException("DatasetService", "The service has been disposed.");
            }

            var dataset = _repository.GetTrainingDataset(quoteId)?.ToList();

            return(ConvertToTrainingIterations(dataset));
        }