2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
// See the LICENSE file in the project root for more information.
4
4
5
- using System ;
6
5
using System . Collections . Generic ;
7
6
using Microsoft . ML . Auto ;
7
+ using Microsoft . ML . CLI . AutoML ;
8
8
using Microsoft . ML . CLI . Data ;
9
9
using Microsoft . ML . CLI . ShellProgressBar ;
10
10
using Microsoft . ML . CLI . Utilities ;
@@ -53,7 +53,8 @@ IEnumerable<RunDetails<BinaryClassificationMetrics>> IAutoMLEngine.ExploreBinary
53
53
{
54
54
MaxExperimentTimeInSeconds = settings . MaxExplorationTime ,
55
55
CacheBeforeTrainer = this . enableCaching ,
56
- OptimizingMetric = optimizationMetric
56
+ OptimizingMetric = optimizationMetric ,
57
+ DebugLogger = AutoMLDebugLogger . Instance
57
58
} )
58
59
. Execute ( trainData , validationData , columnInformation , progressHandler : progressReporter ) ;
59
60
logger . Log ( LogLevel . Trace , Strings . RetrieveBestPipeline ) ;
@@ -68,7 +69,8 @@ IEnumerable<RunDetails<RegressionMetrics>> IAutoMLEngine.ExploreRegressionModels
68
69
{
69
70
MaxExperimentTimeInSeconds = settings . MaxExplorationTime ,
70
71
OptimizingMetric = optimizationMetric ,
71
- CacheBeforeTrainer = this . enableCaching
72
+ CacheBeforeTrainer = this . enableCaching ,
73
+ DebugLogger = AutoMLDebugLogger . Instance
72
74
} ) . Execute ( trainData , validationData , columnInformation , progressHandler : progressReporter ) ;
73
75
logger . Log ( LogLevel . Trace , Strings . RetrieveBestPipeline ) ;
74
76
return result ;
@@ -82,7 +84,8 @@ IEnumerable<RunDetails<MulticlassClassificationMetrics>> IAutoMLEngine.ExploreMu
82
84
{
83
85
MaxExperimentTimeInSeconds = settings . MaxExplorationTime ,
84
86
CacheBeforeTrainer = this . enableCaching ,
85
- OptimizingMetric = optimizationMetric
87
+ OptimizingMetric = optimizationMetric ,
88
+ DebugLogger = AutoMLDebugLogger . Instance
86
89
} ) . Execute ( trainData , validationData , columnInformation , progressHandler : progressReporter ) ;
87
90
logger . Log ( LogLevel . Trace , Strings . RetrieveBestPipeline ) ;
88
91
return result ;
0 commit comments