Skip to content

Remove legacy API test that already have coverage and refactor code. #2015

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 2 commits into from
Jan 5, 2019

Conversation

codemzs
Copy link
Member

@codemzs codemzs commented Jan 4, 2019

Deleted all tests under test/Microsoft.ML.Tests/Scenarios/PipelineApi and removed SentimentPredictionTests.cs from test/Microsoft.ML.Tests/ScenariosWithDirectInstantiation because these tests already have equivalent tests that use new api under test/Microsoft.ML.Tests/Scenarios/Api/Estimators.

Verified the code coverage wasn't affected too much, its now at 68.94% vs 68.97% the difference is in the below dlls:
microsoft.ml.data.dll - 0.05%
microsoft.ml.entrypoints.dll - 0.18% (expected since legacy api calls into core entrypoints API)
microsoft.ml.fasttree.dll - 0.04%
microsoft.ml.hallearners.dll - 0.99% (This drop is coming from the removal of SymSGD test, will add one in another PR)
microsoft.ml.transforms.dll - 0.06%

@abgoswam
Copy link
Member

abgoswam commented Jan 4, 2019

#pragma warning disable 612

so we should be able to delete this now i guess #Resolved


Refers to: test/Microsoft.ML.Tests/ScenariosWithDirectInstantiation/IrisPlantClassificationTests.cs:11 in acfd3b0. [](commit_id = acfd3b0, deletion_comment = False)

@abgoswam
Copy link
Member

abgoswam commented Jan 4, 2019

    private void CompareMatrics(MultiClassClassifierMetrics metrics)

can we fix this typo in this PR itself #Resolved


Refers to: test/Microsoft.ML.Tests/ScenariosWithDirectInstantiation/IrisPlantClassificationTests.cs:90 in acfd3b0. [](commit_id = acfd3b0, deletion_comment = False)

@artidoro
Copy link
Contributor

artidoro commented Jan 4, 2019

Could you add the SymSGD test directly in this PR? It would be good to check that we can regain the test coverage of microsoft.ml.hallearners.dll and have a final number on the impact of this PR. #Resolved

Copy link
Member

@abgoswam abgoswam left a comment

Choose a reason for hiding this comment

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

:shipit:

Copy link
Contributor

@artidoro artidoro left a comment

Choose a reason for hiding this comment

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

:shipit:

@codemzs codemzs merged commit 7caac81 into dotnet:master Jan 5, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Mar 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants