Reputation: 93
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?
Upvotes: 3
Views: 617
Reputation: 13
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.
Upvotes: 1