matchzoo.models.match_srnn
¶
An implementation of Match-SRNN Model.
Module Contents¶
-
class
matchzoo.models.match_srnn.
MatchSRNN
¶ Bases:
matchzoo.engine.base_model.BaseModel
Match-SRNN Model.
Examples
>>> model = MatchSRNN() >>> model.params['channels'] = 4 >>> model.params['units'] = 10 >>> model.params['dropout'] = 0.2 >>> model.params['direction'] = 'lt' >>> model.guess_and_fill_missing_params(verbose=0) >>> model.build()
-
classmethod
get_default_params
(cls)¶ Returns: model default parameters.
-
build
(self)¶ Build model structure.
-
forward
(self, inputs)¶ Forward.
-
classmethod