Docs: Unhandled Exception: System.InvalidOperationException

Created on 15 Jun 2018  Â·  9Comments  Â·  Source: dotnet/docs

Unhandled Exception: System.InvalidOperationException: The following inputs are missing: Var_db99945c79dc461c88743f0f51f4507d
at Microsoft.ML.Runtime.EntryPoints.JsonUtils.GraphRunner.RunAll()
at Microsoft.ML.LearningPipeline.TrainTInput,TOutput
at FinanceRegressionPredictor.Program.Train(String trainDataPath) in C:\Users\Glauber\source\repos\FinanceRegressionPredictor\FinanceRegressionPredictor\Program.cs:line 65
at FinanceRegressionPredictor.Program.Main(String[] args) in C:\Users\Glauber\source\repos\FinanceRegressionPredictor\FinanceRegressionPredictor\Program.cs:line 22
at FinanceRegressionPredictor.Program.<Main>(String[] args)


Detalhes do documento

⚠ Não edite esta seção. É necessário para a vinculação do problema do docs.microsoft.com ➟ GitHub.

Area - ML.NET Guide product-feedback product-question

Most helpful comment

@GlauberCoder shouldn't TextLoader step be the first in the pipeline, and only then Dictionarizer? Like that:

pipeline.Add(new TextLoader(trainDataPath).CreateFrom<RateValues>(separator: '|', useHeader: true));
pipeline.Add(new Dictionarizer("Label"));

All 9 comments

Desculpe ficou sem a mensagem. Estou tendo este erro ao executar meu código.

                    var pipeline = new LearningPipeline();
        var catecoricalFeatures = Features().Where(f => f.Categorical).Select(f => f.Feature);

        pipeline.Add(new Dictionarizer("Label"));
        pipeline.Add(new TextLoader(trainDataPath).CreateFrom<RateValues>(separator: '|', useHeader: true));
        pipeline.Add(new CategoricalOneHotVectorizer(catecoricalFeatures.ToArray()));
        pipeline.Add(new ColumnConcatenator("Features", Features().Select(f => f.Feature).ToArray()));
        pipeline.Add(new Microsoft.ML.Trainers.StochasticDualCoordinateAscentClassifier());
        pipeline.Add(new PredictedLabelColumnOriginalValueConverter() { PredictedLabelColumn = "PredictedLabel" });

        var model = pipeline.Train<RateValues, RatesPrediction>();

        return model;

E só pra confirmar, este é o codigo do artigo, correto @GlauberCoder?

@GlauberCoder shouldn't TextLoader step be the first in the pipeline, and only then Dictionarizer? Like that:

pipeline.Add(new TextLoader(trainDataPath).CreateFrom<RateValues>(separator: '|', useHeader: true));
pipeline.Add(new Dictionarizer("Label"));

Não é o código do artigo

Thanks, first problem solved, the error changed.... let me try to solve next one :D

Maybe would be a good idea to improve that message.

@GlauberCoder that's true; please report it in ML.NET repo

Yes as @pkulikov said, let’s try to keep the feedback related for content here and product questions and feedback at dotnet/machinelearning. Obrigada!

/cc @OliaG FYI

Was this page helpful?
0 / 5 - 0 ratings

Related issues

skylerberg picture skylerberg  Â·  3Comments

mekomlusa picture mekomlusa  Â·  3Comments

stanuku picture stanuku  Â·  3Comments

ike86 picture ike86  Â·  3Comments

LJ9999 picture LJ9999  Â·  3Comments