Exemple #1
0
        public async Task <AnalyzePredictionAlgorithmsResponse> AnalyzePredictionAlgorithms(AnalyzePredictionAlgorithmsRequest request)
        {
            var algorithms = new List <LearningAlgorithm>();

            foreach (var algorithm in request.Algorithms)
            {
                algorithms.Add((LearningAlgorithm)Enum.Parse(typeof(LearningAlgorithm), algorithm));
            }

            var result = await _machineLearningService.AnalyzePredictionAlgorithms(request.TaskEntityName, algorithms);

            var response = new AnalyzePredictionAlgorithmsResponse
            {
                Reports = _mapper.Map <List <Model.AnalyzePredictionAlgorithmsReport> >(result)
            };

            return(response);
        }