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 #416

Closed
wants to merge 1 commit into from
Closed

Convert boolean features to float in training data #416

wants to merge 1 commit into 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.

Changes:

  • Add line to convert features to float in training data
  • Update markdown documentation to explain boolean to float conversion

Body:
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.

Changes:
- Add line to convert features to float in training data
- Update markdown documentation to explain boolean to float conversion
@NotSkynet NotSkynet requested a review from a team as a code owner June 27, 2023 01:09
@NotSkynet NotSkynet requested review from SudKul and removed request for a team June 27, 2023 01:09
@NotSkynet NotSkynet closed this Jun 27, 2023
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