memdyn 0.1.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.
memdyn/__init__.py ADDED
@@ -0,0 +1,164 @@
1
+ """MemDyn: Learning Interacting Dynamical Systems with Source-Isolated Adaptive Memory."""
2
+
3
+ __version__ = "0.1.0"
4
+
5
+ from .api import (
6
+ ClosedLoopMemDyn,
7
+ HysteresisPortrait,
8
+ MemDynModel,
9
+ MemDynOrtho,
10
+ build_stage_grid,
11
+ compute_hysteresis_portrait,
12
+ )
13
+ from .baselines import (
14
+ ClosedLoopModelFamily,
15
+ ClosedLoopSpec,
16
+ DynamicalModelFamily,
17
+ ModelSpec,
18
+ TrainedClosedLoopModel,
19
+ TrainedModel,
20
+ build_closed_loop_jax_rollout,
21
+ build_jax_rollout,
22
+ counterfactual_source_attribution,
23
+ extract_memdyn_up_down,
24
+ extract_memgrn_up_down,
25
+ fit_closed_loop_network,
26
+ fit_dynamical_model,
27
+ fit_two_stage_memdyn_ortho,
28
+ fit_two_stage_memgrn_ortho,
29
+ )
30
+ from .discrete_baselines import (
31
+ DiscreteModelFamily,
32
+ TrainedDiscreteModel,
33
+ discrete_counterfactual_attribution,
34
+ fit_discrete_closed_loop,
35
+ fit_discrete_open_loop,
36
+ )
37
+ from .dynamics import (
38
+ MemDynConfig,
39
+ MemDynParams,
40
+ MemGRNConfig,
41
+ MemGRNParams,
42
+ RateInputMode,
43
+ adaptive_rate_law,
44
+ adaptive_rate_pair,
45
+ compute_exact_contributions,
46
+ initialize_memdyn_params,
47
+ initialize_memgrn_params,
48
+ memdyn_vector_field,
49
+ memory_reset_splice_decomposition,
50
+ project_orthogonal_cofactor_basis,
51
+ rollout_closed_loop_memdyn_rk4,
52
+ rollout_closed_loop_memgrn_rk4,
53
+ rollout_memdyn_midpoint,
54
+ rollout_memdyn_rk4,
55
+ rollout_memgrn_midpoint,
56
+ rollout_memgrn_rk4,
57
+ )
58
+ from .identification import (
59
+ ScheduleBoundResult,
60
+ ar1_innovation_schedule_bound,
61
+ decode_swapped_pairs,
62
+ exact_swap_cancellation_accuracy,
63
+ invert_swap_waveforms,
64
+ paired_schedule_certificate,
65
+ swap_singular_values,
66
+ template_margin_lower_bound,
67
+ )
68
+ from .theory import (
69
+ ClosedLoopIdentifiabilityAuditResult,
70
+ CrossTalkAuditResult,
71
+ GeneralSCovarianceAuditResult,
72
+ IsoExpressionAuditResult,
73
+ OrthoOODGeneralizationAuditResult,
74
+ OrthogonalCofactorAuditResult,
75
+ SelectiveSSMCrossTalkAuditResult,
76
+ UnitDCGainAndSecondOrderAuditResult,
77
+ general_s_coupled_ridge_weights,
78
+ minimum_norm_collinear_gate_weights,
79
+ state_only_iso_expression_lower_bound,
80
+ verify_closed_loop_stability_and_identifiability_theorem,
81
+ verify_coupled_crosstalk_theorem,
82
+ verify_general_s_covariance_crosstalk_theorem,
83
+ verify_iso_expression_proposition,
84
+ verify_ortho_ood_generalization_theorem,
85
+ verify_orthogonal_cofactor_invariance_proposition,
86
+ verify_selective_ssm_crosstalk_corollary,
87
+ verify_unit_dc_gain_and_second_order_vs_local_ltc,
88
+ )
89
+
90
+ __all__ = [
91
+ "__version__",
92
+ "ClosedLoopIdentifiabilityAuditResult",
93
+ "ClosedLoopMemDyn",
94
+ "ClosedLoopModelFamily",
95
+ "ClosedLoopSpec",
96
+ "CrossTalkAuditResult",
97
+ "DiscreteModelFamily",
98
+ "DynamicalModelFamily",
99
+ "GeneralSCovarianceAuditResult",
100
+ "HysteresisPortrait",
101
+ "IsoExpressionAuditResult",
102
+ "MemDynConfig",
103
+ "MemDynModel",
104
+ "MemDynOrtho",
105
+ "MemDynParams",
106
+ "MemGRNConfig",
107
+ "MemGRNParams",
108
+ "ModelSpec",
109
+ "OrthoOODGeneralizationAuditResult",
110
+ "OrthogonalCofactorAuditResult",
111
+ "RateInputMode",
112
+ "ScheduleBoundResult",
113
+ "SelectiveSSMCrossTalkAuditResult",
114
+ "TrainedClosedLoopModel",
115
+ "TrainedDiscreteModel",
116
+ "TrainedModel",
117
+ "UnitDCGainAndSecondOrderAuditResult",
118
+ "adaptive_rate_law",
119
+ "adaptive_rate_pair",
120
+ "ar1_innovation_schedule_bound",
121
+ "build_closed_loop_jax_rollout",
122
+ "build_jax_rollout",
123
+ "build_stage_grid",
124
+ "compute_exact_contributions",
125
+ "compute_hysteresis_portrait",
126
+ "counterfactual_source_attribution",
127
+ "decode_swapped_pairs",
128
+ "discrete_counterfactual_attribution",
129
+ "exact_swap_cancellation_accuracy",
130
+ "extract_memdyn_up_down",
131
+ "extract_memgrn_up_down",
132
+ "fit_closed_loop_network",
133
+ "fit_discrete_closed_loop",
134
+ "fit_discrete_open_loop",
135
+ "fit_dynamical_model",
136
+ "fit_two_stage_memdyn_ortho",
137
+ "fit_two_stage_memgrn_ortho",
138
+ "general_s_coupled_ridge_weights",
139
+ "initialize_memdyn_params",
140
+ "initialize_memgrn_params",
141
+ "invert_swap_waveforms",
142
+ "memdyn_vector_field",
143
+ "memory_reset_splice_decomposition",
144
+ "minimum_norm_collinear_gate_weights",
145
+ "paired_schedule_certificate",
146
+ "project_orthogonal_cofactor_basis",
147
+ "rollout_closed_loop_memdyn_rk4",
148
+ "rollout_closed_loop_memgrn_rk4",
149
+ "rollout_memdyn_midpoint",
150
+ "rollout_memdyn_rk4",
151
+ "rollout_memgrn_midpoint",
152
+ "rollout_memgrn_rk4",
153
+ "state_only_iso_expression_lower_bound",
154
+ "swap_singular_values",
155
+ "template_margin_lower_bound",
156
+ "verify_closed_loop_stability_and_identifiability_theorem",
157
+ "verify_coupled_crosstalk_theorem",
158
+ "verify_general_s_covariance_crosstalk_theorem",
159
+ "verify_iso_expression_proposition",
160
+ "verify_ortho_ood_generalization_theorem",
161
+ "verify_orthogonal_cofactor_invariance_proposition",
162
+ "verify_selective_ssm_crosstalk_corollary",
163
+ "verify_unit_dc_gain_and_second_order_vs_local_ltc",
164
+ ]
memdyn/__main__.py ADDED
@@ -0,0 +1,6 @@
1
+ """Allow `python -m memdyn [--check]`."""
2
+
3
+ from .cli import main
4
+
5
+ if __name__ == "__main__":
6
+ raise SystemExit(main())