deep-learning-v2-pytorch icon indicating copy to clipboard operation
deep-learning-v2-pytorch copied to clipboard

Convert boolean features to float in training data

Open NotSkynet opened this issue 2 years ago • 0 comments

This commit addresses a type mismatch issue in the neural network training function. The one-hot encoded rank features in the training data were boolean values, which caused a UFuncTypeError when trying to perform operations with float values in the error term formula.

To fix this, we've added a line to convert all features in the training data to float. This converts the boolean rank features to numerical values (1.0 for True, 0.0 for False), which can be used in the error term formula without causing type errors.

We've also updated the markdown documentation to explain this conversion.

NotSkynet avatar Jun 27 '23 01:06 NotSkynet