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

Shape missmatching #2

Closed
miha-skalic opened this issue Jun 22, 2018 · 1 comment
Closed

Shape missmatching #2

miha-skalic opened this issue Jun 22, 2018 · 1 comment

Comments

@miha-skalic
Copy link

Following the tutorial i do following:

mu_chembl, cov_chembl = pickle.load(open("chembl_50k_stats.p", 'rb')).values()
gen_mol_act = get_predictions(gen_mol)

In this case mu_chembl is array of shape (512, 512), and gen_mol_act is of shape (4640, 512)

now, calling
calculate_frechet_distance(mu1=np.mean(gen_mol_act, axis=0), mu2=mu_chembl, sigma1=np.cov(gen_mol_act.T), sigma2=cov_chembl) yields an assertion error: Training and test mean vectors have different lengths

Essentially, mu1 is of shape (512, ) while mu2 is of shape (512, 512).

What would be the correct way of solving this?

@miha-skalic
Copy link
Author

Problem resolved. I had a bug in loading the data.

mu_chembl is (correctly) of shape (512, ).

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