Skip to content

Commit

Permalink
get_rank instead of just rank (was failing to install in older python…
Browse files Browse the repository at this point in the history
… versions)
  • Loading branch information
gAldeia committed Apr 24, 2024
1 parent 1341183 commit 5ee9393
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ That means it should be compatible with sklearn pipelines, wrappers, and so fort

In addition, Brush provides functionality that allows you to feed in more complicated data types than just matrices of floating point values.

<!-- TODO: update these examples (at least check they still work) -->

## Regression

```python
Expand Down
4 changes: 2 additions & 2 deletions src/selection/nsga2.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ class NSGA2 : public SelectionOperator<T>
auto ind1 = pop.individuals[i];
auto ind2 = pop.individuals[j];

if (ind1->fitness.rank < ind2->fitness.rank)
if (ind1->fitness.get_rank() < ind2->fitness.get_rank())
return true;
else if (ind1->fitness.rank == ind2->fitness.rank &&
else if (ind1->fitness.get_rank() == ind2->fitness.get_rank() &&
ind1->fitness.crowding_dist > ind2->fitness.crowding_dist)
return true;
return false;
Expand Down
2 changes: 0 additions & 2 deletions tests/cpp/test_brush.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ TEST(Engine, EngineWorks)
est_not_div2.run(data);

// TODO: test predict and predict proba

// TODO: why isnt this working for classification
// TODO: validation loss
}

Expand Down

0 comments on commit 5ee9393

Please sign in to comment.