Skip to content

Resetting indices for joint_df#80

Merged
yury-lysogorskiy merged 1 commit intoICAMS:masterfrom
HaithamGaafer:reseting-index-joint_df
Nov 20, 2024
Merged

Resetting indices for joint_df#80
yury-lysogorskiy merged 1 commit intoICAMS:masterfrom
HaithamGaafer:reseting-index-joint_df

Conversation

@HaithamGaafer
Copy link
Contributor

There is a bug when using loading a separate testing dataframe when adding the Energy based weights, it duplicates the structure due to having the same indices repeated.

For example,

My training dataframe had 4500 configurations while the testing dataframe had 4111 configurations, combined they are 8611 configurations. The saved datasets with weights would have duplicate entries and it would be nearly double the size of the dataframe.

The suggested fix is to simply reset the indices for the joint dataframe before applying the weights.

There is a bug when using loading a separate testing dataframe when adding the Energy based weights, it duplicates the structure due to having the same indices repeated. 

For example, 

My training dataframe had 4500 configurations while the testing dataframe had 4111 configurations, combined they are 8611 configurations. The saved datasets with weights would have duplicate entries and it would be nearly double the size of the dataframe.

The suggested fix is to simply reset the indices for the joint dataframe before applying the weights.
@yury-lysogorskiy
Copy link
Member

Dear @HaithamGaafer

Thank you for your contribution!

We recently added a Pull Request Template with an explicit license agreement section. By submitting a PR, contributors agree to these licensing conditions.

If you’d like to proceed, please confirm your acceptance of the agreement in this PR or feel free to open a new one.

Thank you again for your valuable work!

@HaithamGaafer
Copy link
Contributor Author

You are welcome @yury-lysogorskiy.

I agree to these conditions.

@yury-lysogorskiy yury-lysogorskiy merged commit d1c213a into ICAMS:master Nov 20, 2024
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.

2 participants