Skip to content
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

Add SamplingKeyColumnName to AutoMLExperiment API #6649

Merged
merged 1 commit into from
May 4, 2023

Conversation

torronen
Copy link
Contributor

@torronen torronen commented May 3, 2023

Fixes #6643

Add sampling key column name to SetDataset method in new AutoML API to easily set sampling key.

Usage:

   experiment
                .SetPipeline(pipeline)
                .SetBinaryClassificationMetric(BinaryClassificationMetric.Accuracy, labelColumn: columnInference.ColumnInformation.LabelColumnName)
                .SetTrainingTimeInSeconds(trainingTimeSeconds)
                .SetDataset(data, fold: NumFolds, samplingKeyColumnName: SamplingKeyColumn);

Copy link
Contributor

@LittleLittleCloud LittleLittleCloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@codecov
Copy link

codecov bot commented May 4, 2023

Codecov Report

Merging #6649 (34a0ca1) into main (a18b9cb) will increase coverage by 0.05%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6649      +/-   ##
==========================================
+ Coverage   68.53%   68.58%   +0.05%     
==========================================
  Files        1200     1200              
  Lines      250287   250302      +15     
  Branches    26093    26093              
==========================================
+ Hits       171526   171672     +146     
+ Misses      71929    71816     -113     
+ Partials     6832     6814      -18     
Flag Coverage Δ
Debug 68.58% <100.00%> (+0.05%) ⬆️
production 63.07% <ø> (+0.06%) ⬆️
test 88.83% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...Microsoft.ML.AutoML.Tests/AutoMLExperimentTests.cs 88.85% <100.00%> (+0.51%) ⬆️

... and 10 files with indirect coverage changes

@michaelgsharp michaelgsharp merged commit d974a21 into dotnet:main May 4, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jun 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AutoML 2.0: how to set sampling key
3 participants