MCPcopy Create free account
hub / github.com/mlco2/codecarbon / RandomSearchTuner

Class RandomSearchTuner

examples/mnist_random_search.py:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6
7class RandomSearchTuner(kerastuner.tuners.RandomSearch):
8 def run_trial(self, trial, *args, **kwargs):
9 # You can add additional HyperParameters for preprocessing and custom training loops
10 # via overriding `run_trial`
11 kwargs["batch_size"] = trial.hyperparameters.Int("batch_size", 32, 256, step=32)
12
13 super().run_trial(trial, *args, **kwargs)
14
15
16def build_model(hp):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…