Skip to content

Commit

Permalink
change indexing to retrieve current fitness in intra batch comp
Browse files Browse the repository at this point in the history
  • Loading branch information
Lisa committed Jul 4, 2024
1 parent eb2cf31 commit b27c924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qdax/core/containers/unstructured_repertoire.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def intra_batch_comp(
# We want to eliminate the same individual (distance 0)
fitness = jnp.where(knn_relevant_indices == current_index, False, fitness)
current_fitness = jnp.squeeze(
eval_scores.at[knn_relevant_indices.at[0].get()].get()
eval_scores.at[current_index].get()
)

# Is the fitness of the other individual higher?
Expand Down

0 comments on commit b27c924

Please sign in to comment.