Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
pymc3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ynic-debian
pymc3
Commits
f915dce9
Commit
f915dce9
authored
Sep 05, 2019
by
Robert P. Goldman
Committed by
Robert P. Goldman
Mar 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test bugs.
parent
94660a50
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
pymc3/tests/test_ndarray_backend.py
pymc3/tests/test_ndarray_backend.py
+1
-1
pymc3/tests/test_posterior_predictive.py
pymc3/tests/test_posterior_predictive.py
+2
-2
No files found.
pymc3/tests/test_ndarray_backend.py
View file @
f915dce9
...
...
@@ -277,4 +277,4 @@ class TestSaveLoad:
assert
(
value
==
ppc2
[
key
]).
all
()
for
key
,
value
in
ppcf
.
items
():
assert
(
value
==
ppc2
[
key
]).
all
()
assert
(
value
==
ppc2
f
[
key
]).
all
()
pymc3/tests/test_posterior_predictive.py
View file @
f915dce9
import
pymc3
as
pm
import
pytest
from
pymc3.distributions.posterior_predictive
import
_TraceDict
from
numpy
import
array_equal
import
numpy
as
np
from
pymc3.backends.ndarray
import
point_list_to_multitrace
...
...
@@ -22,7 +22,7 @@ def test_build_TraceDict():
dict
=
_TraceDict
(
multi_trace
=
trace
)
assert
isinstance
(
dict
,
_TraceDict
)
assert
len
(
dict
)
==
1000
assert
array_equal
(
trace
[
'mu'
],
dict
[
'mu'
])
np
.
testing
.
assert_
array_equal
(
trace
[
'mu'
],
dict
[
'mu'
])
assert
set
(
trace
.
varnames
)
==
set
(
dict
.
varnames
)
==
set
([
"mu"
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment