You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 10, 2021. It is now read-only.
This kind of looks like this
I got this error when I called nn = Classifier(layers=...)
ImportError Traceback (most recent call last)
in ()
7 nn = Classifier(layers=nnlayer,learning_rule='adagrad',batch_size=250,valid_size=0.2,verbose=False,random_state=1234)
8 print "[``] Fitting"
----> 9 nn.fit(xtrain,ytrain) # My fitting
10 ypredict = nn.predict(xtest)
11 conf_mats.append(confusion_matrix(ytest,ypredict))
/home/shining/anaconda2/lib/python2.7/site-packages/sknn/mlp.pyc in fit(self, X, y, w)
395
396 # Now train based on a problem transformed into regression.
--> 397 return super(Classifier, self)._fit(X, yp, w)
398
399 def partial_fit(self, X, y, classes=None):
/home/shining/anaconda2/lib/python2.7/site-packages/sknn/mlp.pyc in _fit(self, X, y, w)
211
212 if not self.is_initialized:
--> 213 X, y = self._initialize(X, y, w)
214
215 log.info("Training on dataset of {:,} samples with {} total size.".format(data_shape[0], data_size))
/home/shining/anaconda2/lib/python2.7/site-packages/sknn/mlp.pyc in _initialize(self, X, y, w)
38 self._create_specs(X, y)
39
---> 40 backend.setup()
41 self._backend = backend.MultiLayerPerceptronBackend(self)
42 return self._backend._initialize_impl(X, y, w)
/home/shining/anaconda2/lib/python2.7/site-packages/sknn/backend/init.pyc in setup()
22 def setup():
23 if name == None:
---> 24 from . import lasagne
25 assert name is not None, "No backend for module sknn was imported."
/home/shining/anaconda2/lib/python2.7/site-packages/sknn/backend/lasagne/init.py in ()
3
4 from ... import backend
----> 5 from .mlp import MultiLayerPerceptronBackend
6
7 # Register this implementation as the MLP backend.
/home/shining/anaconda2/lib/python2.7/site-packages/sknn/backend/lasagne/mlp.py in ()
23
24 import theano.tensor as T
---> 25 import lasagne.layers
26 import lasagne.nonlinearities as nl
27
/home/shining/anaconda2/lib/python2.7/site-packages/lasagne/init.py in ()
17 from . import nonlinearities
18 from . import init
---> 19 from . import layers
20 from . import objectives
21 from . import random
/home/shining/anaconda2/lib/python2.7/site-packages/lasagne/layers/init.py in ()
5 from .noise import *
6 from .conv import *
----> 7 from .pool import *
8 from .shape import *
9 from .merge import *
/home/shining/anaconda2/lib/python2.7/site-packages/lasagne/layers/pool.py in ()
4 from ..utils import as_tuple
5
----> 6 from theano.tensor.signal import downsample
7
8
ImportError: cannot import name downsample
Is this related to that issue(hyperlink given above)?
The text was updated successfully, but these errors were encountered:
This kind of looks like this
I got this error when I called
nn = Classifier(layers=...)
Is this related to that issue(hyperlink given above)?
The text was updated successfully, but these errors were encountered: