Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
0dccab5d
Commit
0dccab5d
authored
Jun 28, 2018
by
Julian Ruestig
📡
Browse files
Documentation on model.py
parent
95215f88
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/models/model.py
View file @
0dccab5d
...
...
@@ -24,6 +24,24 @@ from ..utilities import NiftyMetaBase
class
Model
(
NiftyMetaBase
()):
"""
The Model object is an implementation of a * which knows:
- position in parameterspace. (Field, MulitField)
- value of according to its modelfunction A. A(position)
- gradient of the modelfunction at the current position.
Parameters
----------
position : Field, MulitField
The input parameter of the model
Notes
-----
An instance of the model class knows its position, value and gradient.
One can 'jump' to a new position, with the help of the 'at' method, whereby
one automatically gets the value and gradient of the model. The 'at' method
creates a new instance of the class.
"""
def
__init__
(
self
,
position
):
self
.
_position
=
position
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment