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

change ml_id infills to zero from nan #353

Merged
merged 4 commits into from
Aug 7, 2024
Merged

change ml_id infills to zero from nan #353

merged 4 commits into from
Aug 7, 2024

Conversation

AUdaltsova
Copy link
Contributor

@AUdaltsova AUdaltsova commented Aug 7, 2024

Pull Request

Description

When ml_id is not in metadata, we create a new column filled with np.nan, which will later be infilled by zeroes over and over. This PR creates it as a column of -1 to signal that this is not a normal ml_id

Fixes #321

How Has This Been Tested?

Ran batch creation and later training with this change for windnet; change for pvnet is the same

Checklist:

  • My code follows OCF's coding style guidelines
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • I have checked my code and corrected any misspellings

@AUdaltsova AUdaltsova marked this pull request as ready for review August 7, 2024 15:05
@AUdaltsova AUdaltsova requested review from Sukh-P and dfulu and removed request for Sukh-P August 7, 2024 15:05
Copy link
Member

@dfulu dfulu left a comment

Choose a reason for hiding this comment

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

Can we make the missing number a more conspicuous value like -1?

@AUdaltsova
Copy link
Contributor Author

Can we make the missing number a more conspicuous value like -1?

Yeah good idea!

Copy link
Member

@dfulu dfulu left a comment

Choose a reason for hiding this comment

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

LGTM!

@AUdaltsova AUdaltsova merged commit 75f4584 into main Aug 7, 2024
3 checks passed
@AUdaltsova AUdaltsova deleted the ml_id-infill branch August 7, 2024 16:09
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.

ml_id is nan when using pvnet_site_datapipe and leads to unnecessary fills
2 participants