Skip to content

Instantly share code, notes, and snippets.

View kination's full-sized avatar
🎯
Focusing

K.I. (Dennis) Jung kination

🎯
Focusing
View GitHub Profile
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