We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f93b501 commit 36a7622Copy full SHA for 36a7622
README.md
@@ -67,7 +67,7 @@ async function solve() {
67
const bestOne = genetic.best()[0]; // get best one
68
console.log(bestOne);
69
70
- if (bestOne === solution) {
+ if (bestOne.entity === solution) {
71
break;
72
}
73
@@ -79,7 +79,7 @@ to do two evolutions and then get the best N phenoTypes with scores (see *.score
79
Retrieve the Phenotype with the highest fitness score like so. You can get directly N best scored items
80
```js
81
const best = genetic.best(1)
82
-// best:T = [{...}];
+// best = [{...}];
83
```
84
85
# Functions
0 commit comments