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 ..

#### Category : theano

I am trying to add a covariance matrix inside a Gaussian Processes using pymc3, this is my code: import matplotlib.pyplot as plt import numpy as np import pymc3 as pm %matplotlib inline #Data X = np.array([1,2,3,4]) Y= np.array([1,4,9,16]) Sigma = np.matrix([[1,0.1, 0,0], [0.1, 2,0.2,0.4], [0, 0.2,3,0.4],[0, 0.4,0.4,4]]) #Covariance Matrix le= len(X) #Reorder the data stored ..

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 , ..

I have a sparse array/tensor like below. import torch from torch_sparse import SparseTensor row = torch.tensor([0, 0, 0, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3]) col = torch.tensor([1, 2, 3, 0, 2, 0, 1, 4, 5, 0, 2, 5, 2, 4]) value = torch.rand([14]) adj_t = SparseTensor(row=row, col=col, value=value, sparse_sizes=(4, 9)) ..

I was attempting to run a Python script with PyMC3 library for Bayesian Inference on Google Cloud instance (Compute Engine: UbuntuOS, CPU 4 cores Memory 16 GB). The problem is my script run super slow, even 10x slower then when I tested it on my computer (MacOS, i5, Memory 8 GB). 1 batch of the ..

I was working with Spyder IDE with python version 3.8.5 and I was using pymc3 (can’t remember the exact version) and it was working fine and after upgrading scipy, spyder and python, everything went haywire. I spent the last 2 days trying to sort out this problem and everytime I install pymc3 and run the ..

I am trying to run a python (.py) file on a Linux server with Ubuntu. I created a virtual environment with python3.8 -m venv env_name and installed theano, which is a dependency for the file. I used pip3 install theano=="1.0.5" while inside the virtual environment and it installed fine. However, when trying to import the ..

I am tackling a bayesian inference problem and am having trouble using a pymc3 sampler provided by pypesto on my windows laptop. To make sure I can run with the sampler I create a simple dummy objective to use. I install create a conda (I tried both 3.7 & 3.8) environment and install the pymc3 ..

I am trying to use transfer learning with a previously trained model. I use tensoflow / keras, and the desired model was trained with Lasagna and Theano. Is there a way I can somehow load those weight to a tensorflow / keras model and expand it with my own layers? Thanks! the model can be ..

I have a recursive model in PyMC3 and I’m training it on about 600 timesteps. I’m getting the error Exception: (‘Compilation failed (return status=1): /Users/tiwalayoaina/.theano/compiledir_macOS-10.14.6-x86_64-i386-64bit-i386-3.8.8-64/tmp1dgcmqm3/mod.cpp:30412:32: fatal error: bracket nesting level exceeded maximum of 256. if (!PyErr_Occurred()) {. ^. /Users/actinidia/.theano/compiledir_macOS-10.14.6-x86_64-i386-64bit-i386-3.8.8-64/tmp1dgcmqm3/mod.cpp:30412:32: note: use -fbracket-depth=N to increase maximum nesting level. 1 error generated.. ‘, "FunctionGraph(MakeVector{dtype=’float64’}(V0, <TensorType(float64, scalar)>, <TensorType(float64, ..

## Recent Comments