matchzoo.contrib.models package

Submodules

matchzoo.contrib.models.match_lstm module

Match LSTM model.

class matchzoo.contrib.models.match_lstm.MatchLSTM(params=None, backend=None)

基类:matchzoo.engine.base_model.BaseModel

Match LSTM model.

Examples

>>> model = MatchLSTM()
>>> model.guess_and_fill_missing_params(verbose=0)
>>> model.params['embedding_input_dim'] = 10000
>>> model.params['embedding_output_dim'] = 100
>>> model.params['embedding_trainable'] = True
>>> model.params['fc_num_units'] = 200
>>> model.params['lstm_num_units'] = 256
>>> model.params['dropout_rate'] = 0.5
>>> model.build()
build()

Build model.

classmethod get_default_params()

Get default parameters.

Module contents