Skip to content

Added tests for new API where components(Loaders/Transforms/Learners) are directly instantiated. - #468

Merged
zeahmed merged 2 commits into
dotnet:masterfrom
zeahmed:new_api_tests
Jul 2, 2018
Merged

Added tests for new API where components(Loaders/Transforms/Learners) are directly instantiated.#468
zeahmed merged 2 commits into
dotnet:masterfrom
zeahmed:new_api_tests

Conversation

@zeahmed

@zeahmed zeahmed commented Jul 2, 2018

Copy link
Copy Markdown
Contributor

This PR addressed #424.

Two scenario tests were added to show how to directly instantiate ML.NET components instead of using Pipeline API. The test may not look elegant at first instance but they will help us shape the new API.

This work is inline with new API proposal #371.

@TomFinley TomFinley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cool nice @zeahmed . Gives us something to improve for sure, as we migrate some of the conveniences over to direct usage.

@TomFinley

TomFinley commented Jul 2, 2018

Copy link
Copy Markdown
Contributor

I wonder if we wanted to keep it (at least while we're working) in a separate folder from the usual "scenarios" folder, so as to keep these "in progress improvement" things in a conceptually distinct location. #Pending

@codemzs

codemzs commented Jul 2, 2018

Copy link
Copy Markdown
Member

super!


Refers to: test/Microsoft.ML.Tests/Scenarios/IrisPlantClassificationWithDirectionInstantiationTests.cs:211 in d8d4c2e. [](commit_id = d8d4c2e, deletion_comment = False)

@codemzs codemzs 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.

This is awesome! Looks great and not too different from what we had except functionally it is solid!

@zeahmed

zeahmed commented Jul 2, 2018

Copy link
Copy Markdown
Contributor Author

Yes, I am moving to new folder so these tests are separate from previous ones.


In reply to: 401920469 [](ancestors = 401920469)

@zeahmed
zeahmed merged commit 769c9c5 into dotnet:master Jul 2, 2018
@zeahmed
zeahmed deleted the new_api_tests branch July 2, 2018 23:40
eerhardt pushed a commit to eerhardt/machinelearning that referenced this pull request Jul 27, 2018
… are directly instantiated. (dotnet#468)

* Added tests for new API where components(Loaders/Transforms/Learners) are directly instantiated.

* Moved new tests to separate folder.
@ghost ghost locked as resolved and limited conversation to collaborators Mar 30, 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.

3 participants