pytmpinv 1.3.0__tar.gz → 1.3.2__tar.gz
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.
- {pytmpinv-1.3.0/pytmpinv.egg-info → pytmpinv-1.3.2}/PKG-INFO +6 -6
- {pytmpinv-1.3.0 → pytmpinv-1.3.2}/README.md +5 -5
- {pytmpinv-1.3.0 → pytmpinv-1.3.2}/pyproject.toml +1 -1
- {pytmpinv-1.3.0 → pytmpinv-1.3.2/pytmpinv.egg-info}/PKG-INFO +6 -6
- {pytmpinv-1.3.0 → pytmpinv-1.3.2}/tmpinv/__init__.py +1 -1
- {pytmpinv-1.3.0 → pytmpinv-1.3.2}/LICENSE +0 -0
- {pytmpinv-1.3.0 → pytmpinv-1.3.2}/pytmpinv.egg-info/SOURCES.txt +0 -0
- {pytmpinv-1.3.0 → pytmpinv-1.3.2}/pytmpinv.egg-info/dependency_links.txt +0 -0
- {pytmpinv-1.3.0 → pytmpinv-1.3.2}/pytmpinv.egg-info/requires.txt +0 -0
- {pytmpinv-1.3.0 → pytmpinv-1.3.2}/pytmpinv.egg-info/top_level.txt +0 -0
- {pytmpinv-1.3.0 → pytmpinv-1.3.2}/setup.cfg +0 -0
- {pytmpinv-1.3.0 → pytmpinv-1.3.2}/tmpinv/tmpinv.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytmpinv
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.2
|
|
4
4
|
Summary: Tabular Matrix Problems via Pseudoinverse Estimation
|
|
5
5
|
Author-email: The Economist <29724411+econcz@users.noreply.github.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -69,6 +69,7 @@ def fmt(v):
|
|
|
69
69
|
return f"{v:.4e}" if abs(v) >= 1e6 or (v != 0 and abs(v) < 1e-4) else f"{v:.6f}"
|
|
70
70
|
|
|
71
71
|
# results
|
|
72
|
+
# (for a full model, one can simply type `result.model.summary(display=True)`)
|
|
72
73
|
print("true X:")
|
|
73
74
|
print(np.round(np.asarray(X_true), 4))
|
|
74
75
|
print("X_hat:")
|
|
@@ -97,7 +98,7 @@ print(" R2_user_defined :", fmt(1 - ss_res / ss_tot))
|
|
|
97
98
|
print(" NRMSE :", fmt(result.model.nrmse))
|
|
98
99
|
print(" Diagnostic band (min):", fmt(np.min(result.model.x_lower)))
|
|
99
100
|
print(" Diagnostic band (max):", fmt(np.max(result.model.x_upper)))
|
|
100
|
-
print("
|
|
101
|
+
print(" Bootstrap t-test:")
|
|
101
102
|
for kw, val in result.model.ttest(sample_size=30, # NRMSE sample
|
|
102
103
|
seed=seed, distribution="normal", # seed and distribution
|
|
103
104
|
partial=True).items():
|
|
@@ -162,7 +163,7 @@ print(" R2_user_defined :", fmt(1 - ss_res / ss_tot
|
|
|
162
163
|
print(" NRMSE :", fmt(np.min(nrmse)), "-", fmt(np.max(nrmse) ))
|
|
163
164
|
print(" Diagnostic band (min):", fmt(np.min(x_lower)), "-", fmt(np.max(x_lower) ))
|
|
164
165
|
print(" Diagnostic band (max):", fmt(np.min(x_upper)), "-", fmt(np.max(x_upper) ))
|
|
165
|
-
print("
|
|
166
|
+
print(" Bootstrap t-test:")
|
|
166
167
|
ttests = [CLSP.ttest(sample_size=30, seed=seed,
|
|
167
168
|
distribution="normal") for CLSP in result.model]
|
|
168
169
|
keys = ttests[0].keys()
|
|
@@ -175,7 +176,7 @@ for kw in keys:
|
|
|
175
176
|
|
|
176
177
|
For comprehensive information on the estimator's capabilities, advanced configuration options, and implementation details, please refer to the [pyclsp module](https://pypi.org/project/pyclsp/ "Convex Least Squares Programming"), on which TMPinv is based.
|
|
177
178
|
|
|
178
|
-
**
|
|
179
|
+
**TMPinv Parameters:**
|
|
179
180
|
|
|
180
181
|
`S` : *array_like* of shape *(m + p, m + p)*, optional
|
|
181
182
|
A diagonal sign slack (surplus) matrix with entries in *{0, ±1}*.
|
|
@@ -261,8 +262,7 @@ A single CLSP object in the full model, or a list of CLSP objects for each reduc
|
|
|
261
262
|
Final estimated solution matrix of shape *(m, p)*.
|
|
262
263
|
|
|
263
264
|
## Bibliography
|
|
264
|
-
|
|
265
|
-
To be added.
|
|
265
|
+
Bolotov, I. (2025). CLSP: Linear Algebra Foundations of a Modular Two-Step Convex Optimization-Based Estimator for Ill-Posed Problems. *Mathematics*, *13*(21), 3476. [https://doi.org/10.3390/math13213476](https://doi.org/10.3390/math13213476)
|
|
266
266
|
|
|
267
267
|
## License
|
|
268
268
|
|
|
@@ -46,6 +46,7 @@ def fmt(v):
|
|
|
46
46
|
return f"{v:.4e}" if abs(v) >= 1e6 or (v != 0 and abs(v) < 1e-4) else f"{v:.6f}"
|
|
47
47
|
|
|
48
48
|
# results
|
|
49
|
+
# (for a full model, one can simply type `result.model.summary(display=True)`)
|
|
49
50
|
print("true X:")
|
|
50
51
|
print(np.round(np.asarray(X_true), 4))
|
|
51
52
|
print("X_hat:")
|
|
@@ -74,7 +75,7 @@ print(" R2_user_defined :", fmt(1 - ss_res / ss_tot))
|
|
|
74
75
|
print(" NRMSE :", fmt(result.model.nrmse))
|
|
75
76
|
print(" Diagnostic band (min):", fmt(np.min(result.model.x_lower)))
|
|
76
77
|
print(" Diagnostic band (max):", fmt(np.max(result.model.x_upper)))
|
|
77
|
-
print("
|
|
78
|
+
print(" Bootstrap t-test:")
|
|
78
79
|
for kw, val in result.model.ttest(sample_size=30, # NRMSE sample
|
|
79
80
|
seed=seed, distribution="normal", # seed and distribution
|
|
80
81
|
partial=True).items():
|
|
@@ -139,7 +140,7 @@ print(" R2_user_defined :", fmt(1 - ss_res / ss_tot
|
|
|
139
140
|
print(" NRMSE :", fmt(np.min(nrmse)), "-", fmt(np.max(nrmse) ))
|
|
140
141
|
print(" Diagnostic band (min):", fmt(np.min(x_lower)), "-", fmt(np.max(x_lower) ))
|
|
141
142
|
print(" Diagnostic band (max):", fmt(np.min(x_upper)), "-", fmt(np.max(x_upper) ))
|
|
142
|
-
print("
|
|
143
|
+
print(" Bootstrap t-test:")
|
|
143
144
|
ttests = [CLSP.ttest(sample_size=30, seed=seed,
|
|
144
145
|
distribution="normal") for CLSP in result.model]
|
|
145
146
|
keys = ttests[0].keys()
|
|
@@ -152,7 +153,7 @@ for kw in keys:
|
|
|
152
153
|
|
|
153
154
|
For comprehensive information on the estimator's capabilities, advanced configuration options, and implementation details, please refer to the [pyclsp module](https://pypi.org/project/pyclsp/ "Convex Least Squares Programming"), on which TMPinv is based.
|
|
154
155
|
|
|
155
|
-
**
|
|
156
|
+
**TMPinv Parameters:**
|
|
156
157
|
|
|
157
158
|
`S` : *array_like* of shape *(m + p, m + p)*, optional
|
|
158
159
|
A diagonal sign slack (surplus) matrix with entries in *{0, ±1}*.
|
|
@@ -238,8 +239,7 @@ A single CLSP object in the full model, or a list of CLSP objects for each reduc
|
|
|
238
239
|
Final estimated solution matrix of shape *(m, p)*.
|
|
239
240
|
|
|
240
241
|
## Bibliography
|
|
241
|
-
|
|
242
|
-
To be added.
|
|
242
|
+
Bolotov, I. (2025). CLSP: Linear Algebra Foundations of a Modular Two-Step Convex Optimization-Based Estimator for Ill-Posed Problems. *Mathematics*, *13*(21), 3476. [https://doi.org/10.3390/math13213476](https://doi.org/10.3390/math13213476)
|
|
243
243
|
|
|
244
244
|
## License
|
|
245
245
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytmpinv
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.2
|
|
4
4
|
Summary: Tabular Matrix Problems via Pseudoinverse Estimation
|
|
5
5
|
Author-email: The Economist <29724411+econcz@users.noreply.github.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -69,6 +69,7 @@ def fmt(v):
|
|
|
69
69
|
return f"{v:.4e}" if abs(v) >= 1e6 or (v != 0 and abs(v) < 1e-4) else f"{v:.6f}"
|
|
70
70
|
|
|
71
71
|
# results
|
|
72
|
+
# (for a full model, one can simply type `result.model.summary(display=True)`)
|
|
72
73
|
print("true X:")
|
|
73
74
|
print(np.round(np.asarray(X_true), 4))
|
|
74
75
|
print("X_hat:")
|
|
@@ -97,7 +98,7 @@ print(" R2_user_defined :", fmt(1 - ss_res / ss_tot))
|
|
|
97
98
|
print(" NRMSE :", fmt(result.model.nrmse))
|
|
98
99
|
print(" Diagnostic band (min):", fmt(np.min(result.model.x_lower)))
|
|
99
100
|
print(" Diagnostic band (max):", fmt(np.max(result.model.x_upper)))
|
|
100
|
-
print("
|
|
101
|
+
print(" Bootstrap t-test:")
|
|
101
102
|
for kw, val in result.model.ttest(sample_size=30, # NRMSE sample
|
|
102
103
|
seed=seed, distribution="normal", # seed and distribution
|
|
103
104
|
partial=True).items():
|
|
@@ -162,7 +163,7 @@ print(" R2_user_defined :", fmt(1 - ss_res / ss_tot
|
|
|
162
163
|
print(" NRMSE :", fmt(np.min(nrmse)), "-", fmt(np.max(nrmse) ))
|
|
163
164
|
print(" Diagnostic band (min):", fmt(np.min(x_lower)), "-", fmt(np.max(x_lower) ))
|
|
164
165
|
print(" Diagnostic band (max):", fmt(np.min(x_upper)), "-", fmt(np.max(x_upper) ))
|
|
165
|
-
print("
|
|
166
|
+
print(" Bootstrap t-test:")
|
|
166
167
|
ttests = [CLSP.ttest(sample_size=30, seed=seed,
|
|
167
168
|
distribution="normal") for CLSP in result.model]
|
|
168
169
|
keys = ttests[0].keys()
|
|
@@ -175,7 +176,7 @@ for kw in keys:
|
|
|
175
176
|
|
|
176
177
|
For comprehensive information on the estimator's capabilities, advanced configuration options, and implementation details, please refer to the [pyclsp module](https://pypi.org/project/pyclsp/ "Convex Least Squares Programming"), on which TMPinv is based.
|
|
177
178
|
|
|
178
|
-
**
|
|
179
|
+
**TMPinv Parameters:**
|
|
179
180
|
|
|
180
181
|
`S` : *array_like* of shape *(m + p, m + p)*, optional
|
|
181
182
|
A diagonal sign slack (surplus) matrix with entries in *{0, ±1}*.
|
|
@@ -261,8 +262,7 @@ A single CLSP object in the full model, or a list of CLSP objects for each reduc
|
|
|
261
262
|
Final estimated solution matrix of shape *(m, p)*.
|
|
262
263
|
|
|
263
264
|
## Bibliography
|
|
264
|
-
|
|
265
|
-
To be added.
|
|
265
|
+
Bolotov, I. (2025). CLSP: Linear Algebra Foundations of a Modular Two-Step Convex Optimization-Based Estimator for Ill-Posed Problems. *Mathematics*, *13*(21), 3476. [https://doi.org/10.3390/math13213476](https://doi.org/10.3390/math13213476)
|
|
266
266
|
|
|
267
267
|
## License
|
|
268
268
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|