Machine-Learning Error: Message=The weights/bias contain invalid values (NaN or Infinite). Potential causes: high learning rates, no normalization, high initial weights, etc.
Source=Microsoft.ML.StandardTrainers
Please Login to see the rest of the answer
- Find the OnlineGradientDescent algorithm and fine tune it's learning rate from 0.1 to 0.001f. See the code below:
.Append(mlContext.Regression.Trainers.OnlineGradientDescent(labelColumnName: "yourColumnName", featureColumnName: "Features",learningRate: 0.001f,numberOfIterations: 10));
//You might get away with reducing numberOfIterations as well.