Skip to content

Commit

Permalink
export Trial and TrialStatus (#948)
Browse files Browse the repository at this point in the history
  • Loading branch information
haifeng-jin committed Sep 26, 2023
1 parent d8c2f90 commit f8a5a45
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions RELEASE.md
@@ -1,3 +1,8 @@
# Release v1.4.2

## Bug fixes
* Could not do `from keras_tuner.engine import trial`. It is now fixed.

# Release v1.4.1

## Bug fixes
Expand Down
3 changes: 3 additions & 0 deletions keras_tuner/engine/trial.py
Expand Up @@ -20,11 +20,13 @@

from keras_tuner import protos
from keras_tuner import utils
from keras_tuner.api_export import keras_tuner_export
from keras_tuner.engine import hyperparameters as hp_module
from keras_tuner.engine import metrics_tracking
from keras_tuner.engine import stateful


@keras_tuner_export(["keras_tuner.engine.trial.TrialStatus"])
class TrialStatus:
# The Trial may start to run.
RUNNING = "RUNNING"
Expand Down Expand Up @@ -83,6 +85,7 @@ def from_proto(proto):
raise ValueError(f"Unknown status {proto}")


@keras_tuner_export(["keras_tuner.engine.trial.Trial"])
class Trial(stateful.Stateful):
"""The runs with the same set of hyperparameter values.
Expand Down
2 changes: 1 addition & 1 deletion keras_tuner/version.py
Expand Up @@ -13,4 +13,4 @@
# limitations under the License.

# Unique source of truth for the version number.
__version__ = "1.4.1"
__version__ = "1.4.2"

0 comments on commit f8a5a45

Please sign in to comment.