Skip to content

Add SamplingKeyColumnName to AutoMLExperiment API - #6649

Merged
michaelgsharp merged 1 commit into
dotnet:mainfrom
torronen:main
May 4, 2023
Merged

Add SamplingKeyColumnName to AutoMLExperiment API#6649
michaelgsharp merged 1 commit into
dotnet:mainfrom
torronen:main

Conversation

@torronen

@torronen torronen commented May 3, 2023

Copy link
Copy Markdown
Contributor

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);

@LittleLittleCloud LittleLittleCloud left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks!

@codecov

codecov Bot commented May 4, 2023

Copy link
Copy Markdown

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.

3 participants