Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ML.Net "No valid instances encountered during data loading" error while loading data file

error screen shot

var testDataPath = "model.csv";
IDataView trainingDataView = mlContext.Data.LoadFromTextFile<MovieRating>(trainingDataPath, hasHeader: true, separatorChar: ',');
ITransformer model = trainerEstimator.Fit(trainingDataView);

while returning the transformer i have an error like

No valid instances encountered during data loading

How can i solve it? Any ideas?

like image 323
Faruk Yazici Avatar asked Sep 05 '26 03:09

Faruk Yazici


1 Answers

I was experiencing this, and solved reviewing my dataset (do they fit into MovieRating).

In my case I was missing the separatorChar: ',' when loading the data view. After including it, the exception was not thrown.

like image 62
Eduardo Kuwakino Avatar answered Sep 07 '26 22:09

Eduardo Kuwakino



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!