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
d6982524
Commit
d6982524
authored
Feb 26, 2021
by
Jakob Knollmüller
Browse files
debug
parent
52ec698f
Pipeline
#94446
failed with stages
in 5 minutes and 23 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/__init__.py
View file @
d6982524
...
...
@@ -90,7 +90,7 @@ from .library.adjust_variances import (make_adjust_variances_hamiltonian,
from
.library.gridder
import
Gridder
from
.library.correlated_fields
import
CorrelatedFieldMaker
from
.library.correlated_fields_simple
import
SimpleCorrelatedField
from
.library.
meanfield
_model
import
MeanfieldModel
from
.library.
variational
_model
s
import
MeanfieldModel
from
.
import
extra
...
...
src/minimization/stochastic_minimizer.py
View file @
d6982524
...
...
@@ -15,7 +15,7 @@ class ADVIOptimizer(Minimizer):
def
_step
(
self
,
position
,
gradient
):
self
.
s
=
self
.
alpha
*
gradient
**
2
+
(
1
-
self
.
alpha
)
*
self
.
s
self
.
rho
=
self
.
eta
*
self
.
counter
**
(
-
0.5
+
self
.
epsilon
)
/
(
self
.
tau
+
sqrt
(
self
.
s
))
self
.
rho
=
self
.
eta
*
self
.
counter
**
(
-
0.5
+
self
.
epsilon
)
/
(
self
.
tau
+
(
self
.
s
)
.
sqrt
()
)
new_position
=
position
-
self
.
rho
*
gradient
self
.
counter
+=
1
return
new_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