예제 #1
0
 def _build_func_apprx(self, ts_nor_x):
     return U.build_multilayer_perceptron('yhat',
                                          ts_nor_x,
                                          self.y_dim,
                                          self._n_layers,
                                          self._size,
                                          self._activation,
                                          output_init_std=0.01)
예제 #2
0
 def _rebuild_func_apprx(self, x):
     ts_nor_x = x
     with tf.variable_scope(self._tfObject__name):
         assert tf.get_variable_scope().name == self._tfObject__scope
         return U.build_multilayer_perceptron('yhat',
                                              ts_nor_x,
                                              self.y_dim,
                                              self._n_layers,
                                              self._size,
                                              self._activation,
                                              output_init_std=0.01,
                                              reuse=True)