Skip to content

Commit 4a11ac0

Browse files
add diskConvert option in fast tree search space (#6316)
* update * Update AutoMLExperimentTests.cs * checkout test file * fix tests
1 parent de9e468 commit 4a11ac0

13 files changed

+29
-9
lines changed

src/Microsoft.ML.AutoML/AutoMLExperiment/IMonitor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public virtual void ReportCompletedTrial(TrialResult result)
5858

5959
public virtual void ReportFailTrial(TrialSettings settings, Exception exception = null)
6060
{
61+
_logger.Trace(exception.Message + exception.StackTrace);
6162
_logger.Info($"Update Failed Trial - Id: {settings.TrialId} - Pipeline: {_pipeline.ToString(settings.Parameter)}");
6263
}
6364

src/Microsoft.ML.AutoML/CodeGen/fast_tree_search_space.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@
7575
{
7676
"name": "ExampleWeightColumnName",
7777
"type": "string"
78+
},
79+
{
80+
"name": "DiskTranspose",
81+
"type": "boolean",
82+
"default": false
7883
}
7984
]
8085
}

src/Microsoft.ML.AutoML/CodeGen/search-space-schema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@
192192
"Quiet",
193193
"OutputAsFloatArray",
194194
"ModelFactory",
195+
"DiskTranspose",
195196
"Sentence1ColumnName",
196197
"Sentence2ColumnName",
197198
"BatchSize",

src/Microsoft.ML.AutoML/SweepableEstimator/Estimators/FastTree.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public override IEstimator<ITransformer> BuildFromOption(MLContext context, Fast
2222
NumberOfThreads = AutoMlUtils.GetNumberOfThreadFromEnvrionment(),
2323
MaximumBinCountPerFeature = param.MaximumBinCountPerFeature,
2424
FeatureFraction = param.FeatureFraction,
25+
DiskTranspose = param.DiskTranspose,
2526
};
2627

2728
return context.MulticlassClassification.Trainers.OneVersusAll(context.BinaryClassification.Trainers.FastTree(option), labelColumnName: param.LabelColumnName);
@@ -43,6 +44,7 @@ public override IEstimator<ITransformer> BuildFromOption(MLContext context, Fast
4344
ExampleWeightColumnName = param.ExampleWeightColumnName,
4445
NumberOfThreads = AutoMlUtils.GetNumberOfThreadFromEnvrionment(),
4546
MaximumBinCountPerFeature = param.MaximumBinCountPerFeature,
47+
DiskTranspose = param.DiskTranspose,
4648
FeatureFraction = param.FeatureFraction,
4749
};
4850

@@ -65,6 +67,7 @@ public override IEstimator<ITransformer> BuildFromOption(MLContext context, Fast
6567
ExampleWeightColumnName = param.ExampleWeightColumnName,
6668
NumberOfThreads = AutoMlUtils.GetNumberOfThreadFromEnvrionment(),
6769
MaximumBinCountPerFeature = param.MaximumBinCountPerFeature,
70+
DiskTranspose = param.DiskTranspose,
6871
FeatureFraction = param.FeatureFraction,
6972
};
7073

@@ -87,6 +90,7 @@ public override IEstimator<ITransformer> BuildFromOption(MLContext context, Fast
8790
ExampleWeightColumnName = param.ExampleWeightColumnName,
8891
NumberOfThreads = AutoMlUtils.GetNumberOfThreadFromEnvrionment(),
8992
MaximumBinCountPerFeature = param.MaximumBinCountPerFeature,
93+
DiskTranspose = param.DiskTranspose,
9094
FeatureFraction = param.FeatureFraction,
9195
};
9296

test/Microsoft.ML.AutoML.Tests/ApprovalTests/SweepableEstimatorPipelineTest.SweepableEstimatorPipeline_search_space_init_value_test.approved.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"FeatureFraction": 1,
2424
"LearningRate": 0.10,
2525
"LabelColumnName": "Label",
26-
"FeatureColumnName": "Feature"
26+
"FeatureColumnName": "Feature",
27+
"DiskTranspose": false
2728
}
2829
}

test/Microsoft.ML.AutoML.Tests/ApprovalTests/SweepableExtensionTest.CreateSweepablePipelineFromIEstimatorAndBinaryClassifiers.approved.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"FeatureFraction": 1,
1717
"LearningRate": 0.1,
1818
"LabelColumnName": "Label",
19-
"FeatureColumnName": "Features"
19+
"FeatureColumnName": "Features",
20+
"DiskTranspose": false
2021
}
2122
},
2223
"e2": {

test/Microsoft.ML.AutoML.Tests/ApprovalTests/SweepableExtensionTest.CreateSweepablePipelineFromIEstimatorAndMultiClassifiers.approved.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"FeatureFraction": 1,
1717
"LearningRate": 0.1,
1818
"LabelColumnName": "Label",
19-
"FeatureColumnName": "Features"
19+
"FeatureColumnName": "Features",
20+
"DiskTranspose": false
2021
}
2122
},
2223
"e2": {

test/Microsoft.ML.AutoML.Tests/ApprovalTests/SweepableExtensionTest.CreateSweepablePipelineFromIEstimatorAndRegressors.approved.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"FeatureFraction": 1,
1717
"LearningRate": 0.1,
1818
"LabelColumnName": "Label",
19-
"FeatureColumnName": "Features"
19+
"FeatureColumnName": "Features",
20+
"DiskTranspose": false
2021
}
2122
},
2223
"e2": {

test/Microsoft.ML.AutoML.Tests/ApprovalTests/SweepableExtensionTest.CreateSweepablePipelineFromIEstimatorAndSweepableEstimatorArray.approved.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"FeatureFraction": 1,
1717
"LearningRate": 0.1,
1818
"LabelColumnName": "Label",
19-
"FeatureColumnName": "Features"
19+
"FeatureColumnName": "Features",
20+
"DiskTranspose": false
2021
}
2122
},
2223
"e2": {

test/Microsoft.ML.AutoML.Tests/ApprovalTests/SweepableExtensionTest.CreateSweepablePipelineFromSweepableEstimatorAndMultiClassifiers.approved.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
"FeatureFraction": 1,
2323
"LearningRate": 0.1,
2424
"LabelColumnName": "Label",
25-
"FeatureColumnName": "Features"
25+
"FeatureColumnName": "Features",
26+
"DiskTranspose": false
2627
}
2728
},
2829
"e2": {

0 commit comments

Comments
 (0)