AbstractIntegratedModule 1.0.5__tar.gz → 1.0.6__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.
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/AbstractIntegratedModule.egg-info/PKG-INFO +1 -1
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/AbstractIntegratedModule.py +12 -5
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/AbstractOptimizedModules.c +200 -200
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/PKG-INFO +1 -1
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/README.md +4 -4
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/pyproject.toml +1 -1
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/setup.py +1 -1
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/AbstractIntegratedModule.egg-info/SOURCES.txt +0 -0
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/AbstractIntegratedModule.egg-info/dependency_links.txt +0 -0
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/AbstractIntegratedModule.egg-info/requires.txt +0 -0
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/AbstractIntegratedModule.egg-info/top_level.txt +0 -0
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/AbstractOptimizedModules.pyx +0 -0
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/MANIFEST.in +0 -0
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/abstract_model_storage/Cargo.toml +0 -0
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/abstract_model_storage/pyproject.toml +0 -0
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/abstract_model_storage/src/lib.rs +0 -0
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/abstract_model_storage/target/debug/build/libsqlite3-sys-ed07b882cd2aa5e2/out/bindgen.rs +0 -0
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/abstract_model_storage/target/debug/build/serde_core-ebc15f2e9cad7f5f/out/private.rs +0 -0
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/abstract_model_storage/target/debug/build/target-lexicon-08527f45de28143d/out/host.rs +0 -0
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/abstract_model_storage/target/release/build/libsqlite3-sys-bf0400df4523274c/out/bindgen.rs +0 -0
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/abstract_model_storage/target/release/build/serde_core-5cdb76131825e4af/out/private.rs +0 -0
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/abstract_model_storage/target/release/build/target-lexicon-43eb95a0588bf457/out/host.rs +0 -0
- {abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/setup.cfg +0 -0
{abstractintegratedmodule-1.0.5 → abstractintegratedmodule-1.0.6}/AbstractIntegratedModule.py
RENAMED
|
@@ -1868,7 +1868,7 @@ class MLP:
|
|
|
1868
1868
|
standard_low_error_mean + standard_pred_quality)
|
|
1869
1869
|
|
|
1870
1870
|
if np.isnan(performance_score) or np.isinf(performance_score):
|
|
1871
|
-
performance_score = 0.
|
|
1871
|
+
performance_score = 0.15
|
|
1872
1872
|
|
|
1873
1873
|
return performance_score
|
|
1874
1874
|
|
|
@@ -2296,7 +2296,7 @@ class LSTMNetwork:
|
|
|
2296
2296
|
|
|
2297
2297
|
diff = preds - targets
|
|
2298
2298
|
loss = (1.0 - AMR) * np.mean(diff ** 2)
|
|
2299
|
-
dloss = diff / (min_T * min_F) #
|
|
2299
|
+
dloss = diff / (min_T * min_F) # normalized by full element count
|
|
2300
2300
|
return loss, dloss
|
|
2301
2301
|
|
|
2302
2302
|
# backward method for the network to calculate proper weights with cell backward
|
|
@@ -5123,7 +5123,7 @@ class ModelStorage:
|
|
|
5123
5123
|
repaired = {}
|
|
5124
5124
|
for key, value in data.items():
|
|
5125
5125
|
|
|
5126
|
-
# dynamic corruption check
|
|
5126
|
+
# dynamic corruption check
|
|
5127
5127
|
if isinstance(value, list):
|
|
5128
5128
|
arr = np.asarray(value)
|
|
5129
5129
|
if arr.ndim > 2:
|
|
@@ -5137,7 +5137,7 @@ class ModelStorage:
|
|
|
5137
5137
|
f'{arr.shape}, expected {num_classes} — removing')
|
|
5138
5138
|
continue
|
|
5139
5139
|
|
|
5140
|
-
# None values —
|
|
5140
|
+
# None values — skipped silently
|
|
5141
5141
|
if value is None:
|
|
5142
5142
|
continue
|
|
5143
5143
|
|
|
@@ -17007,8 +17007,15 @@ class PipelinePredictionManager:
|
|
|
17007
17007
|
trans_confidence = results[0].get('trans_confidence', 1e-8)
|
|
17008
17008
|
confidence = (confidence + trans_confidence / 2) + 1e-5
|
|
17009
17009
|
print(f'[=] Calibrating confidence around: {confidence:.1%} Due to disagreement between Transformer and MLP.')
|
|
17010
|
+
|
|
17011
|
+
if isinstance(chosen_label, str) and chosen_label.startswith("unknown") or float(confidence) < self.pipeline.confidence_threshold:
|
|
17012
|
+
if chosen_label is None or chosen_label.startswith('unknown'):
|
|
17013
|
+
chosen_label = 'Unknown'
|
|
17014
|
+
confidence = 1.0 - confidence #Invert confidence for unknown class
|
|
17015
|
+
print(f"\n[⚠️] Final prediction is {chosen_label} with uncertain confidence: {confidence:.1%}. Consider more consistent data for the model to learn from.")
|
|
17016
|
+
else:
|
|
17017
|
+
print(f"\n[🎯] Predicted label: {chosen_label} || With Certain Confidence: {confidence:.1%}")
|
|
17010
17018
|
|
|
17011
|
-
print(f"\n[🎯] Predicted label: {chosen_label} || With Certain Confidence: {confidence:.1%}")
|
|
17012
17019
|
payload = {
|
|
17013
17020
|
'X_samples': X,
|
|
17014
17021
|
'input_ids': input_ids
|