[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".


If you log in, you will be notified when someone leaves a comment.

Other users would like to know if this solution helped you.


© 2023 - ErnesTech LLC- Privacy