Beispiel #1
0
 def __init__(self,
              activation='tanh',
              lstm_layers=2,
              lstm_dims=125,
              pos_dims=25):
     validate((activation, str), (lstm_layers, int, 0, None),
              (lstm_dims, int, 0, 1000), (pos_dims, int, 0, 1000))
     self.options = get_options_dict(activation, lstm_dims, lstm_layers,
                                     pos_dims)
     self.params = None
     self.model = None
Beispiel #2
0
 def __init__(self, activation='tanh', lstm_layers=2, lstm_dims=125, pos_dims=25):
     validate((activation, str), (lstm_layers, int, 0, None), (lstm_dims, int, 0, 1000),
              (pos_dims, int, 0, 1000))
     self.options = get_options_dict(activation, lstm_dims, lstm_layers, pos_dims)
     self.params = None
     self.model = None