Spaces:
Running
Running
Update index.html
Browse files- index.html +1 -5
index.html
CHANGED
@@ -1018,12 +1018,8 @@
|
|
1018 |
// Compute fitness
|
1019 |
calculateFitness();
|
1020 |
|
1021 |
-
// Adaptive mutation rate
|
1022 |
-
const progressRate = bestCarProgress;
|
1023 |
-
const adaptedRate = mutationRate * (1 - progressRate * 0.5);
|
1024 |
-
mutationRate = Math.max(0.01, adaptedRate);
|
1025 |
mutationValue.textContent = `${Math.round(mutationRate * 100)}%`;
|
1026 |
-
|
1027 |
|
1028 |
// Create new population
|
1029 |
const newPopulation = [];
|
|
|
1018 |
// Compute fitness
|
1019 |
calculateFitness();
|
1020 |
|
|
|
|
|
|
|
|
|
1021 |
mutationValue.textContent = `${Math.round(mutationRate * 100)}%`;
|
1022 |
+
|
1023 |
|
1024 |
// Create new population
|
1025 |
const newPopulation = [];
|