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

Problem with 'test_X_indicating_mask' #20

Open
manuelalejandr opened this issue Feb 11, 2025 · 1 comment
Open

Problem with 'test_X_indicating_mask' #20

manuelalejandr opened this issue Feb 11, 2025 · 1 comment

Comments

@manuelalejandr
Copy link

I'm following your tutorial for python notebook
and the variable gene_physionet2012(artificially_missing_rate=0.1) haven't the key test_X_indicating_mask. Then when I tried to measure mae when the following code:

from pypots.utils.metrics import calc_mae

# calculate mean absolute error on the ground truth (artificially-missing values)
testing_mae = calc_mae(
    saits_imputation, 
    physionet2012_dataset['test_X_ori'], 
    physionet2012_dataset['test_X_indicating_mask'],
)
print(f"Testing mean absolute error: {testing_mae:.4f}")

I get the following error: KeyError: 'test_X_indicating_mask'

Can you suggest me the solutions?

@WenjieDu
Copy link
Owner

Hi there 👋,

Thank you so much for your attention to PyPOTS and BrewPOTS! You can follow me on GitHub to receive the latest news of PyPOTS. If you find PyPOTS and BrewPOTS helpful to your work, please star our repositories. Your star is your recognition, which can help more people notice PyPOTS and grow PyPOTS community. It matters and is definitely a kind of contribution to the community.

I have received your message and will respond ASAP. Thank you for your patience! 😃

Best,
Wenjie

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

2 participants