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

Add class to handle value filling #46

Draft
wants to merge 77 commits into
base: main
Choose a base branch
from
Draft

Conversation

louisPoulain
Copy link
Collaborator

No description provided.

louisPoulain added 30 commits June 6, 2024 15:34
Modify Standardizer to ensure compatibility with the new parent class and method
…tested with the original standardizer class
@louisPoulain
Copy link
Collaborator Author

@dnerini Should we already aim for a ValueFiller that can differentiate between different variables ?

from typing_extensions import Self


class ValueFiller:
Copy link
Member

Choose a reason for hiding this comment

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

I'd use "Imputer" since imputation is a widely used concept in ML, see e.g. https://scikit-learn.org/stable/modules/impute.html

Base automatically changed from feature/normalizer to main August 31, 2024 16:00
Comment on lines +198 to +202
def fit(self,
dataset: xr.Dataset,
dims: Optional[list] = None,
):
self.fillvalue = self.fillvalue
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Here we currently don't ask for all variables to be filled. This is not an issue as we remove NaNs afterwards anyway, but this behaviour may not be expected by users.
Should we force for all vars to be present ? Or have a "default" value assigned to the rest of variables ?

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