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
8
Merge Requests
8
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
82eaf21f
Commit
82eaf21f
authored
Feb 19, 2018
by
Martin Reinecke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
doc tweaks
parent
03cb016f
Pipeline
#25151
passed with stages
in 5 minutes and 41 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
6 deletions
+30
-6
nifty4/domain_tuple.py
nifty4/domain_tuple.py
+1
-1
nifty4/minimization/iteration_controller.py
nifty4/minimization/iteration_controller.py
+4
-2
nifty4/minimization/line_search.py
nifty4/minimization/line_search.py
+25
-3
No files found.
nifty4/domain_tuple.py
View file @
82eaf21f
...
...
@@ -115,7 +115,7 @@ class DomainTuple(object):
@
property
def
axes
(
self
):
"""tuple of tuple of int :
shap
es of the underlying domains"""
"""tuple of tuple of int :
axis indic
es of the underlying domains"""
return
self
.
_axtuple
def
__len__
(
self
):
...
...
nifty4/minimization/iteration_controller.py
View file @
82eaf21f
...
...
@@ -43,7 +43,8 @@ class IterationController(NiftyMetaBase()):
@
abc
.
abstractmethod
def
start
(
self
,
energy
):
"""
"""Starts the iteration.
Parameters
----------
energy : Energy object
...
...
@@ -57,7 +58,8 @@ class IterationController(NiftyMetaBase()):
@
abc
.
abstractmethod
def
check
(
self
,
energy
):
"""
"""Checks the state of the iteration. Called after every step.
Parameters
----------
energy : Energy object
...
...
nifty4/minimization/line_search.py
View file @
82eaf21f
...
...
@@ -23,9 +23,10 @@ from ..utilities import NiftyMetaBase
class
LineSearch
(
NiftyMetaBase
()):
"""Class for determining the optimal step size along some descent direction.
Initialize the line search procedure which can be used by a specific line
search method. It finds the step size in a specific direction in the
minimization process.
Parameters
----------
preferred_initial_step_size : float, optional
Newton-based methods should intialize this to 1.
"""
def
__init__
(
self
,
preferred_initial_step_size
=
None
):
...
...
@@ -33,4 +34,25 @@ class LineSearch(NiftyMetaBase()):
@
abc
.
abstractmethod
def
perform_line_search
(
self
,
energy
,
pk
,
f_k_minus_1
=
None
):
"""Find step size and advance.
Determines a good step size and advances the current estimate
by this step size in the search direction.
Parameters
----------
energy : Energy
Energy object from which we will calculate the energy and the
gradient at a specific point.
pk : Field
Vector pointing into the search direction.
f_k_minus_1 : float, optional
Value of the fuction (which is being minimized) at the k-1
iteration of the line search procedure. (Default: None)
Returns
-------
Energy
The new Energy object on the new position.
"""
raise
NotImplementedError
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