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

Better way of handling missing data. #1

Open
xehu opened this issue Jan 26, 2024 · 0 comments
Open

Better way of handling missing data. #1

xehu opened this issue Jan 26, 2024 · 0 comments

Comments

@xehu
Copy link
Collaborator

xehu commented Jan 26, 2024

The repository, and the TPM work as a whole, currently contain a number of naive ways to handle missing data. This Issue proposes to handle them more thoughtfully.

e.g., from the multi-task data cleaning:

	threshold = 0.8  # 80% threshold
	user_info = user_info.dropna(axis=1, thresh=int(threshold * len(user_info)))
	#### TODO --- figure out better way to handle NA's here!

from the HorseRaceDataSet constructor:

  if(self.fillna_options == 'mean'):
            # Fill NA with mean -- TODO: add other options!
            data.fillna(data.mean(numeric_only=True), inplace=True)

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

No branches or pull requests

1 participant