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

MOME Container Implementation does not support non-array Genotypes #139

Open
Lookatator opened this issue Jan 24, 2023 · 1 comment
Open
Labels
bug Something isn't working

Comments

@Lookatator
Copy link
Member

Lookatator commented Jan 24, 2023

Hi,

It seems the current implementation of the MOME Container does not work if the Genotype is a pytree more general than an array. For example the following line fails to run for Neural Network Genotypes:

pareto_front_genotypes=cell_genotype.squeeze(axis=0),

We have a working fix in the lab; which we will clean before submitting it in a PR :)

@Lookatator Lookatator added the bug Something isn't working label Jan 24, 2023
@limbryan
Copy link
Collaborator

I think this has been fixed and addressed now with #143 right @felixchalumeau? Where we change the explicit type in the repertoire to account for non-array genotypes and arbitrary pytrees (

lambda x: jnp.zeros(shape=(num_centroids,) + x.shape, dtype=x.dtype),
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants