matchzoo.auto package

Submodules

matchzoo.auto.prepare module

Prepare mode, preprocessor, and data pack.

matchzoo.auto.prepare.prepare(model, data_pack, preprocessor=None, verbose=1)

Prepare mode, preprocessor, and data pack.

This handles interaction among data, model, and preprocessor automatically. For example, some model like DSSM have dynamic input shapes based on the result of word hashing. Some models have an embedding layer which dimension is related to the data's vocabulary size. prepare takes care of all that and returns properly prepared model, data, and preprocessor for you.

参数:
  • model --
  • data_pack --
  • preprocessor -- If not set, use the model's default preprocessor.
  • verbose -- Verbosity, 0 or 1.
返回类型:

Tuple[BaseModel, DataPack, BasePreprocessor]

返回:

matchzoo.auto.tuner module

Tuner class. Currently a minimum working demo.

class matchzoo.auto.tuner.Tuner(**kwargs)

基类:object

Tuner.

params

return -- tuner configuration paratmeters.

tune()

Tune.

Module contents