c7fc32d37d74dc7ea085f4885f6f17eb213d1e68,optuna/integration/tfkeras.py,,,#,4
Before Change
from typing import Any // NOQA
from typing import Dict // NOQA
try:
from tensorflow.keras.callbacks import Callback
_available = True
except ImportError as e:
_import_error = e
// TFKerasPruningCallback is disabled because TensorFlow is not available.
_available = False
Callback = object
class TFKerasPruningCallback(Callback):
tf.keras callback to prune unpromising trials.
This callback is intend to be compatible for TensorFlow v1 and v2,
After Change
with optuna._imports.try_import() as _imports:
from tensorflow.keras.callbacks import Callback
if not _imports.is_successful():
Callback = object // NOQA
class TFKerasPruningCallback(Callback):
tf.keras callback to prune unpromising trials.
This callback is intend to be compatible for TensorFlow v1 and v2,
In pattern: SUPERPATTERN
Frequency: 7
Non-data size: 14
Instances Project Name: pfnet/optuna
Commit Name: c7fc32d37d74dc7ea085f4885f6f17eb213d1e68
Time: 2020-06-01
Author: hiroyuki.vincent.yamazaki@gmail.com
File Name: optuna/integration/tfkeras.py
Class Name:
Method Name:
Project Name: pfnet/optuna
Commit Name: c7fc32d37d74dc7ea085f4885f6f17eb213d1e68
Time: 2020-06-01
Author: hiroyuki.vincent.yamazaki@gmail.com
File Name: optuna/integration/chainer.py
Class Name:
Method Name:
Project Name: pfnet/optuna
Commit Name: c7fc32d37d74dc7ea085f4885f6f17eb213d1e68
Time: 2020-06-01
Author: hiroyuki.vincent.yamazaki@gmail.com
File Name: optuna/integration/fastai.py
Class Name:
Method Name:
Project Name: pfnet/optuna
Commit Name: c7fc32d37d74dc7ea085f4885f6f17eb213d1e68
Time: 2020-06-01
Author: hiroyuki.vincent.yamazaki@gmail.com
File Name: optuna/integration/pytorch_lightning.py
Class Name:
Method Name:
Project Name: pfnet/optuna
Commit Name: c7fc32d37d74dc7ea085f4885f6f17eb213d1e68
Time: 2020-06-01
Author: hiroyuki.vincent.yamazaki@gmail.com
File Name: optuna/integration/keras.py
Class Name:
Method Name:
Project Name: pfnet/optuna
Commit Name: c7fc32d37d74dc7ea085f4885f6f17eb213d1e68
Time: 2020-06-01
Author: hiroyuki.vincent.yamazaki@gmail.com
File Name: optuna/integration/tensorflow.py
Class Name:
Method Name:
Project Name: pfnet/optuna
Commit Name: c7fc32d37d74dc7ea085f4885f6f17eb213d1e68
Time: 2020-06-01
Author: hiroyuki.vincent.yamazaki@gmail.com
File Name: optuna/importance/_fanova.py
Class Name:
Method Name: