Using COLLATE inside Doctrine DQL Query (Symfony2)

I can't find anything related to using COLLATE in a DQL query with Doctrine (and ofcourse it doesn't seem to work). My specific problem: I have a table with utf8_general_ci charset. I have one...

When trying to install arviz I get the following error msg: "Error: python setup.py egg_info" failed with error code 1

I have already tried using: pip install --upgrade setuptools pip install ez_setup I need to install arviz to visualize the out of pystan. I am using python 3 on windows 10 (anaconda distribution).

How to pass coordinates to arviz / pymc3 function plot_posterior (similar to xarray.Dataset.sel)

I'm doing some Bayesian modelling in pymc3 and would like to plot the posterior distribution using plot_posterior (which comes from the arviz package). The resulting plot is awkwardly misaligned...

PYMC3 Attribute Error get_default_varnames

When I try to use PyMC3 Plotting, I have the following error: AttributeError: module 'pymc3.glm.utils' has no attribute 'get_default_varnames' This is the code I am trying to...

colaboratory will not acknowledge arviz after installation and import

In Google's colaboratory, installed arviz then did import arviz without error, but in a code cell, pm.plot_posterior(samples) gets error: arviz not installed. Trying to plot Bayesian...

ERROR: You must give at least one requirement to install -- when running: pip install --upgrade --no-binary hdbscan

I am trying to install hdbscan in my PC which runs Windows 10 and has installed Python 3.6. My first attempt failed: (base) C:\WINDOWS\system32>pip install hdbscan --user Collecting hdbscan ...

A lot of inconsistent packages

When I have been trying to install new packages or update existing ones I am getting a message that the following packages are causing inconsistency: -...

Error Arviz not installed Using in Google Colab Pymc3

I want to plot using pm.traceplot(mcmc_trace,['theta']) in Google Colab but getting error: ImportError: ArviZ is not installed. In order to use plot_trace: pip install arviz NOTE: If your import...

ArviZ plot_trace does not properly plot multidimensional variables

I'm attempting to run a basic test model using PyMC3, but I've found the ArviZ plot_trace function won't properly show my traces. Code from scipy import stats import arviz as az import numpy as...

Calculating WAIC for models with multiple likelihood functions with pymc3

I try to predict the outcome of soccer games based on the number of goals scored and I use the following model: with pm.Model() as model: # global model parameters h = pm.Normal('h', mu = mu,...

arviz.plot_ppc: "posterior predictive mean"

Hello! After running a model for a simple linear regression model in pymc3, I'm trying to do a plot. As you can see both plots show the "posterior predictive mean score", but I was wondering...

PyMC3 plots.traceplot in PyCharm

Is there something extra I need to do to show my PyMC3 plots.traceplot results in PyCharm? I just discovered that I need a print() statement around pm.summary(). so I'm wondering if there is...

Vscode for python jupyter fail to show video

I'm trying to make a animation in the Jupyter of Visual Studio Code. The code is listed below. import arviz as az from IPython.display import HTML from matplotlib.animation import...

PyMC3 and Arviz: Visualizing highest posterior density for multiple conditions using arviz plot_hpd

I am trying to visualize simple linear regression with highest posterior density (hpd) for multiple groups. However, I have a problem to apply hpd for each condition. Whenever I ran this code, I...

Google colab has some issues related to the Bayesian analysis and corresponding libraries

I am studying the book Bayessian analysis with python and trying to implement all codes in python, for this purpose I use google colab, but when I am running following code from book import...

Theano error when using PyMC3: theano.gof.fg.MissingInputError

I am generating some (noisy) data-points (y) with some known parameters (m,c) that represent the equation of a straight line. Using sampling-based Bayesian methods, I now want to know the true...

effective sample size 2d array using arviz and pymc3 mcmc

I'm trying to get the effective sample size for a 2D mcmc chain, using pymc3 and arviz import pymc3 as pm3 !pip install arviz import arviz as az ess = az.ess(samples) The above code works for...

Arviz and Bokeh: Trying to change the title of the plot using backend kwargs

I am trying to change the title of the plot I'm creating with Arviz. Usually I have done this using the backend_kwargs but it doesn't seem to work for certain plots: in this case the...

Experiencing strange error message from PyMC3 - Python 3.8.5

I recently changed my IDE from Spyder to PyCharm, as I felt Spyder used through Anaconda was somewhat bloated. The code below runs more or less fine in Spyder, but I'm having issues in PyCharm....

Conda create environment with .yml file fails

I want to create an exact copy of my current environment in conda. So I am exporting my environment as a env_dashboard.yml file: (C:\Program Files\Anaconda3) C:\Users\TO3THY0>conda-env export -n...

Plot fit of gamma distribution with pymc3

Suppose that I generate some sample data using pymc3 for a gamma distribution: import pymc3 as pm import arviz as az # generate fake data: with pm.Model() as model2: g = pm.Gamma('g',...

PyMC3 sample() function does not accept the "start" value to generate a trace

I am new to PyMC3 and Bayesian inference methods. I have a simple code that tries to infer the value of some decay constant (=1) from the artificial data generated using a truncated exponential...

Prediction using Bayesian logistic regression using pymc3

I am trying to perform Bayesian logistic regression using pymc3, but I am facing an issue in using the model to perform prediction. Data: My dataset is of the housing loan default data, with...

module 'pymc3' has no attribute 'traceplot' Error

I'm trying to generate a trace plot of my model but it shows module 'pymc3' has no attribute 'traceplot' error. My code is: with pm.Model() as our_first_model: # a priori theta =...

Cannot import pymc3 module due to geweke

I've tried installing it on a separate env and installing arviz separately. The import pymc3 as pm will not work. AttributeError: module 'arviz' has no attribute 'geweke'

Create a 2-hierarchy estimate of (normal) mean and standard deviation

I have a normally distributed variable x (like product demand), an index id_1 (like product number) and a second index id_2 (like product group). My goal is to estimate the mean and the standard...

Sudden Tensorflow / Keras Google Colab dependency problems `AttributeError: module 'tensorflow._api.v1.compat.v2' has no attribute '__internal__'`

I have running a machine learning model (Matterport's Mask R-CNN) in google colab for a couple of weeks. All of a sudden today I am unable to run any of my notebooks due to I think some kind of...