From 2f7d8225da39bd9b3c23f366dfe688cecdadf81c Mon Sep 17 00:00:00 2001 From: Mikko Kotila Date: Sun, 17 Apr 2022 20:16:10 +0300 Subject: [PATCH 1/8] fix issue in template models --- docs/Examples_Multiple_Inputs.md | 2 + docs/Scan.md | 1 + docs/_coverpage.md | 2 +- docs/index.html | 2 +- setup.py | 2 +- talos/__init__.py | 2 +- talos/commands/evaluate.py | 4 +- talos/scan/Scan.py | 5 +- talos/scan/scan_finish.py | 4 +- talos/templates/models.py | 4 +- talos/utils/recover_best_model.py | 4 +- talos/utils/validation_split.py | 104 +++++++++++++++--------------- 12 files changed, 73 insertions(+), 63 deletions(-) diff --git a/docs/Examples_Multiple_Inputs.md b/docs/Examples_Multiple_Inputs.md index fdd1e102..1698a413 100644 --- a/docs/Examples_Multiple_Inputs.md +++ b/docs/Examples_Multiple_Inputs.md @@ -24,6 +24,8 @@ x_train, y_train, x_val, y_val = wrangle.array_split(x, y, .5) ``` In the case of multi-input models, the data must be split into training and validation datasets before using it in `Scan()`. `x` is expected to be a list of numpy arrays and `y` a numpy array. +**NOTE:** For full support of Talos features for multi-input models, set `Scan(...multi_input=True...)`. + ### Defining the Model ```python diff --git a/docs/Scan.md b/docs/Scan.md index 60790c51..b07faa95 100644 --- a/docs/Scan.md +++ b/docs/Scan.md @@ -23,6 +23,7 @@ Argument | Input | Description `x_val` | array or list of arrays | validation data for x `y_val` | array or list of arrays | validation data for y `val_split` | float | validation data split ratio +`multi_input` | float | set to True if multi-input model `random_method` | str | the random method to be used `seed` | float | Seed for random states `performance_target` | list | A result at which point to end experiment diff --git a/docs/_coverpage.md b/docs/_coverpage.md index 95d3ee28..61abf6e0 100644 --- a/docs/_coverpage.md +++ b/docs/_coverpage.md @@ -1,6 +1,6 @@ ![logo](_media/talos_logo_bg.png) -## v1.2.5 +## v1.3 > Hyperparameter Experiments with Tensorflow, PyTorch and Keras diff --git a/docs/index.html b/docs/index.html index cc8e930a..44848f78 100644 --- a/docs/index.html +++ b/docs/index.html @@ -16,7 +16,7 @@