Skip to content

Q: How to add a missing column to DataView? #5967

Description

@torronen

I am reading to a DataView with TextLoader and column inference. My dataset is missing some columns (boolean, in my case) that are expected by the ML.NET model. I would like to add all 0's or false's for this column and then run the prediction.

I can only find how to add missing values based on another column. In this case, I dont have any other column to copy with appended missing values.

I can find DropColumn method, but not AddColumn method. Is there some way to add columns with constant values with transformers or other way to IDataView?

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions