Closed Shaier closed 5 years ago
Can you share the whole trace.
Yes, thank you for the quick reply!
AttributeError Traceback (most recent call last)
<ipython-input-22-3b26e0b2dbbb> in <module>()
2 [y1,y2],
3 params=p,
----> 4 model=model)
/usr/local/lib/python3.6/dist-packages/talos/scan/Scan.py in __init__(self, x, y, params, model, dataset_name, experiment_no, x_val, y_val, val_split, shuffle, round_limit, grid_downsample, random_method, seed, search_method, reduction_method, reduction_interval, reduction_window, reduction_threshold, reduction_metric, reduce_loss, last_epoch_value, clear_tf_session, disable_progress_bar, print_params, debug)
163 # input parameters section ends
164
--> 165 self._null = self.runtime()
166
167 def runtime(self):
/usr/local/lib/python3.6/dist-packages/talos/scan/Scan.py in runtime(self)
167 def runtime(self):
168
--> 169 self = scan_prepare(self)
170 self = scan_run(self)
/usr/local/lib/python3.6/dist-packages/talos/scan/scan_prepare.py in scan_prepare(self)
56
57 # create the data asset
---> 58 self.y_max = self.y.max()
59 self = validation_split(self)
60 self.shape = classify(self.y)
AttributeError: 'list' object has no attribute 'max'
Is it that in your case y1 and y2 are unique?
y1 and y2 share some similar numbers
Ok. It will take a couple of weeks I guess, but this will be handled. I want to look back everything that had to do with non-2d inputs and make sure it's all taken care of once and for all. I think this should be the only remaining thing though, so it would be fast to do it.
@mikkokotila @Shaier Hi, I meet the same problem, when put the a list array multiple inputs or outputs, the error will be occur, and I installed the latest version of talos, any solution? and why?
I still haven't found a solution to this. Sorry
If you take the branch params-api-test
which is v.0.6 you can just remove the line self.y_max = self.y.max()
and you should be ok. I'll take care of this later, but that could be a temporary solution.
This does not take care of the problem for me
Traceback (most recent call last):
File "search.py", line 61, in <module>
x_val=val_data, y_val=[y_val, strength_val], grid_downsample=5e-6)
File "C:\ProgramData\Anaconda3\envs\substorm-detection\lib\site-packages\talos\scan\Scan.py", line 170, in __init__
self._null = self.runtime()
File "C:\ProgramData\Anaconda3\envs\substorm-detection\lib\site-packages\talos\scan\Scan.py", line 174, in runtime
self = scan_prepare(self)
File "C:\ProgramData\Anaconda3\envs\substorm-detection\lib\site-packages\talos\scan\scan_prepare.py", line 60, in scan_prepare
self.shape = classify(self.y)
File "C:\ProgramData\Anaconda3\envs\substorm-detection\lib\site-packages\talos\utils\pred_class.py", line 5, in classify
shape = detect_shape(y)
File "C:\ProgramData\Anaconda3\envs\substorm-detection\lib\site-packages\talos\utils\pred_class.py", line 19, in detect_shape
return y.shape[1]
AttributeError: 'list' object has no attribute 'shape'
Actually my problem may be related to multiple outputs. Is there a way to have multiple outputs?
Actually my problem may be related to multiple outputs. Is there a way to have multiple outputs?
At the moment this is not supported. There is #154 from past, which is related with this. It's basically waiting for somebody to pick it up and make that contribution.
Alternatively, if you can share with me exactly what you are trying to do, including your model, your data, params dictionary, and what you expect to see as a result, and I will see on that basis, maybe it's straightforward to implement support for this.
This is now resolved in daily-dev. See #154 and #353 for more info. Closing here.
@Shaier @gregstarr @ChaplinHao thanks for your patience and have a great day as well.
I am using keras functional API. I'm trying to pass in a list of inputs. I tried to follow this issue:
But I'm still getting an error:
AttributeError: 'list' object has no attribute 'max'
`This is my current model: