AbstractIntegratedModule 0.3.8__tar.gz → 0.4.0__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.
Files changed (16) hide show
  1. abstractintegratedmodule-0.4.0/AbstractIntegratedModule.cp313-win_amd64.pyd +0 -0
  2. {abstractintegratedmodule-0.3.8 → abstractintegratedmodule-0.4.0}/AbstractIntegratedModule.cpython-310-aarch64-linux-gnu.so +0 -0
  3. {abstractintegratedmodule-0.3.8 → abstractintegratedmodule-0.4.0}/AbstractIntegratedModule.cpython-312-x86_64-linux-gnu.so +0 -0
  4. {abstractintegratedmodule-0.3.8 → abstractintegratedmodule-0.4.0/AbstractIntegratedModule.egg-info}/PKG-INFO +3 -3
  5. {abstractintegratedmodule-0.3.8 → abstractintegratedmodule-0.4.0}/AbstractIntegratedModule.py +32 -29
  6. {abstractintegratedmodule-0.3.8/AbstractIntegratedModule.egg-info → abstractintegratedmodule-0.4.0}/PKG-INFO +3 -3
  7. {abstractintegratedmodule-0.3.8 → abstractintegratedmodule-0.4.0}/README.md +2 -2
  8. {abstractintegratedmodule-0.3.8 → abstractintegratedmodule-0.4.0}/setup.py +1 -1
  9. abstractintegratedmodule-0.3.8/AbstractIntegratedModule.cp313-win_amd64.pyd +0 -0
  10. {abstractintegratedmodule-0.3.8 → abstractintegratedmodule-0.4.0}/AbstractIntegratedModule.egg-info/SOURCES.txt +0 -0
  11. {abstractintegratedmodule-0.3.8 → abstractintegratedmodule-0.4.0}/AbstractIntegratedModule.egg-info/dependency_links.txt +0 -0
  12. {abstractintegratedmodule-0.3.8 → abstractintegratedmodule-0.4.0}/AbstractIntegratedModule.egg-info/requires.txt +0 -0
  13. {abstractintegratedmodule-0.3.8 → abstractintegratedmodule-0.4.0}/AbstractIntegratedModule.egg-info/top_level.txt +0 -0
  14. {abstractintegratedmodule-0.3.8 → abstractintegratedmodule-0.4.0}/MANIFEST.in +0 -0
  15. {abstractintegratedmodule-0.3.8 → abstractintegratedmodule-0.4.0}/pyproject.toml +0 -0
  16. {abstractintegratedmodule-0.3.8 → abstractintegratedmodule-0.4.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: AbstractIntegratedModule
3
- Version: 0.3.8
3
+ Version: 0.4.0
4
4
  Summary: Framework for Advanced Integrated Non-LLM AI Module library - Backend Framework for Non-LLM AI Agent Framework
5
5
  Author: Micro-Novelty
6
6
  Author-email: hernikpuspita5@gmail.com
@@ -42,7 +42,7 @@ https://github.com/Micro-Novelty/IntegratedPipeline-Specialized-Non-LLM-AI-Agent
42
42
  #### Note: The README here you are reading is a direct copy from my README Repository, to download the necessary files, you can visit my Repository with the provided link above.
43
43
 
44
44
  ### Library Short Description:
45
- - Development Stage: Beta, 0.3.8.
45
+ - Development Stage: Beta, 0.4.0.
46
46
  - Maintainer: Micro-Novelty.
47
47
  - library Source-Code is Open-sourced on github.
48
48
  - Purpose: Specifically Designed for providing Non-LLM AI Agent Framework for edge Devices, Optimized for ARM64 architecture.
@@ -66,7 +66,7 @@ https://github.com/Micro-Novelty/IntegratedPipeline-Specialized-Non-LLM-AI-Agent
66
66
  -----
67
67
 
68
68
  <img width="1280" height="600" alt="WhatsApp Image 2026-05-27 at 07 16 32" src="https://github.com/user-attachments/assets/4b58a556-45a3-419b-96fd-9c1b76cac574" />
69
-
69
+ [![PyPI Downloads](https://static.pepy.tech/personalized-badge/abstractintegratedmodule?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads)](https://pepy.tech/projects/abstractintegratedmodule)
70
70
 
71
71
  ## [+] MANN Intro
72
72
  [=] Memory augmented Neural network (MANN) is a neural network architecture coupled with an external, dynamic memory module, allowing it to store, retrieve, and update information similarly to a computer's RAM. Unlike traditional networks that store knowledge only in weight parameters, MANNs excel at fast learning, long-term dependency handling, and episodic recall, In IntegratedPipeline, Its memory is stored in a custom database inside your local machine, then later used for memory retrieval, transfered to the AI Dictionary where it can finnaly recall its memory when input condition matched with memory.
@@ -299,18 +299,18 @@ class GeometricWeightShaping:
299
299
  def __init__(self, input_size, output_size):
300
300
  self.input_size = input_size
301
301
  self.output_size = output_size
302
- self.floating_context = None
302
+
303
303
 
304
304
  def eigenvalue_encoder(self, x):
305
305
  eps = 1e-5
306
306
  raw_X = np.asarray(x)
307
+ AME = self.AME_Encoder(raw_X)
308
+ AMR = 1.0 / (1.0 + np.exp(-AME)) + eps
309
+ mag = np.mean(np.linalg.norm(raw_X, axis=-1))
310
+
307
311
  if raw_X.ndim > 2:
308
312
  raw_X = raw_X.reshape(raw_X.shape[0], -1)
309
313
 
310
- mag = np.mean(np.linalg.norm(raw_X, axis=-1))
311
- if np.isnan(mag) or np.isinf(mag):
312
- mag = self.AME_Encoder(raw_X)
313
-
314
314
  anisotropy = self.anisotropy_measurement(raw_X)
315
315
 
316
316
  structured_noise = np.random.uniform(0, mag, size=raw_X.shape)
@@ -321,22 +321,25 @@ class GeometricWeightShaping:
321
321
  cov = np.cov(X, rowvar=False)
322
322
  eigenvalues, eigenvectors = np.linalg.eigh(cov)
323
323
  idx = np.argsort(eigenvalues)[::-1]
324
-
325
324
  eigenvalues = eigenvalues[idx]
326
- energy = np.cumsum(eigenvalues) / np.sum(eigenvalues)
327
- k = np.searchsorted(energy, 0.90) + 1
328
325
 
329
- K_G = 1.0 / (1.0 + k)
330
- mag_G = 1.0 / (1.0 + K_G)
326
+ energy = np.cumsum(eigenvalues) / np.sum(eigenvalues)
327
+ energy_sigmoid_growth = 1.0 / (1.0 + np.exp(-energy))
328
+ energy_consistency = np.std(energy_sigmoid_growth)
329
+ k = np.searchsorted(energy, 0.90) + 1 # +1 converts 0-based index to count
331
330
 
332
331
  trA = k / (1.0 - anisotropy) + eps
333
- trB = (1/2 + mag_G) / (1.0 + trA**2)
334
- trC = (1/6 + K_G) / (trB**2 - 1.0)
332
+ trB = (1/2 + energy_consistency) / (1.0 + trA**2)
333
+ trC = (1/6 + AMR) / (1.0 - trB**2) + eps
335
334
 
336
335
  if np.isnan(trC) or np.isinf(trC):
337
- trC = anisotropy * (1.0 - np.std(x)) + eps
336
+ trC = anisotropy * (trB**2 - 1.0) + eps
337
+ if np.isnan(trC) or np.isinf(trC):
338
+ trC = (1.0 - AMR)
338
339
 
339
- floating_point = np.random.uniform(0, trC, size=X.shape)
340
+ min_val = min(trC, 0)
341
+ max_val = max(trC, 0)
342
+ floating_point = np.random.uniform(min_val, max_val, size=X.shape)
340
343
  return k, floating_point, structured_noise
341
344
 
342
345
 
@@ -406,23 +409,25 @@ class GeometricWeightShaping:
406
409
  k, floating_point, structured_noise = self.eigenvalue_encoder(x)
407
410
  AME = self.AME_Encoder(x)
408
411
  AMR = 1.0 / (1.0 + np.exp(-AME)) # abstract modelling rate
409
-
410
412
 
411
413
  spectral_similarity = self.spectral_similarity(x, floating_point, structured_noise)
412
414
 
413
415
  AEL = (0.3 + spectral_similarity + eps) * anisotropy
414
416
  scaled_anisotropy = anisotropy / (anisotropy + 1.0)
417
+
418
+ abstraction_efficiency = (1.0 + AEL) * (1.0 - AMR)
415
419
 
416
- efficient_distributed_energy = k + AEL * (1.0 - AMR)
417
- if np.isnan(efficient_distributed_energy) or np.isinf(efficient_distributed_energy):
418
- efficient_distributed_energy = (1 - AMR) + eps
419
-
420
- floating_context = rng.uniform(0, efficient_distributed_energy, size=(input_size, output_size))
421
- self.floating_context = floating_context
420
+ abstraction_efficiency = k + AEL * (1.0 - AMR)
421
+ if np.isnan(abstraction_efficiency) or np.isinf(abstraction_efficiency):
422
+ abstraction_efficiency = (1 - AMR) + eps
422
423
 
423
- return floating_context
424
+ abstract_context = rng.uniform(0, abstraction_efficiency, size=(input_size, output_size))
425
+ return abstract_context
424
426
 
425
427
  def weight_shaping(self, x, type=None):
428
+ if np.isnan(x).any() or np.isinf(x).any():
429
+ x = np.nan_to_num(x, nan=0.0, posinf=1e99, neginf=-1e99)
430
+
426
431
  if isinstance(x, list):
427
432
  x = np.asarray(x)
428
433
 
@@ -432,11 +437,11 @@ class GeometricWeightShaping:
432
437
  if np.std(x) == 0:
433
438
  x = np.random.uniform(0, 1, size=x.shape)
434
439
 
435
- floating_context = self.abstract_weight_shaping(x)
436
- if np.isnan(floating_context).any() or not np.isfinite(floating_context).any():
437
- floating_context = np.ones_like(x)
440
+ abstract_context = self.abstract_weight_shaping(x)
441
+ if np.isnan(abstract_context).any() or not np.isfinite(abstract_context).any():
442
+ abstract_context = np.ones_like(x)
438
443
 
439
- return floating_context
444
+ return abstract_context
440
445
 
441
446
 
442
447
 
@@ -13897,14 +13902,12 @@ async def example_async_with_result_queue(pipeline, test_titles, label_map, rule
13897
13902
  # Example using the proper result queue
13898
13903
 
13899
13904
  agent = CohesiveAgentDeployment(
13900
- pipeline=pipeline,
13901
13905
  memory_name="test_agent",
13902
13906
  filename=filename,
13903
13907
  target_title=title_name,
13904
13908
  label_name=label_name,
13905
13909
  security_level="DEVELOPMENT",
13906
- enable_peers=False,
13907
- peer_discovery_port=5558
13910
+ enable_peers=False
13908
13911
  )
13909
13912
 
13910
13913
  await agent.start()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: AbstractIntegratedModule
3
- Version: 0.3.8
3
+ Version: 0.4.0
4
4
  Summary: Framework for Advanced Integrated Non-LLM AI Module library - Backend Framework for Non-LLM AI Agent Framework
5
5
  Author: Micro-Novelty
6
6
  Author-email: hernikpuspita5@gmail.com
@@ -42,7 +42,7 @@ https://github.com/Micro-Novelty/IntegratedPipeline-Specialized-Non-LLM-AI-Agent
42
42
  #### Note: The README here you are reading is a direct copy from my README Repository, to download the necessary files, you can visit my Repository with the provided link above.
43
43
 
44
44
  ### Library Short Description:
45
- - Development Stage: Beta, 0.3.8.
45
+ - Development Stage: Beta, 0.4.0.
46
46
  - Maintainer: Micro-Novelty.
47
47
  - library Source-Code is Open-sourced on github.
48
48
  - Purpose: Specifically Designed for providing Non-LLM AI Agent Framework for edge Devices, Optimized for ARM64 architecture.
@@ -66,7 +66,7 @@ https://github.com/Micro-Novelty/IntegratedPipeline-Specialized-Non-LLM-AI-Agent
66
66
  -----
67
67
 
68
68
  <img width="1280" height="600" alt="WhatsApp Image 2026-05-27 at 07 16 32" src="https://github.com/user-attachments/assets/4b58a556-45a3-419b-96fd-9c1b76cac574" />
69
-
69
+ [![PyPI Downloads](https://static.pepy.tech/personalized-badge/abstractintegratedmodule?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads)](https://pepy.tech/projects/abstractintegratedmodule)
70
70
 
71
71
  ## [+] MANN Intro
72
72
  [=] Memory augmented Neural network (MANN) is a neural network architecture coupled with an external, dynamic memory module, allowing it to store, retrieve, and update information similarly to a computer's RAM. Unlike traditional networks that store knowledge only in weight parameters, MANNs excel at fast learning, long-term dependency handling, and episodic recall, In IntegratedPipeline, Its memory is stored in a custom database inside your local machine, then later used for memory retrieval, transfered to the AI Dictionary where it can finnaly recall its memory when input condition matched with memory.
@@ -10,7 +10,7 @@ https://github.com/Micro-Novelty/IntegratedPipeline-Specialized-Non-LLM-AI-Agent
10
10
  #### Note: The README here you are reading is a direct copy from my README Repository, to download the necessary files, you can visit my Repository with the provided link above.
11
11
 
12
12
  ### Library Short Description:
13
- - Development Stage: Beta, 0.3.8.
13
+ - Development Stage: Beta, 0.4.0.
14
14
  - Maintainer: Micro-Novelty.
15
15
  - library Source-Code is Open-sourced on github.
16
16
  - Purpose: Specifically Designed for providing Non-LLM AI Agent Framework for edge Devices, Optimized for ARM64 architecture.
@@ -34,7 +34,7 @@ https://github.com/Micro-Novelty/IntegratedPipeline-Specialized-Non-LLM-AI-Agent
34
34
  -----
35
35
 
36
36
  <img width="1280" height="600" alt="WhatsApp Image 2026-05-27 at 07 16 32" src="https://github.com/user-attachments/assets/4b58a556-45a3-419b-96fd-9c1b76cac574" />
37
-
37
+ [![PyPI Downloads](https://static.pepy.tech/personalized-badge/abstractintegratedmodule?period=total&units=INTERNATIONAL_SYSTEM&left_color=BLACK&right_color=GREEN&left_text=downloads)](https://pepy.tech/projects/abstractintegratedmodule)
38
38
 
39
39
  ## [+] MANN Intro
40
40
  [=] Memory augmented Neural network (MANN) is a neural network architecture coupled with an external, dynamic memory module, allowing it to store, retrieve, and update information similarly to a computer's RAM. Unlike traditional networks that store knowledge only in weight parameters, MANNs excel at fast learning, long-term dependency handling, and episodic recall, In IntegratedPipeline, Its memory is stored in a custom database inside your local machine, then later used for memory retrieval, transfered to the AI Dictionary where it can finnaly recall its memory when input condition matched with memory.
@@ -8,7 +8,7 @@ class BinaryDistribution(Distribution):
8
8
 
9
9
  setup(
10
10
  name="AbstractIntegratedModule",
11
- version="0.3.8",
11
+ version="0.4.0",
12
12
  description="Framework for Advanced Integrated Non-LLM AI Module library - Backend Framework for Non-LLM AI Agent Framework",
13
13
  long_description=open("README.md", encoding="utf-8").read(),
14
14
  long_description_content_type="text/markdown",