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
df3aafce
Commit
df3aafce
authored
1 year ago
by
Michael Williams
Committed by
Colm Talbot
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
MAINT: use glasflow.nflows instead of nflows
parent
e008142c
No related branches found
No related tags found
1 merge request
!1332
MNT: change bilby MCMC to use glasflow instead of nflows
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bilby/bilby_mcmc/flows.py
+6
-6
6 additions, 6 deletions
bilby/bilby_mcmc/flows.py
bilby/bilby_mcmc/proposals.py
+2
-2
2 additions, 2 deletions
bilby/bilby_mcmc/proposals.py
with
8 additions
and
8 deletions
bilby/bilby_mcmc/flows.py
+
6
−
6
View file @
df3aafce
import
torch
from
nflows.distributions.normal
import
StandardNormal
from
nflows.flows.base
import
Flow
from
nflows.nn
import
nets
as
nets
from
nflows.transforms
import
(
from
glasflow.
nflows.distributions.normal
import
StandardNormal
from
glasflow.
nflows.flows.base
import
Flow
from
glasflow.
nflows.nn
import
nets
as
nets
from
glasflow.
nflows.transforms
import
(
CompositeTransform
,
MaskedAffineAutoregressiveTransform
,
RandomPermutation
,
)
from
nflows.transforms.coupling
import
(
from
glasflow.
nflows.transforms.coupling
import
(
AdditiveCouplingTransform
,
AffineCouplingTransform
,
)
from
nflows.transforms.normalization
import
BatchNorm
from
glasflow.
nflows.transforms.normalization
import
BatchNorm
from
torch.nn
import
functional
as
F
# Turn off parallelism
...
...
This diff is collapsed.
Click to expand it.
bilby/bilby_mcmc/proposals.py
+
2
−
2
View file @
df3aafce
...
...
@@ -754,10 +754,10 @@ class NormalizingFlowProposal(DensityEstimateProposal):
@staticmethod
def
check_dependencies
(
warn
=
True
):
if
importlib
.
util
.
find_spec
(
"
n
flow
s
"
)
is
None
:
if
importlib
.
util
.
find_spec
(
"
glas
flow
"
)
is
None
:
if
warn
:
logger
.
warning
(
"
Unable to utilise NormalizingFlowProposal as
n
flow
s
is not installed
"
"
Unable to utilise NormalizingFlowProposal as
glas
flow is not installed
"
)
return
False
else
:
...
...
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