Skip to content
This repository was archived by the owner on Jul 10, 2021. It is now read-only.
This repository was archived by the owner on Jul 10, 2021. It is now read-only.

ImportError: cannot import name downsample #235

Description

@zyui

`from sknn import ae
import numpy as np
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)

x = np.asarray(range(0,16))

nn = ae.AutoEncoder(
layers=[
ae.Layer("Sigmoid", units=4),
ae.Layer("Sigmoid", units=8),
ae.Layer("Sigmoid", units=4)
],
learning_rate=0.02)
nn.fit(x)`

And then comes the arror_Traceback (most recent call last):
File "/Users/zzzyui/Desktop/CSE514A/hw4/ae1.py", line 17, in
learning_rate=0.02)
File "/Library/Python/2.7/site-packages/sknn/nn.py", line 513, in init
self._setup()
File "/Library/Python/2.7/site-packages/sknn/ae.py", line 100, in setup
backend.setup()
File "/Library/Python/2.7/site-packages/sknn/backend/init.py", line 24, in setup
from . import lasagne
File "/Library/Python/2.7/site-packages/sknn/backend/lasagne/init.py", line 5, in
from .mlp import MultiLayerPerceptronBackend
File "/Library/Python/2.7/site-packages/sknn/backend/lasagne/mlp.py", line 25, in
import lasagne.layers
File "/Library/Python/2.7/site-packages/lasagne/init.py", line 19, in
from . import layers
File "/Library/Python/2.7/site-packages/lasagne/layers/init.py", line 7, in
from .pool import *
File "/Library/Python/2.7/site-packages/lasagne/layers/pool.py", line 6, in
from theano.tensor.signal import downsample
ImportError: cannot import name downsample

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions