Skip to content

"Can't re-use trainer!" message on CV with AveragePerceptron.  #1358

@sfilipi

Description

@sfilipi

Running CV with Average Perceptron throws: "Can't re-use trainer":

Dataset: wikiDetox

Code:

var data= mlContext.Data.TextReader(new TextLoader.Arguments()
                {
                    Separator = "tab",
                    HasHeader = true,
                    Column = new[]
                    {
                        new TextLoader.Column("Sentiment", DataKind.BL, 0),
                        new TextLoader.Column("SentimentText", DataKind.Text, 1)
                    }
                }).Read(dataFile);

var pipeline = mlContext.Transforms.Text.FeaturizeText("SentimentText", "Features")
                    .Append(mlContext.BinaryClassification.Trainers.AveragedPerceptron(label: "Sentiment", features: "Features"));

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions