Explorar o código

Added next number

Efren Yevale Varela %!s(int64=4) %!d(string=hai) anos
pai
achega
a859aa3b21
Modificáronse 1 ficheiros con 11 adicións e 0 borrados
  1. 11 0
      console.js

+ 11 - 0
console.js

@@ -49,3 +49,14 @@ runTests("Color match", netColor, [
   { r: 0.5, g: 0.2, b: 0.2 }
 ]);
 
+netNext = new brain.recurrent.RNNTimeStep();
+netNext.train([
+  [0,1,2,3,4],
+  [4,3,2,1,0]
+]);
+runTests("Next number", netNext, [
+  [1,2,3],
+  [3,2,1],
+  [3,2]
+]);
+