Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NIFTy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
13
Issues
13
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
NIFTy
Commits
b84dfad9
Commit
b84dfad9
authored
Jan 07, 2019
by
Philipp Arras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetics
parent
e0f0f20a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
demos/getting_started_1.py
demos/getting_started_1.py
+2
-1
demos/getting_started_2.py
demos/getting_started_2.py
+2
-1
demos/getting_started_3.py
demos/getting_started_3.py
+1
-2
No files found.
demos/getting_started_1.py
View file @
b84dfad9
...
...
@@ -21,9 +21,10 @@
# 1D (set mode=0), 2D (mode=1), or on the sphere (mode=2)
###############################################################################
import
nifty5
as
ift
import
numpy
as
np
import
nifty5
as
ift
def
make_checkerboard_mask
(
position_space
):
# Checkerboard mask for 2D mode
...
...
demos/getting_started_2.py
View file @
b84dfad9
...
...
@@ -21,9 +21,10 @@
# 1D (set mode=0), 2D (mode=1), or on the sphere (mode=2)
###############################################################################
import
nifty5
as
ift
import
numpy
as
np
import
nifty5
as
ift
def
exposure_2d
():
# Structured exposure for 2D mode
...
...
demos/getting_started_3.py
View file @
b84dfad9
...
...
@@ -116,10 +116,9 @@ if __name__ == '__main__':
# Draw new samples to approximate the KL five times
for
i
in
range
(
5
):
# Draw new samples and minimize KL
KL
=
ift
.
KL_Energy
(
position
,
H
,
N_samples
)
# Minimize KL
KL
,
convergence
=
minimizer
(
KL
)
# Update position
position
=
KL
.
position
# Plot current reconstruction
...
...
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