Closed kateruksha closed 5 years ago
Hi,
I have also noticed the same inconsistency, but looking into the network_shape.py
clarified that there are only 4 options: 'brick'
, 'funnel'
, 'triangle'
and a float number (smaller than 1).
Passing a string or value that is not defined in that list, will return an empty list, and in layers.py
, then layer_neurons = []
which as you can see causes problem:
[...]
layer_neurons = network_shape(params, last_neuron)
for i in range(params['hidden_layers']):
model.add(Dense(layer_neurons[i],
[...]
So if you remove 'long_funnel'
and add 'funnel'
your code should work. But I still don't know what does shape
argument in the dictionary represent (shapes
is a representation which would be used to calculate the number of neurons in each hidden layer accordingly, but shape
hasn't been used anywhere), I am using talos.__version__ = '0.4.9'
. However, in 0.6.0 there are changes in the arguments' names which would probably cause a lot of problems when one wants to use the newer version.
Thanks @Peon26, that's right. The documentation is not up-to-date, and will be updated to match v.0.6.0 once that makes it's way to pypi.
However, in 0.6.0 there are changes in the arguments' names which would probably cause a lot of problems when one wants to use the newer version.
While there are notable changes and improvements, the Scan
argument changes are going to be very straightforward.
Closing here.
Hi!
I faced an error trying when adding hidden_layers to a list of parameters. To replicate it, I followed Breast Cancer study, just had to change "shape" to "shapes" in the parameter list.
This returns an error: IndexError: list index out of range
Thank you!