Skip to content

Commit

Permalink
u8 warnings removed
Browse files Browse the repository at this point in the history
  • Loading branch information
jakdot committed Feb 26, 2024
1 parent 1485ea3 commit 983908b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pyactr/__pycache__

# Setuptools distribution folder.
/build/
/distOLD/
/dist/

# Python egg metadata, regenerated from source files by setuptools.
Expand Down
Binary file modified tutorials/plot_u8_estimating_using_pymc3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions tutorials/u8_estimating_using_pymc3.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
You will need to install pymc3 and packages it depends on to make this work.
"""

import warnings
import numpy as np
import simpy
import pyactr as actr
from pymc3 import Model, Normal, Gamma, Uniform, sample, summary, Metropolis, traceplot
import theano.tensor as T
from theano.compile.ops import as_op
import matplotlib.pyplot as pp


warnings.simplefilter("ignore")

#Each chunk type should be defined first.
actr.chunktype("countOrder", ("first", "second"))
Expand Down Expand Up @@ -97,7 +99,7 @@ def counting_model(sub=True):
# an example of one run of the simulation
sim.run()

size=5000
size = 5000

Y = np.random.normal(loc=257.4, scale=10, size=size) #suppose these are data on counting, that is, how fast people are in counting from 2 to 4; we simulate them as normal distribution with mean 257.4 (milliseconds) and st.d. 10 (milliseconds)
print("Simulated data")
Expand Down

0 comments on commit 983908b

Please sign in to comment.