e4a49e89ad8544749ac653c6bfde2b8dcb45e47a,optuna/integration/__init__.py,,,#,9

Before Change


from optuna.types import TYPE_CHECKING


__all__ = [
    "chainer",
    "chainermn"
    "keras",
    "lightgbm",
    "tensorflow",
    "xgboost",
    "ChainerMNStudy"
    "ChainerPruningExtension",
    "KerasPruningCallback",
    "LightGBMPruningCallback",
    "TensorFlowPruningHook",
    "XGBoostPruningCallback",
]

After Change


from optuna.types import TYPE_CHECKING


_import_structure = {
    "chainer": ["ChainerPruningExtension"],
    "chainermn": ["ChainerMNStudy"],
    "keras": ["KerasPruningCallback"],
    "lightgbm": ["LightGBMPruningCallback"],
    "tensorflow": ["TensorFlowPruningHook"],
    "xgboost": ["XGBoostPruningCallback"],
}


__all__ = list(_import_structure.keys()) + sum(_import_structure.values(), [])


if sys.version_info[0] == 2 or TYPE_CHECKING:
    from optuna.integration.chainer import ChainerPruningExtension  // NOQA
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: pfnet/optuna
Commit Name: e4a49e89ad8544749ac653c6bfde2b8dcb45e47a
Time: 2019-03-13
Author: sano@preferred.jp
File Name: optuna/integration/__init__.py
Class Name:
Method Name:


Project Name: pfnet-research/chainer-chemistry
Commit Name: 453206e9d8b9a88ae6bbdca351790856abffa865
Time: 2018-05-04
Author: mottodora@gmail.com
File Name: examples/molnet/train_molnet.py
Class Name:
Method Name: main


Project Name: sahana/eden
Commit Name: a9dc3f6e92aa0204ecad749bcf72454a7135a6f9
Time: 2021-02-28
Author: dominic@nursix.org
File Name: modules/templates/RLP/notifications.py
Class Name: InlineNotifications
Method Name: __call__