Skip to content

Rename types inside MLContext as Catalogs #2169

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 18, 2019
Merged

Conversation

najeeb-kazmi
Copy link
Member

@najeeb-kazmi najeeb-kazmi commented Jan 17, 2019

Fixes #1796

Renames XyzContext types inside MLContext to XyzCatalog.

Renames DataOperations to DataOperationsCatalog.

/// </summary>
/// <param name="ctx">The clustering context trainer object.</param>
/// <param name="catalog">The clustering catalog trainer object.</param>
Copy link
Contributor

Choose a reason for hiding this comment

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

catalog [](start = 25, length = 7)

Great, thanks for fixing these as well, I'd kind of forgotten that we'd want to change the parameter names and descriptors here... and there sure are a lot of them. ;)

@@ -38,7 +38,7 @@ public void SdcaRegression()
var dataPath = GetDataPath(TestDatasets.generatedRegressionDataset.trainFilename);
var dataSource = new MultiFileSource(dataPath);

var ctx = new RegressionContext(env);
var catalog = new RegressionCatalog(env);
Copy link
Contributor

Choose a reason for hiding this comment

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

new RegressionCatalog(env); [](start = 26, length = 27)

Hmmmm interesting. This guy is a bit of an odd duck, I guess it was done before we "unified" the contexts under MLContext. We'll probably want to bring these more up to date at some point lest they mislead people. (Not part of this PR, to be clear.)

Copy link
Contributor

@TomFinley TomFinley left a comment

Choose a reason for hiding this comment

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

Cool thanks @najeeb-kazmi for changing the names, and all the references in those, probably, hundred plus places in the documentation and parameter names. 👍

Copy link
Member

@sfilipi sfilipi left a comment

Choose a reason for hiding this comment

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

:shipit:

@najeeb-kazmi najeeb-kazmi merged commit 779e8c7 into dotnet:master Jan 18, 2019
@fwaris
Copy link

fwaris commented Feb 7, 2019

advanced settings was removed from the API for
ctx.BinaryClassification.Trainers.FastTree

Is there a simple way of specifying "unbalancedSets" as before?

@najeeb-kazmi najeeb-kazmi deleted the 1796 branch January 30, 2020 01:16
@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