Can't bind the IDataView column ColumnName of type VectorSingle, 2 to field or property AnotherColumnName of type System.Single

 

Problem: Microsoft Machine Learning Predicting Data point with Time Series using ForecastBySsa Algorithm Error:  Message=Can't bind the IDataView column 'BallOne' of type 'Vector<Single, 2>' to field or property 'BallOne' of type 'System.Single'.

System.InvalidOperationException

  HResult=0x80131509 

Source=Microsoft.ML.Data

  StackTrace:

   at Microsoft.ML.Data.TypedCursorable`1..ctor(IHostEnvironment env, IDataView data, Boolean ignoreMissingColumns, InternalSchemaDefinition schemaDefn)

   at Microsoft.ML.Data.TypedCursorable`1.Create(IHostEnvironment env, IDataView data, Boolean ignoreMissingColumns, SchemaDefinition schemaDefinition)

 

Solution: When working with IDataView to hold your Machine Learning Raw Data, the data is lazy loaded and normally stored as Vector DataType. You might know that Machine Learning works good with with Vector data type, hence in order to have the data type mapped correctly navigate to your Predication Class and change the data type Field you are trying to predict to "float[]" as this can hold several data for one field. I hope this helps, if not leave me a comment below. 

   

 

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