Skip to content

Added Onnx Export to PlattCalibratorTransformer #4699

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jan 27, 2020
Prev Previous commit
Removed spaces and comment
  • Loading branch information
antoniovs1029 committed Jan 25, 2020
commit 1c23a3c01314df25c514bf31c7a10666a97c77e8
3 changes: 0 additions & 3 deletions test/Microsoft.ML.Tests/OnnxConversionTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,6 @@ public void PlattCalibratorOnnxConversionTest()
Append(mlContext.Transforms.NormalizeMinMax("Features"));
foreach (var estimator in estimators)
{
// var pipeline = initialPipeline.Append(estimator);
var pipeline = initialPipeline.Append(estimator).Append(mlContext.BinaryClassification.Calibrators.Platt());
var model = pipeline.Fit(dataView);
var outputSchema = model.GetOutputSchema(dataView.Schema);
Expand Down Expand Up @@ -444,9 +443,7 @@ public void PlattCalibratorOnnxConversionTest2()
var onnxResult = onnxTransformer.Transform(data);
CompareSelectedR4ScalarColumns(transformedData.Schema.Last().Name, outputNames.Last(), transformedData, onnxResult, 3); //compare probabilities
}

Done();

}

private class DataPoint
Expand Down