Skip to content

Get prediction list #250

Closed
Closed

Description

@ecofee

I am testing about document classification.
It return only single label.

I want to list of prediction with weight.
It would look like below,

public class DocumentPrediction 
{
  [ColumnName("PredictedLabel")]
  public string Label {get;set;}
  public float Weight {get;set;}
}
,
PredictionModel<DocumentData , List<DocumentPrediction>>

Is that possible with StochasticDualCoordinateAscentClassifier? How can I do that?
There is no ref about this.

Activity

  1. codemzs commented on May 28, 2018

    @codemzs
    Member

    Hi @ecofee ,

    Seems like you want scores for all the classes. If that is the case add a column of type float[] and then add a ColumnName attribute on it called "Score", this will give you all the scores. To get scores to label names use TryGetScoreLabelNames as shown in the scenario example.

  2. ecofee commented on May 28, 2018

    @ecofee
    Author

    Thanks. But, There is no TryGetScoreLabelNames in ML.

    .net framework 4.7.1
    Microsoft.ML 0.1.0(Nuget)

  3. codemzs commented on May 28, 2018

    @codemzs
    Member

    Yes, it is not part of the current public nuget but will be part of the next one. In the meantime you can clone master branch and generate nuget locally to use this API. You can test this locally by doing the following:
    build.cmd
    build.cmd -buildPackages

    Please delete the bin folder before doing this.

  4. ecofee commented on May 28, 2018

    @ecofee
    Author

    It helped me. Thanks again.

  5. shauheen commented on May 31, 2018

    @shauheen
    Contributor

    @ecofee you can also use the myget feed for daily nugets. Please let us know if we can close the issue. Thanks.

  6. abgoswam commented on Oct 18, 2018

    @abgoswam
    Member

    DRI RESPONSE: Issue seems to have been answered. I plan to close the issue withing the next few days.

  7. ghost locked as resolved and limited conversation to collaborators on Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions