Skip to content

Commit 7baa12a

Browse files
committed
Bugfix
1 parent d0367f8 commit 7baa12a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ai/models/random/RandomModel.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Model from '../Model';
22

33
export default class RandomModel extends Model {
44
weights = [];
5-
baises = [];
5+
biases = [];
66

77
init() {
88
this.randomize();
@@ -14,7 +14,7 @@ export default class RandomModel extends Model {
1414
this.weights[0] * inputX[0] +
1515
this.weights[1] * inputX[1]+
1616
this.weights[2] * inputX[2] +
17-
this.baises[0];
17+
this.biases[0];
1818
return y < 0 ? 1 : 0;
1919
}
2020

@@ -26,7 +26,7 @@ export default class RandomModel extends Model {
2626
this.weights[0] = random();
2727
this.weights[1] = random();
2828
this.weights[2] = random();
29-
this.baises[0] = random();
29+
this.biases[0] = random();
3030
}
3131
}
3232

0 commit comments

Comments
 (0)