2488d9e39b8b83373237803e073c9894ef0cc594,matchzoo/preprocessors/dssm_preprocessor.py,DSSMPreprocessor,fit,#DSSMPreprocessor#,47
Before Change
vocab_unit = build_vocab_unit(data_pack, verbose=verbose)
self._context["vocab_unit"] = vocab_unit
vocab_size = len(vocab_unit.state["term_index"]) + 1
self._context["vocab_size"] = vocab_size
self._context["embedding_input_dim"] = vocab_size
self._context["input_shapes"] = [(vocab_size,), (vocab_size,)]
return self
After Change
vocab_unit = build_vocab_unit(data_pack, verbose=verbose)
self._context["vocab_unit"] = vocab_unit
vocab_size = len(vocab_unit.state["term_index"])
self._context["vocab_size"] = vocab_size
self._context["embedding_input_dim"] = vocab_size
self._context["input_shapes"] = [(vocab_size,), (vocab_size,)]
return self
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: NTMC-Community/MatchZoo
Commit Name: 2488d9e39b8b83373237803e073c9894ef0cc594
Time: 2019-04-10
Author: fanyixing111@hotmail.com
File Name: matchzoo/preprocessors/dssm_preprocessor.py
Class Name: DSSMPreprocessor
Method Name: fit
Project Name: NTMC-Community/MatchZoo
Commit Name: 2488d9e39b8b83373237803e073c9894ef0cc594
Time: 2019-04-10
Author: fanyixing111@hotmail.com
File Name: matchzoo/preprocessors/cdssm_preprocessor.py
Class Name: CDSSMPreprocessor
Method Name: fit
Project Name: NTMC-Community/MatchZoo
Commit Name: 2488d9e39b8b83373237803e073c9894ef0cc594
Time: 2019-04-10
Author: fanyixing111@hotmail.com
File Name: matchzoo/preprocessors/basic_preprocessor.py
Class Name: BasicPreprocessor
Method Name: fit