jorgenkg / python-neural-network

This is an efficient implementation of a fully connected neural network in NumPy. The network can be trained by a variety of learning algorithms: backpropagation, resilient backpropagation and scaled conjugate gradient learning. The network has been developed with PYPY in mind.
BSD 2-Clause "Simplified" License
297 stars 98 forks source link

ImportError: No module named 'scaled_conjugate_gradient' #18

Closed ashrafzia closed 7 years ago

ashrafzia commented 7 years ago

Using python 3 i get the following error:

Traceback (most recent call last): File "example.py", line 12, in from nimblenet.learning_algorithms import * File "python-neural-network/nimblenet/learning_algorithms/init.py", line 2, in from scaled_conjugate_gradient import scaled_conjugate_gradient ImportError: No module named 'scaled_conjugate_gradient'

I got same error on my desktop but i don't know what i changed that it vanished but now on my laptop after installing i have same issue.

jorgenkg commented 7 years ago

Unfortunately, this library is written in Python 2.7 and thus will not run correctly with a Python 3 interpreter. Have you tried installing the lib in a python 2 environment?

ashrafzia commented 7 years ago

I didn't tried with Python 2.7 but on my desktop am using Python 3.5.2 and it works. I remember i had same issue but i don't know what i installed or changed that it was fixed. I think it removed with installing PyPi JIT compiler but still not sure.