Skip to content

Commit

Permalink
best fn example changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Yurov committed Jun 14, 2022
1 parent f93b501 commit 36a7622
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ async function solve() {
const bestOne = genetic.best()[0]; // get best one
console.log(bestOne);

if (bestOne === solution) {
if (bestOne.entity === solution) {
break;
}
}
Expand All @@ -79,7 +79,7 @@ to do two evolutions and then get the best N phenoTypes with scores (see *.score
Retrieve the Phenotype with the highest fitness score like so. You can get directly N best scored items
```js
const best = genetic.best(1)
// best:T = [{...}];
// best = [{...}];
```

# Functions
Expand Down

0 comments on commit 36a7622

Please sign in to comment.