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)
⚠Não edite esta seção. É necessário para a vinculação do problema do docs.microsoft.com ➟ GitHub.
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
Most helpful comment
@GlauberCoder shouldn't
TextLoaderstep be the first in the pipeline, and only thenDictionarizer? Like that: