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

Prediction on held-out data #6

Open
willtownes opened this issue Jun 24, 2021 · 3 comments
Open

Prediction on held-out data #6

willtownes opened this issue Jun 24, 2021 · 3 comments

Comments

@willtownes
Copy link

Is it possible to make predictions using a fitted MEFISTO model on held-out test data that were not used in training?

@willtownes
Copy link
Author

Copying over from a slack thread to hopefully boost visibility. I understand the way to do this is through the entry_point.predict_factor method. When I tried this it throws the following error. It doesn't appear to matter whether I pass in a new set of covariates or just call the method with no arguments. According to the trace the error occurs on this line.

ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 1000 and the array at index 1 has size 2363

For context, 1000 is the number of inducing points and 2363 is the number of observations in the training data.

@bv2
Copy link
Contributor

bv2 commented Jul 8, 2021

Hi Will,
thanks for reporting this bug.
This should be fixed now on the dev branch (pip install git+https://github.com/bioFAM/mofapy2@dev) and will be part of the next mofapy2 version.

@khalilouardini
Copy link

Hi!

Has this been fixed on the latest version (entry_point.predict_factor on held out data) please?

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

3 participants