Skip to content

Default column names #5640

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

Closed
korzh opened this issue May 28, 2018 — with docs.microsoft.com · 5 comments
Closed

Default column names #5640

korzh opened this issue May 28, 2018 — with docs.microsoft.com · 5 comments

Comments

Copy link

korzh commented May 28, 2018

From your IRIS classifier example, I guessed that the default column name for features is "Features" and for the label is "Label" and they can be changed using "LabelColumn" and "FeatureColumn" properties of the classifier class. Is it correct?
(it would be better to call the second one "FeaturesColumn" by the way)

Then I tried to change the column name for the output data structure. I used

        public class IrisPrediction {
            [ColumnName("PredictedIris")]
            public string PredictedIris;
        }

and then

            pipeline.Add(new PredictedLabelColumnOriginalValueConverter() { PredictedLabelColumn = "PredictedIris" });

but it throws an exception saying "Column not found: PredictedIris"
What am I doing wrong?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@mairaw
Copy link
Contributor

mairaw commented May 29, 2018

@aditidugar can you take a look at this question? It's about the Iris tutorial.

@aditidugar-zz
Copy link
Contributor

@codemzs will be able to help you here!

@codemzs
Copy link
Member

codemzs commented May 31, 2018

@korzh PredictedLabel is the default name of the column that Scorer produces after a predictor has been trained. This name can be suffixed with a string by setting the properties of the scorer. Unfortunately at the moment we are not exposing the scorer to be configured. You might wonder what is a scorer? It is the component that produces Score, Probability and PredictedLabel columns from a predictor and we automatically attach a scorer in front of a predictor by default because without the scorer the predictor is of little use. I will open an issue for the scorer to be configured and make sure this is addressed in the next one month, hopefully until then you are able to work with the default names?

@korzh
Copy link
Author

korzh commented May 31, 2018

@codemzs Thank you for so detailed explanation. Of course, I can totally work with the default names.
I just thought that PredictedLabelColumn property actually makes the necessary configuring.
Will look forward to the next updates which allow to configure the scorer as well.

@JRAlexander
Copy link
Contributor

Thanks, @aditidugar, and @codemzs for the answers. I think we can close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants