e63c463a3200d9843bc5be6c1c3ee36fb267cbde,matchzoo/engine/param_table.py,ParamTable,hyper_space,#ParamTable#,57
Before Change
:return: Hyper space of the table, a valid `hyperopt` graph.
return {
param.name: param.hyper_space
for param in self._params.values()
if param.hyper_space is not None
}
def __getitem__(self, key: str) -> typing.Any:
After Change
def hyper_space(self) -> dict:
:return: Hyper space of the table, a valid `hyperopt` graph.
full_space = {}
for param in self:
if param.hyper_space is not None:
param_space = param.hyper_space
if isinstance(param_space, hyper_spaces.HyperoptProxy):
param_space = param_space(param.name)
full_space[param.name] = param_space
return full_space
def __getitem__(self, key: str) -> typing.Any:
:return: The value of the parameter in the table named `key`.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: NTMC-Community/MatchZoo
Commit Name: e63c463a3200d9843bc5be6c1c3ee36fb267cbde
Time: 2018-12-29
Author: i@uduse.com
File Name: matchzoo/engine/param_table.py
Class Name: ParamTable
Method Name: hyper_space
Project Name: dmlc/gluon-nlp
Commit Name: f19ace982075ea009af81f5e9f687cc2276f50ea
Time: 2020-01-20
Author: 50716238+MoisesHer@users.noreply.github.com
File Name: scripts/bert/fp16_utils.py
Class Name:
Method Name: grad_global_norm
Project Name: OpenNMT/OpenNMT-py
Commit Name: bd7096d17a03f2c9375c7492f9e680e5cca7058e
Time: 2019-02-15
Author: dylan.flaute@gmail.com
File Name: onmt/inputters/dataset_base.py
Class Name: Dataset
Method Name: __init__