Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sab_pybasicbayes
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AGPD_Public
sab_pybasicbayes
Commits
2c179af0
Commit
2c179af0
authored
1 year ago
by
SebastianBruijns
Browse files
Options
Downloads
Patches
Plain Diff
datatype change for newer numpy version
parent
bc2f6dc3
Branches
working
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pybasicbayes/distributions/dynamic_glm.py
+1
-1
1 addition, 1 deletion
pybasicbayes/distributions/dynamic_glm.py
with
1 addition
and
1 deletion
pybasicbayes/distributions/dynamic_glm.py
+
1
−
1
View file @
2c179af0
...
@@ -167,7 +167,7 @@ class Dynamic_GLM(GibbsSampling):
...
@@ -167,7 +167,7 @@ class Dynamic_GLM(GibbsSampling):
# R is the variance on the observations in Kalman filtering. According to Windle, that is 1 / omega here
# R is the variance on the observations in Kalman filtering. According to Windle, that is 1 / omega here
self
.
R
=
np
.
zeros
(
total_types
)
self
.
R
=
np
.
zeros
(
total_types
)
mask
=
np
.
ones
(
total_types
,
dtype
=
np
.
bool
)
mask
=
np
.
ones
(
total_types
,
dtype
=
bool
)
mask
[
fake_times
]
=
False
# during fake times, we make no observations, so no variance
mask
[
fake_times
]
=
False
# during fake times, we make no observations, so no variance
self
.
R
[
mask
]
=
1
/
omega
self
.
R
[
mask
]
=
1
/
omega
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment