AbstractIntegratedModule 1.2.7__tar.gz → 1.2.8__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.2.7 → abstractintegratedmodule-1.2.8}/AbstractIntegratedModule.egg-info/PKG-INFO +1 -1
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/AbstractIntegratedModule.py +8 -9
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/AbstractOptimizedModules.c +200 -200
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/PKG-INFO +1 -1
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/pyproject.toml +1 -1
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/setup.py +1 -1
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/AbstractIntegratedModule.egg-info/SOURCES.txt +0 -0
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/AbstractIntegratedModule.egg-info/dependency_links.txt +0 -0
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/AbstractIntegratedModule.egg-info/requires.txt +0 -0
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/AbstractIntegratedModule.egg-info/top_level.txt +0 -0
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/AbstractOptimizedModules.pyx +0 -0
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/MANIFEST.in +0 -0
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/README.md +0 -0
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/abstract_model_storage/Cargo.toml +0 -0
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/abstract_model_storage/pyproject.toml +0 -0
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/abstract_model_storage/src/lib.rs +0 -0
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/abstract_model_storage/target/debug/build/libsqlite3-sys-ed07b882cd2aa5e2/out/bindgen.rs +0 -0
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/abstract_model_storage/target/debug/build/serde_core-ebc15f2e9cad7f5f/out/private.rs +0 -0
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/abstract_model_storage/target/debug/build/target-lexicon-08527f45de28143d/out/host.rs +0 -0
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/abstract_model_storage/target/release/build/libsqlite3-sys-bf0400df4523274c/out/bindgen.rs +0 -0
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/abstract_model_storage/target/release/build/serde_core-5cdb76131825e4af/out/private.rs +0 -0
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/abstract_model_storage/target/release/build/target-lexicon-43eb95a0588bf457/out/host.rs +0 -0
- {abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/setup.cfg +0 -0
{abstractintegratedmodule-1.2.7 → abstractintegratedmodule-1.2.8}/AbstractIntegratedModule.py
RENAMED
|
@@ -10985,26 +10985,25 @@ class AgentDistributedInference:
|
|
|
10985
10985
|
|
|
10986
10986
|
# Sanitize if needed
|
|
10987
10987
|
if test_titles:
|
|
10988
|
+
print('[P2P INFO] Sanitizing titles for potential unsupported format...')
|
|
10988
10989
|
test_titles = self._sanitize_structured(test_titles)
|
|
10989
10990
|
if label_map:
|
|
10991
|
+
print('[P2P INFO] Sanitizing label map for potential unsupported format...')
|
|
10990
10992
|
label_map = self._sanitize_structured(label_map)
|
|
10991
10993
|
if label_map is None or not isinstance(label_map, dict):
|
|
10992
10994
|
raise ValueError('[>] Label map is None or invalid label map instance!')
|
|
10993
10995
|
|
|
10994
10996
|
|
|
10995
10997
|
if rules:
|
|
10998
|
+
print('[P2P INFO] Sanitizing rules for potential unsupported format...')
|
|
10996
10999
|
rules = self._sanitize_structured(rules)
|
|
10997
11000
|
if X is not None:
|
|
11001
|
+
print('[P2P INFO] Sanitizing X sample for Potential strings...')
|
|
10998
11002
|
X = self._sanitize_structured(X)
|
|
10999
11003
|
if y is not None:
|
|
11004
|
+
print('[P2P INFO] Sanitizing y sample for Potential strings...')
|
|
11000
11005
|
y = self._sanitize_structured(y)
|
|
11001
11006
|
|
|
11002
|
-
if X is None and y is None and test_titles is not None and rules is not None:
|
|
11003
|
-
print('[=] Got necessary titles, label_map, rules samples')
|
|
11004
|
-
elif X is not None and y is not None and test_titles is None and rules is None:
|
|
11005
|
-
print('[=] Got necessary titles, rules, label_map, X And Y samples.')
|
|
11006
|
-
else:
|
|
11007
|
-
raise ValueError('[>] All samples are None!')
|
|
11008
11007
|
else:
|
|
11009
11008
|
text = payload.get('text')
|
|
11010
11009
|
if text:
|
|
@@ -11048,7 +11047,7 @@ class AgentDistributedInference:
|
|
|
11048
11047
|
}
|
|
11049
11048
|
|
|
11050
11049
|
else:
|
|
11051
|
-
print('[=]
|
|
11050
|
+
print('[=] Iniatiting basic prediction...')
|
|
11052
11051
|
result = await asyncio.to_thread(self.pipeline.predict_single, text)
|
|
11053
11052
|
|
|
11054
11053
|
return {
|
|
@@ -13415,7 +13414,7 @@ class IntegratedPipeline:
|
|
|
13415
13414
|
else:
|
|
13416
13415
|
print(f'[⚠️] Label {label_idx} out of range for {num_classes} classes '
|
|
13417
13416
|
f'at sample {idx} — skipping onehot assignment')
|
|
13418
|
-
|
|
13417
|
+
|
|
13419
13418
|
return y_onehot
|
|
13420
13419
|
|
|
13421
13420
|
|
|
@@ -23490,7 +23489,7 @@ class PipelinePredictionManager:
|
|
|
23490
23489
|
|
|
23491
23490
|
if mlp_pred is not None and mlp_conf > 0.0:
|
|
23492
23491
|
print(f'[🎯] MLP Prediction: {mlp_pred} || with confidence: {mlp_conf}')
|
|
23493
|
-
if self.pipeline.use_lstm:
|
|
23492
|
+
if self.pipeline.use_lstm and lstm_pred is not None:
|
|
23494
23493
|
print(f'[⚡] LSTM Predictions: {lstm_pred[:top_k]} || with distributed confidence: {lstm_conf}')
|
|
23495
23494
|
print(f'[⚡] LSTM Uncertainty: {uncertainty}')
|
|
23496
23495
|
print(f'[⚡] LSTM Overall Confidence: {overall_conf}')
|