Traceback (most recent call last):



 "<ipython-input-11-3dad548cb9e8>", line 1, in <module>

runfile('C:/Users/asmith/Documents/Git/python_utils/scripts/gist.py', wdir='C:/Users/asmith/Documents/Git/python_utils/scripts')



 "C:\Users\asmith\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 786, in runfile

execfile(filename, namespace)



 "C:\Users\asmith\AppData\Local\Continuum\anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)



 "C:/Users/asmith/Documents/Git/python_utils/scripts/gist.py", line 57, in <module>

realgood = nfft.rfftn(waves, axes=[1,2,0])



 "C:\Users\asmith\AppData\Local\Continuum\anaconda3\lib\site-packages\mkl_fft\_numpy_fft.py", line 1043, in rfftn

output = mkl_fft.rfftn_numpy(a, s, axes)



 "mkl_fft\_pydfti.pyx", line 947, in mkl_fft._pydfti.rfftn_numpy



 "mkl_fft\_pydfti.pyx", line 846, in mkl_fft._pydfti._fftnd_impl



 "mkl_fft\_pydfti.pyx", line 724, in mkl_fft._pydfti._iter_fftnd



 "mkl_fft\_pydfti.pyx", line 667, in mkl_fft._pydfti._init_nd_shape_and_axes

ValueError: all axes must be unique

Traceback (most recent call last):


 "D:\Anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 3331, in run_code

exec(code_obj, self.user_global_ns, self.user_ns)


 "<ipython-input-20-c2ea172d56e6>", line 1, in <module>

clf.fit(X, y).shapelets_.shape


 "D:\Anaconda3\lib\site-packages\tslearn\shapelets.py", line 438, in fit

self._set_model_layers(X=X, ts_sz=sz, d=d, n_classes=n_classes)


 "D:\Anaconda3\lib\site-packages\tslearn\shapelets.py", line 600, in _set_model_layers

)(transformer_layers[di]) for di in range(d)


 "D:\Anaconda3\lib\site-packages\tslearn\shapelets.py", line 600, in <listcomp>

)(transformer_layers[di]) for di in range(d)


 "D:\Anaconda3\lib\site-packages\keras\backend\tensorflow_backend.py", line 75, in symbolic_fn_wrapper

return func(*args, **kwargs)


 "D:\Anaconda3\lib\site-packages\keras\engine\base_layer.py", line 463, in __call__

self.build(unpack_singleton(input_shapes))


 "D:\Anaconda3\lib\site-packages\tslearn\shapelets.py", line 131, in build

trainable=True)


 "D:\Anaconda3\lib\site-packages\keras\engine\base_layer.py", line 282, in add_weight

constraint=constraint)


 "D:\Anaconda3\lib\site-packages\keras\backend\tensorflow_backend.py", line 620, in variable

value, dtype=dtype, name=name, constraint=constraint)


 "D:\Anaconda3\lib\site-packages\tensorflow\python\keras\backend.py", line 845, in variable

constraint=constraint)


 "D:\Anaconda3\lib\site-packages\tensorflow\python\ops\variables.py", line 261, in __call__

return cls._variable_v2_call(*args, **kwargs)


 "D:\Anaconda3\lib\site-packages\tensorflow\python\ops\variables.py", line 255, in _variable_v2_call

shape=shape)


 "D:\Anaconda3\lib\site-packages\tensorflow\python\ops\variables.py", line 236, in <lambda>

previous_getter = lambda **kws: default_variable_creator_v2(None, **kws)


 "D:\Anaconda3\lib\site-packages\tensorflow\python\ops\variable_scope.py", line 2647, in default_variable_creator_v2

shape=shape)


 "D:\Anaconda3\lib\site-packages\tensorflow\python\ops\variables.py", line 263, in __call__

return super(VariableMetaclass, cls).__call__(*args, **kwargs)


 "D:\Anaconda3\lib\site-packages\tensorflow\python\ops\resource_variable_ops.py", line 1434, in __init__

distribute_strategy=distribute_strategy)


 "D:\Anaconda3\lib\site-packages\tensorflow\python\ops\resource_variable_ops.py", line 1517, in _init_from_args

raise ValueError("Tensor-typed variable initializers must either be "
ValueError: Tensor-typed variable initializers must either be wrapped in an init_scope or callable (e.g., `tf.Variable(lambda : tf.truncated_normal([10, 40]))`) when building functions. Please file a feature request if this restriction inconveniences you.
