fix flipY method
This commit is contained in:
@@ -18,9 +18,7 @@ flipX(arr) {
|
||||
};
|
||||
|
||||
flipY(arr) {
|
||||
|
||||
|
||||
this.flipX(arr.slice().reverse());
|
||||
return this.flipX(arr.slice().reverse());
|
||||
}
|
||||
// Creates a 1 hot of the diff
|
||||
showMove(first, second) {
|
||||
@@ -113,6 +111,7 @@ async trainOnGames(games, setState) {
|
||||
});
|
||||
|
||||
// Tensorfy!
|
||||
console.log(AllX);
|
||||
const stackedX = tf.stack(AllX);
|
||||
const stackedY = tf.stack(AllY);
|
||||
await this.trainModel(model, stackedX, stackedY);
|
||||
|
||||
Reference in New Issue
Block a user