Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert boolean features to float in training data #417

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

NotSkynet
Copy link

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.

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 NotSkynet requested a review from a team as a code owner June 27, 2023 01:30
@NotSkynet NotSkynet requested review from SudKul and removed request for a team June 27, 2023 01:30
Copy link
Author

@NotSkynet NotSkynet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot to change the test_out so that it uses the new float values. Also the original seems to work fine on older python versions but not python 3.10.11 the version I used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant