This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
import optuna | |
import sklearn.datasets | |
from sklearn.model_selection import train_test_split | |
class TensorFlowPruningHook(tf.train.SessionRunHook): | |
def __init__(self, trial, estimator, metric, is_higher_better, run_every_steps): | |
self.trial = trial |