Skip to content

Numerical columns missing #5738

@iluveu28

Description

@iluveu28

System information

  • OS version/distro: Linux
  • .NET Version (eg., dotnet --info): 3.1

Issue

This is a follow to the previous issue (#5459) that @antoniovs1029 previously helped with.

I have a project where the training data has 27 columns. Somehow the InferColumns excluded all the numerical columns.

    var columnInference = _mlContext.Auto().InferColumns(trainingFilePath, labelColumnName);
    var textLoader = _mlContext.Data.CreateTextLoader(columnInference.TextLoaderOptions);

    var trainingDataView = textLoader.Load(trainingFilePath);

When I inspect the columnInference variable, I see only the string columns. Why?

Also, when I inspect the trainingDataView variable, I see an additional column created called Features which is a vector type.

Although the training was successful and saved. The prediction is not working because it's complaining the Features column is missing. How do I get around this?

Predict-error

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions