System.InvalidCastException: Unable to cast object of type 'Microsoft.ML.Data.TransformerChain`1[Microsoft.ML.ITransformer]' to type 'Microsoft.ML.Data.TransformerChain`1[Microsoft.ML.Data.RegressionPredictionTransformer`1[Microsoft.ML.Trainers.LinearRegressionModelParameters]]'.



Machine Learning Error:

System.InvalidCastException: Unable to cast object of type 'Microsoft.ML.Data.TransformerChain`1[Microsoft.ML.ITransformer]' to type 'Microsoft.ML.Data.TransformerChain`1[Microsoft.ML.Data.RegressionPredictionTransformer`1[Microsoft.ML.Trainers.LinearRegressionModelParameters]]'.