Skip to content

Classification ModelOutput.Score values' range are inconsistent #2042

Description

@andrasfuchs

System Information (please complete the following information):

  • Model Builder Version (available in Manage Extensions dialog): 16.13.1.2210302
  • Visual Studio Version: 17.0.5

Describe the bug

  • On which step of the process did you run into an issue:
    ML model consumption

  • Clear description of the problem:
    I tested various ML models with my input that had a few features and one classification label.

The ModelOutput was generated successfully, but the Score values had the following ranges depending the the algorithm:
FastForestBinary [-4.00..+4.00]
LightGbmBinary [-9.72..+9.01]
SdcaLogisticRegressionBinary [+0.03..+0.63]

I would have expected to have the same normalized range for all of them, so the Score value would have been between 0 and 1 depending on the confidence level of models.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new .NET 6 project
  2. Add a new machine learning model and start Model Builder
  3. Set a CSV dataset as input with a few feature columns and one classification label column
  4. Start the training, and stop it at different algorithms so that you can test the behavior
  5. Run the generated code and feed different inputs to the ModelInput and run the Predict method
  6. Check the range of Score property on the ModelOutput class

Expected behavior
I would expect to have Score values between 0.0 and 1.0 indicating the confidence of the model.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions