TextLoader code line giving me exception
I followed this tutorial(Tutorial: Use ML.NET to Predict New York Taxi Fares (Regression)).I changed data from dataset,changed classes and their fields according to data and kept the same format(.csv).But when my code goes to Textloader code line from tutorial , it breaks with an exception.
Code line:
pipeline.Add(new TextLoader<myclassname>(DataPath, useHeader: true, separator: ","));
Exception message:
Type not implemented or supported.
I checked prerequisites and all are properly configured on my system.Anything else I need to check or am I missing something?any info on this would be great help.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: a30b3ff5-b5e6-ff02-6f60-b5cef6f34666
- Version Independent ID: fdf962e2-620e-d9ad-5057-5f96f52dc60f
- Content: Use ML.NET to Predict New York Taxi Fares (Regression).
- Content Source: docs/machine-learning/tutorials/taxi-fare.md
- Service: unspecified
- Product: dotnet-ml
- GitHub Login: @aditidugar
- Microsoft Alias: johalex
Share what 'myclassname' looks like?
Feature Class: https://github.com/Sumeetgaara/basicmldotnetapp/blob/master/lol/RandomFone.cs
Predict Class: https://github.com/Sumeetgaara/basicmldotnetapp/blob/master/lol/Predict.cs
I don't think intergers are supported, change your class types to floats
Hi @Sumeetgaara, @jusso-dev is correct. Integers are currently not supported, and so changing types to floats should solve your issue. Please let us know if you are still having trouble!
Issue is gone now.Thanks guys.