Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bilby
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
lscsoft
bilby
Commits
d2990851
Commit
d2990851
authored
6 years ago
by
MoritzThomasHuebner
Browse files
Options
Downloads
Patches
Plain Diff
Deleted redundant tests
parent
21ecf70c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!152
Simplifies some of the analytic 1D likelihoods
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/likelihood_tests.py
+0
-59
0 additions, 59 deletions
test/likelihood_tests.py
with
0 additions
and
59 deletions
test/likelihood_tests.py
+
0
−
59
View file @
d2990851
...
...
@@ -60,21 +60,6 @@ class TestGaussianLikelihood(unittest.TestCase):
likelihood
.
log_likelihood
()
self
.
assertTrue
(
likelihood
.
sigma
is
None
)
def
test_y
(
self
):
likelihood
=
tupak
.
core
.
likelihood
.
GaussianLikelihood
(
self
.
x
,
self
.
y
,
self
.
function
,
self
.
sigma
)
self
.
assertTrue
(
all
(
likelihood
.
y
==
self
.
y
))
def
test_x
(
self
):
likelihood
=
tupak
.
core
.
likelihood
.
GaussianLikelihood
(
self
.
x
,
self
.
y
,
self
.
function
,
self
.
sigma
)
self
.
assertTrue
(
all
(
likelihood
.
x
==
self
.
x
))
def
test_N
(
self
):
likelihood
=
tupak
.
core
.
likelihood
.
GaussianLikelihood
(
self
.
x
,
self
.
y
,
self
.
function
,
self
.
sigma
)
self
.
assertTrue
(
likelihood
.
n
==
len
(
self
.
x
))
class
TestStudentTLikelihood
(
unittest
.
TestCase
):
...
...
@@ -117,21 +102,6 @@ class TestStudentTLikelihood(unittest.TestCase):
likelihood
.
log_likelihood
()
self
.
assertTrue
(
likelihood
.
nu
is
None
)
def
test_y
(
self
):
likelihood
=
tupak
.
core
.
likelihood
.
StudentTLikelihood
(
self
.
x
,
self
.
y
,
self
.
function
,
self
.
nu
,
self
.
sigma
)
self
.
assertTrue
(
all
(
likelihood
.
y
==
self
.
y
))
def
test_x
(
self
):
likelihood
=
tupak
.
core
.
likelihood
.
StudentTLikelihood
(
self
.
x
,
self
.
y
,
self
.
function
,
self
.
nu
,
self
.
sigma
)
self
.
assertTrue
(
all
(
likelihood
.
x
==
self
.
x
))
def
test_N
(
self
):
likelihood
=
tupak
.
core
.
likelihood
.
StudentTLikelihood
(
self
.
x
,
self
.
y
,
self
.
function
,
self
.
nu
,
self
.
sigma
)
self
.
assertTrue
(
likelihood
.
n
==
len
(
self
.
x
))
class
TestPoissonLikelihood
(
unittest
.
TestCase
):
...
...
@@ -187,21 +157,6 @@ class TestPoissonLikelihood(unittest.TestCase):
with
self
.
assertRaises
(
ValueError
):
likelihood
.
log_likelihood
()
def
test_y
(
self
):
likelihood
=
tupak
.
core
.
likelihood
.
PoissonLikelihood
(
self
.
x
,
self
.
y
,
self
.
function
)
self
.
assertTrue
(
all
(
likelihood
.
y
==
self
.
y
))
def
test_x
(
self
):
likelihood
=
tupak
.
core
.
likelihood
.
PoissonLikelihood
(
self
.
x
,
self
.
y
,
self
.
function
)
self
.
assertTrue
(
all
(
likelihood
.
x
==
self
.
x
))
def
test_N
(
self
):
likelihood
=
tupak
.
core
.
likelihood
.
PoissonLikelihood
(
self
.
x
,
self
.
y
,
self
.
function
)
self
.
assertTrue
(
likelihood
.
n
==
len
(
self
.
x
))
class
TestExponentialLikelihood
(
unittest
.
TestCase
):
...
...
@@ -247,20 +202,6 @@ class TestExponentialLikelihood(unittest.TestCase):
likelihood
.
parameters
[
'
c
'
]
=
-
1
self
.
assertEqual
(
likelihood
.
log_likelihood
(),
-
np
.
inf
)
def
test_y
(
self
):
likelihood
=
tupak
.
core
.
likelihood
.
ExponentialLikelihood
(
self
.
x
,
self
.
y
,
self
.
function
)
self
.
assertTrue
(
all
(
likelihood
.
y
==
self
.
y
))
def
test_x
(
self
):
likelihood
=
tupak
.
core
.
likelihood
.
ExponentialLikelihood
(
self
.
x
,
self
.
y
,
self
.
function
)
self
.
assertTrue
(
all
(
likelihood
.
x
==
self
.
x
))
def
test_N
(
self
):
likelihood
=
tupak
.
core
.
likelihood
.
ExponentialLikelihood
(
self
.
x
,
self
.
y
,
self
.
function
)
self
.
assertTrue
(
likelihood
.
n
==
len
(
self
.
x
))
if
__name__
==
'
__main__
'
:
...
...
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