Skip to content

Commit

Permalink
Update simple_cerebros_random_search.py
Browse files Browse the repository at this point in the history
  • Loading branch information
david-thrower authored Jun 13, 2024
1 parent 7dc1b73 commit df7b200
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
dense_automl_structural_component \
import DenseAutoMlStructuralComponent, DenseLateralConnectivity, \
zero_7_exp_decay, zero_95_exp_decay, simple_sigmoid
from cerebros.units.units import Unit, InputUnit, FinalDenseUnit, TernaryDenseLayer
from cerebros.units.units import Unit, InputUnit, FinalDenseUnit
from custom.custom import TernaryDenseLayer, GPT2Layer
from cerebros.neuralnetworkfuture.neural_network_future \
import NeuralNetworkFuture, RealNeuronNeuralNetworkFuture
# from cmdutil.cmdutil import run_command
Expand Down Expand Up @@ -579,7 +580,8 @@ def get_best_model(self):
tf.keras.models.load_model(
self.best_model_path,
custom_objects=\
{"TernaryDenseLayer": TernaryDenseLayer})
{"TernaryDenseLayer": TernaryDenseLayer,
"GPT2Layer": GPT2Layer})
return best_model

# ->
Expand Down

0 comments on commit df7b200

Please sign in to comment.