-
Notifications
You must be signed in to change notification settings - Fork 35
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
Optimize the NSGA-III and update IMMOEA for gpjax0.8.2 #123
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please delete all debug lines.
src/evox/algorithms/mo/im_moea.py
Outdated
sorted_indices = jnp.sort(masked_indices).astype(jnp.int32) | ||
next_generation = next_generation[sorted_indices, :] | ||
next_generation = jnp.sort(next_generation, axis=0) | ||
# jax.debug.print("next_generation: {}", next_generation[self.pop_size-5:self.pop_size+5, :]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# jax.debug.print("next_generation: {}", next_generation[self.pop_size-5:self.pop_size+5, :]) |
src/evox/algorithms/mo/im_moea.py
Outdated
next_generation = lax.dynamic_slice(next_generation, (0, 0), population.shape) | ||
next_generation = jnp.clip(next_generation, self.lb, self.ub) | ||
# jax.debug.print("next_generation: {}", jnp.isinf(next_generation).all()) | ||
# next_generation = jnp.clip(next_generation, self.lb, self.ub) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# next_generation = jnp.clip(next_generation, self.lb, self.ub) |
src/evox/algorithms/mo/im_moea.py
Outdated
|
||
off = jax.lax.cond(valid_sum > num, valid_fun, invalid_fun, off) | ||
off = jnp.where((jnp.arange(self.pop_size) > num)[:, None], jnp.inf, off) | ||
# jax.debug.print("off: {}", off[self.pop_size - 5: , :]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# jax.debug.print("off: {}", off[self.pop_size - 5: , :]) |
All debug lines have been deleted |
Description
Checklist
black
.