Replace keras_tuner.engine.tuner to keras_tuner.Tuner #1895
Replies: 3 comments 2 replies
-
Error: AttributeError: module 'keras_tuner.engine.tuner' has no attribute 'maybe_distribute' Row № 62: |
Beta Was this translation helpful? Give feedback.
-
I have just updated KerasTuner to 1.4.3, which allows user to access from |
Beta Was this translation helpful? Give feedback.
-
I don't understand why StructuredDataRegressor models have such a low prediction power. My situation: Seems like export_model return the worst underfitted model. Results differs very much. y_train contains values [-10, ... , 60] but predicted y_train contains values [-2, ... , +2]. In my dataset there are 22 features, 1700 examples, and simple regression performs good (good prediction power). # Training
reg = ak.StructuredDataRegressor(
overwrite=True,
seed=42,
)
reg.fit(
tf.data.Dataset.from_tensor_slices((x_train.astype(float), y_train.astype(float))),
validation_split=0.25,
verbose=1,
)
model = reg.export_model()
# Prediction
pred = model.predict(x_train.astype(float)) I tried to use x and y during fitting but results are the same: reg.fit(
x=x_train.astype(float),
y=y_train.astype(float),
validation_split=0.25,
verbose=1,
) |
Beta Was this translation helpful? Give feedback.
-
Hello!
It seems that method keras_tuner.engine.tuner was replaced/renamed by keras_tuner.Tuner.
Now it's necessary to make some changes in this file: /autokeras/engine/tuner.py
Row № 30:
replace "class AutoTuner(keras_tuner.engine.tuner):" to "class AutoTuner(keras_tuner.Tuner):"
Am I right?
Beta Was this translation helpful? Give feedback.
All reactions