Browse Source

Update: simplify test 02

Jason Xing 3 năm trước cách đây
mục cha
commit
619f200cb7
1 tập tin đã thay đổi với 3 bổ sung9 xóa
  1. 3 9
      brain-js.test-02-RNN.html

+ 3 - 9
brain-js.test-02-RNN.html

@@ -31,10 +31,9 @@
   <script type="text/javascript">
     // provide optional config object, defaults shown.
     const config = {
-      inputSize: 20,
-      inputRange: 20,
-      hiddenLayers: [2, 5],
-      outputSize: 20,
+      inputSize: 5,
+      hiddenLayers: [6,6],
+      outputSize: 5,
       learningRate: 0.01,
       decayRate: 0.999,
     };
@@ -42,11 +41,6 @@
     const svg_config = {
       height: 480,
       width: 640,
-      radius: 10,
-      inputs:{
-        labels:['1','2','3', '4','5' ],
-        color:'#333',
-      }
     };
 
     // create a simple recurrent neural network