Talos is a module that helps finding hyperparameter configurations for Keras models
Questions tagged [talos]
40 questions
12
votes
5 answers
tf.data.Dataset: The `batch_size` argument must not be specified for the given input type
I'm using Talos and Google colab TPU to run hyperparameter tuning of a Keras model. Note that I'm using Tensorflow 1.15.0 and Keras 2.2.4-tf.
import os
import tensorflow as tf
import talos as ta
from tensorflow.keras.models import Sequential
from…

Sami Belkacem
- 336
- 3
- 12
6
votes
3 answers
Functional API/Multi Input model hyperparameter optimization
The only hyperparameter optimization library I've found that works with Keras functional API is Talos.
https://github.com/autonomio/talos/blob/9890d71d31451af3d7e8d91a75841bc7904db958/docs/Examples_Multiple_Inputs.md
Does anyone know any others that…

Garth Trickett
- 61
- 3
4
votes
1 answer
Use keras ImageDataGenerator.flow_from_directory() with Talos Scan()
Talos is a module that allows you to do hyperparameter tuning on keras models you've already written code for. The conventional way it is used in examples is with the Scan class which is instantiated with x and y parameters. These parameters should…

Mehdi Nellen
- 8,486
- 4
- 33
- 48
3
votes
0 answers
Hyperparameter optimization in images with Talos and flow_from_directory
I tried to optimize the hyperparameters of my keras CNN made for image classification. I consider using grid search from sklearn and talos optimizer (https://github.com/autonomio/talos). I overcame the fundamental difficulty with making x and y out…
3
votes
2 answers
Hyperparameter Optimization for Keras model with large dataset
I want to perform Hyperparameter Optimization on my Keras Model. The problem is the dataset is quite big, normally in training I use fit_generator to load the data in batch from disk, but the common package like SKlearn Gridsearch, Talos, etc. only…

Thanh Nguyen
- 902
- 2
- 12
- 31
2
votes
1 answer
Cannot import name 'SGD' from 'keras.optimizers' when importing talos
I am trying to import talos python module using import talos
this is the error I get:
ImportError: cannot import name 'SGD' from 'keras.optimizers'
I have solved the same error message before when I used from keras.optimizers import Adam,Nadam,…

hans
- 91
- 1
- 7
2
votes
1 answer
How to Parallelize a GridSearch Scan with Talos
While talos supports GPU parallelization, how do you extend the Scan object to support CPU + GPU parallelization?

deepelement
- 2,457
- 1
- 25
- 25
1
vote
0 answers
Hyperparameter tuning using talos: random search
I am using talos to tune the hyperparameters of a multi input multi output neural network. I want to use randomized search; however, when use random_method option in talos, it tries each and every combination of the hyperparameters. Here are the…

devcloud
- 391
- 5
- 18
1
vote
0 answers
unable to train siamese with validation_data '<' not supported between instances of 'float' and 'list'
When i use keras model.fit such that i don't use "validation_data" and only x_train and y_train i don't get any error even if i use "validation_split" things work fine. Below is working piece of code
def siamese(x_train,y_train):
W_init =…

Prateek Saurabh
- 53
- 7
1
vote
0 answers
After Talos installation jupyter notebook breaks (kernel going on and off)
What is the best way to install talos because whenever i am installing talos i am getting error as
[I 10:35:48.748 NotebookApp] Adapting to protocol v5.1 for kernel 7e583387-30ab-46fa-92b3-9aa67ee40139
[E 10:35:48.752 NotebookApp] Uncaught exception…

Prateek Saurabh
- 53
- 7
1
vote
2 answers
Talos - import talos - cannot import name 'tf_utils'
I installed talos and it broke my Keras/Tensorflow configuration.
If I run import talos OR import keras
I get:
ImportError: cannot import name 'tf_utils'
When I installed talos it downgraded my Tensorflow to 1.14 and updated Keras to 2.3.
At the…

Alan Burnett
- 11
- 1
1
vote
1 answer
Google Colab: Unsupported data type for TPU: double, caused by output cond_8/Merge:0
I'm using Talos and Google colab TPU to run hyperparameter tuning of a Keras model. Note that I'm using Tensorflow 1.15.0 and Keras 2.2.4-tf.
import os
import tensorflow as tf
import talos as ta
from tensorflow.keras.models import Sequential
from…

Sami Belkacem
- 336
- 3
- 12
1
vote
1 answer
Talos --> TypeError: __init__() got an unexpected keyword argument 'grid_downsample'
I am trying to run a hyperparameters optimization with Talos. As I have a lot of parameters to test, I want to use a 'grid_downsample' argument that will select 30% of all possible hyperparameters combinations. However when I run my code I get:…

Lau
- 11
- 2
1
vote
1 answer
Talos multi gpu feature
Im trying to run a Talos hyperparameter search for my CNN. Having 6 GPU's to run an experiment faster, the Talos feature multi_gpu seems handy.
my_new_model = multi_gpu(my_new_model, gpus=6)
my_new_model.compile(...)
Calling the function before the…

bravenoob
- 83
- 1
- 5
1
vote
1 answer
Error using CNN hyper parameter optimization for multi-target regression
I am trying to solve a multi-target regression problem using CNN. To optimize hyper parameters, I have used Talos library, but I end up with an error:
Error when checking input: expected conv1d_1_input to have 3 dimensions, but got array with…

Sagnik
- 71
- 5