[Solved] Machine-Learning Error: The expected type was 'System.Single' but the actual value was of type 'System.Decimal

Question: How do you solve Machine-Learning Error: "The expected type was 'System.Single' but the actual value was of type 'System.Decimal"?

Solution: Make sure that you are storing the data as Real in  SQL Server Database, If a Machine Learning column is expected as a Single which is a Float then the Data Type in SQL Server Table Column should be a Real.

[NB] If you are working with numbers, a rule of thumb is to make those numbers as "Float" in the Class Modal and then store the data in the Database as "Real".

Machine-Learning asp.net core 3.1 Machine-Learning published

Was this page helpful?

Yes Yes! this solution to the problem was helpful. No No! this solution to the problem was not helpful.. Leave ErnesTech Feedback.Feedback
Login to Continue

Community of Software Developers

Welcome, log in to continue reading. It's free and only takes a minute.




© 2020 - ErnesTech - Privacy