Skip to content

Predict expects the Label as input #3063

Open
@singlis

Description

@singlis

Issue

When calling Predict, our Predict method will take in the same input as what is used for the training pipeline. This is a bit "odd" as we force the user to define a "Label" variable that does nothing nor is it needed for the output.

Using the example from #3037, we have something like this:

    let predictor = mlContext.Model.CreatePredictionEngine(transformer)
    let prediction:Prediction = predictor.Predict({Area=0; Price = 209000})

Where Area is our "Label", because this is required by the pipeline, we have to add this in as part of the input.

Could our pipeline change to only consume the data that is needed to do the prediction? And ideally have something like this:

let prediction:Prediction = predictor.Predict(209000)

cc @glebuk for any additional comments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Priority of the issue for triage purpose: Needs to be fixed at some point.enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions