Category : theano

I have some issues with theano package on my mac. I am getting the following error. File "/Users/model.py", line 355, in train train_model = theano.function( File "/Applications/anaconda3/lib/python3.8/site-packages/theano/compile/function/__init__.py", line 337, in function fn = pfunc( File "/Applications/anaconda3/lib/python3.8/site-packages/theano/compile/function/pfunc.py", line 426, in pfunc inputs = [ File "/Applications/anaconda3/lib/python3.8/site-packages/theano/compile/function/pfunc.py", line 427, in <listcomp> _pfunc_param_to_in(p, allow_downcast=allow_input_downcast) for p in params ..

Read more

I used the following codes to set the backend of keras to Theano: import os os.environ["KERAS_BACKEND"] = "theano" import keras.backend keras.backend.set_image_dim_ordering(‘th’) And also tried this: !sed -i ‘s/tensorflow/theano/’ ~/.keras/keras.json # !sed -i ‘s/last/first/’ ~/.keras/keras.json !cat ~/.keras/keras.json Then I checked the backend: But I still got an TypeError when I used keras.layers.load_model: I have no idea ..

Read more

I tried importing Lasagne in my code which is as follows: from __future__ import print_function import sys import os import time import string import random import pickle import numpy as np import theano import theano.tensor as T import lasagne But on running the file I keep getting the following error: File "main_cifar_100_theano.py", line 12, in ..

Read more

I have a set of data that I have been attempting to fit. An intermediate part of obtaining model predictions involves solving a differential equation over time using a numerical method. I have attempted fitting the data with a least squares method in Matlab. It gets a solution in a reasonable amount of time; however, ..

Read more

I am having an issue to import ‘local_bitwidth’ from ‘theano.configdefaults’. And the following message was displayed: ImportError Traceback (most recent call last) <ipython-input-80-1e0aa55408e4> in <module>() 39 from theano.tensor.nnet import conv 40 from theano.tensor.nnet import softmax —> 41 from theano.tensor import shared_randomstreams 42 from theano.tensor.signal.pool import pool_2d 43 7 frames /usr/local/lib/python3.7/dist-packages/theano/gof/cmodule.py in <module>() 35 # we ..

Read more

In Neural Networks and Deep Learning, there’s an object called network3 (which is a PY file, written for python 2.7 and theano 0.7). I modified it to run with python 3.9 and theano 1.0.3. However, when I run the following code (in google colab): import network3 from network3 import Network from network3 import ConvPoolLayer , ..

Read more