Skip to content

LogisticRegression example using MNIST  #327

@matnatx

Description

@matnatx

I am trying to change MNIST example that uses the StochasticDualCoordinateAscent to use LogisticRegression instead but get the following exception thrown:

Schema mismatch for label column '': expected Key, got R4
Parameter name: labelCol

Does anyone know what this means and how I can fix this?

I only changed:

var trainer = mLContext.MulticlassClassification.Trainers.StochasticDualCoordinateAscent(labelColumnName: "Number", featureColumnName: DefaultColumnNames.Features);

To:

var trainer = mLContext.MulticlassClassification.Trainers.LogisticRegression(labelColumnName: "Number", featureColumnName: DefaultColumnNames.Features);

Thanks!

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