StochasticForceInference 2.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- SFI/__init__.py +64 -0
- SFI/bases/__init__.py +85 -0
- SFI/bases/constants.py +492 -0
- SFI/bases/linear.py +325 -0
- SFI/bases/monomials.py +218 -0
- SFI/bases/pairs.py +998 -0
- SFI/bases/spde.py +1537 -0
- SFI/diagnostics/__init__.py +60 -0
- SFI/diagnostics/assess.py +87 -0
- SFI/diagnostics/dynamics_order.py +621 -0
- SFI/diagnostics/plotting.py +226 -0
- SFI/diagnostics/report.py +238 -0
- SFI/diagnostics/residual_tests.py +395 -0
- SFI/diagnostics/residuals.py +688 -0
- SFI/inference/__init__.py +58 -0
- SFI/inference/base.py +1460 -0
- SFI/inference/optimizers.py +200 -0
- SFI/inference/overdamped.py +1214 -0
- SFI/inference/parametric_core/__init__.py +34 -0
- SFI/inference/parametric_core/covariance.py +232 -0
- SFI/inference/parametric_core/driver.py +272 -0
- SFI/inference/parametric_core/flow.py +149 -0
- SFI/inference/parametric_core/flow_multi.py +362 -0
- SFI/inference/parametric_core/flow_ud.py +168 -0
- SFI/inference/parametric_core/jacobians.py +540 -0
- SFI/inference/parametric_core/objective.py +286 -0
- SFI/inference/parametric_core/objective_ud.py +253 -0
- SFI/inference/parametric_core/precision.py +229 -0
- SFI/inference/parametric_core/solve.py +763 -0
- SFI/inference/result.py +362 -0
- SFI/inference/serialization.py +245 -0
- SFI/inference/sparse/__init__.py +67 -0
- SFI/inference/sparse/base.py +43 -0
- SFI/inference/sparse/beam.py +303 -0
- SFI/inference/sparse/greedy.py +151 -0
- SFI/inference/sparse/hillclimb.py +307 -0
- SFI/inference/sparse/lasso.py +178 -0
- SFI/inference/sparse/metrics.py +78 -0
- SFI/inference/sparse/result.py +278 -0
- SFI/inference/sparse/scorer.py +323 -0
- SFI/inference/sparse/stlsq.py +165 -0
- SFI/inference/sparsity.py +40 -0
- SFI/inference/underdamped.py +1355 -0
- SFI/integrate/__init__.py +38 -0
- SFI/integrate/api.py +920 -0
- SFI/integrate/integrand.py +402 -0
- SFI/integrate/rk4.py +156 -0
- SFI/integrate/timeops.py +174 -0
- SFI/langevin/__init__.py +29 -0
- SFI/langevin/base.py +863 -0
- SFI/langevin/chunked.py +225 -0
- SFI/langevin/noise.py +446 -0
- SFI/langevin/overdamped.py +560 -0
- SFI/langevin/underdamped.py +448 -0
- SFI/statefunc/__init__.py +49 -0
- SFI/statefunc/basis.py +87 -0
- SFI/statefunc/core/runtime.py +47 -0
- SFI/statefunc/factory.py +346 -0
- SFI/statefunc/interactor.py +90 -0
- SFI/statefunc/layout/__init__.py +29 -0
- SFI/statefunc/layout/_base.py +186 -0
- SFI/statefunc/layout/_eval_compiler.py +453 -0
- SFI/statefunc/layout/_fd_atoms.py +196 -0
- SFI/statefunc/layout/_grid.py +878 -0
- SFI/statefunc/layout/_sectors.py +166 -0
- SFI/statefunc/memhint.py +222 -0
- SFI/statefunc/nodes/__init__.py +56 -0
- SFI/statefunc/nodes/base.py +318 -0
- SFI/statefunc/nodes/contract.py +422 -0
- SFI/statefunc/nodes/interactions/__init__.py +23 -0
- SFI/statefunc/nodes/interactions/dispatcher.py +1365 -0
- SFI/statefunc/nodes/interactions/prepare.py +161 -0
- SFI/statefunc/nodes/interactions/specs.py +362 -0
- SFI/statefunc/nodes/interactions/stencils.py +718 -0
- SFI/statefunc/nodes/leaf.py +530 -0
- SFI/statefunc/nodes/ops/__init__.py +27 -0
- SFI/statefunc/nodes/ops/concat.py +28 -0
- SFI/statefunc/nodes/ops/derivative.py +447 -0
- SFI/statefunc/nodes/ops/einsum.py +120 -0
- SFI/statefunc/nodes/ops/linear.py +153 -0
- SFI/statefunc/nodes/ops/mapn.py +138 -0
- SFI/statefunc/nodes/ops/reshape_rank.py +158 -0
- SFI/statefunc/nodes/ops/slice.py +83 -0
- SFI/statefunc/params.py +309 -0
- SFI/statefunc/psf.py +112 -0
- SFI/statefunc/sf.py +104 -0
- SFI/statefunc/stateexpr.py +1243 -0
- SFI/statefunc/structexpr.py +1003 -0
- SFI/trajectory/__init__.py +31 -0
- SFI/trajectory/collection.py +1122 -0
- SFI/trajectory/dataset.py +1164 -0
- SFI/trajectory/degrade.py +1108 -0
- SFI/trajectory/io.py +1027 -0
- SFI/trajectory/reserved_extras.py +129 -0
- SFI/utils/__init__.py +17 -0
- SFI/utils/formatting.py +308 -0
- SFI/utils/maths.py +185 -0
- SFI/utils/neighbors.py +162 -0
- SFI/utils/plotting.py +1936 -0
- stochasticforceinference-2.0.0.dist-info/METADATA +203 -0
- stochasticforceinference-2.0.0.dist-info/RECORD +104 -0
- stochasticforceinference-2.0.0.dist-info/WHEEL +5 -0
- stochasticforceinference-2.0.0.dist-info/licenses/LICENSE +21 -0
- stochasticforceinference-2.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"""
|
|
2
|
+
SFI.inference — Stochastic Force Inference engines.
|
|
3
|
+
|
|
4
|
+
Public classes
|
|
5
|
+
--------------
|
|
6
|
+
OverdampedLangevinInference
|
|
7
|
+
Inference for overdamped Langevin dynamics (dx/dt = F(x) + sqrt(2D) dW).
|
|
8
|
+
UnderdampedLangevinInference
|
|
9
|
+
Inference for underdamped Langevin dynamics (velocities unobserved).
|
|
10
|
+
InferenceResultSF
|
|
11
|
+
Callable fitted state function carrying parameter covariance and metadata.
|
|
12
|
+
SparseScorer
|
|
13
|
+
Scores candidate supports via the normal equations (M, G).
|
|
14
|
+
SparsityResult
|
|
15
|
+
Immutable container returned by every sparsity strategy. Provides
|
|
16
|
+
information-criterion selection (AIC, BIC, PASTIS, SIC).
|
|
17
|
+
BeamSearchStrategy / GreedyStepwiseStrategy / HillClimbStrategy / STLSQStrategy / LassoStrategy
|
|
18
|
+
Pluggable search strategies for sparse model selection.
|
|
19
|
+
overlap_metrics / predictive_nmse
|
|
20
|
+
Benchmark helpers for comparing to ground truth.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
from .overdamped import OverdampedLangevinInference
|
|
24
|
+
from .result import InferenceResultSF, kernel_predict_ci
|
|
25
|
+
from .serialization import load_model, load_results, save_model, save_results
|
|
26
|
+
from .sparse import (
|
|
27
|
+
BeamSearchStrategy,
|
|
28
|
+
GreedyStepwiseStrategy,
|
|
29
|
+
HillClimbStrategy,
|
|
30
|
+
LassoStrategy,
|
|
31
|
+
SparseScorer,
|
|
32
|
+
SparsityResult,
|
|
33
|
+
SparsityStrategy,
|
|
34
|
+
STLSQStrategy,
|
|
35
|
+
overlap_metrics,
|
|
36
|
+
predictive_nmse,
|
|
37
|
+
)
|
|
38
|
+
from .underdamped import UnderdampedLangevinInference
|
|
39
|
+
|
|
40
|
+
__all__ = [
|
|
41
|
+
"OverdampedLangevinInference",
|
|
42
|
+
"UnderdampedLangevinInference",
|
|
43
|
+
"InferenceResultSF",
|
|
44
|
+
"SparseScorer",
|
|
45
|
+
"SparsityResult",
|
|
46
|
+
"SparsityStrategy",
|
|
47
|
+
"BeamSearchStrategy",
|
|
48
|
+
"GreedyStepwiseStrategy",
|
|
49
|
+
"HillClimbStrategy",
|
|
50
|
+
"STLSQStrategy",
|
|
51
|
+
"LassoStrategy",
|
|
52
|
+
"overlap_metrics",
|
|
53
|
+
"predictive_nmse",
|
|
54
|
+
"save_results",
|
|
55
|
+
"load_results",
|
|
56
|
+
"save_model",
|
|
57
|
+
"load_model",
|
|
58
|
+
]
|