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 d0367f8 commit 7baa12aCopy full SHA for 7baa12a
src/ai/models/random/RandomModel.js
@@ -2,7 +2,7 @@ import Model from '../Model';
2
3
export default class RandomModel extends Model {
4
weights = [];
5
- baises = [];
+ biases = [];
6
7
init() {
8
this.randomize();
@@ -14,7 +14,7 @@ export default class RandomModel extends Model {
14
this.weights[0] * inputX[0] +
15
this.weights[1] * inputX[1]+
16
this.weights[2] * inputX[2] +
17
- this.baises[0];
+ this.biases[0];
18
return y < 0 ? 1 : 0;
19
}
20
@@ -26,7 +26,7 @@ export default class RandomModel extends Model {
26
this.weights[0] = random();
27
this.weights[1] = random();
28
this.weights[2] = random();
29
- this.baises[0] = random();
+ this.biases[0] = random();
30
31
32
0 commit comments