cognitive-engine 0.2.0__tar.gz → 0.2.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.
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/PKG-INFO +9 -9
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/nlp/models.py +4 -4
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine.egg-info/PKG-INFO +9 -9
- cognitive_engine-0.2.2/cognitive_engine.egg-info/requires.txt +10 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/pyproject.toml +9 -9
- cognitive_engine-0.2.0/cognitive_engine.egg-info/requires.txt +0 -10
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/README.md +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/__init__.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/adapters/__init__.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/adapters/plastic_numeric_adapter.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/api/__init__.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/api/service.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/compression/__init__.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/compression/knowledge_compressor.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/compression/semantic_compressor_v2.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/config/__init__.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/config/loader.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/config/schema.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/consolidation/__init__.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/consolidation/engine.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/consolidation/engine_v2.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/context/__init__.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/context/long_context.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/core/__init__.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/core/builder.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/core/engine.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/core/engine_v2.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/core/registry.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/core/types.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/interfaces/__init__.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/interfaces/base.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/memory/__init__.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/memory/graph_memory.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/memory/hybrid_memory.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/memory/project_memory.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/memory/stores.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/memory/vector_store.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/models/__init__.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/models/stable_core.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/modules/__init__.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/modules/importance_evaluator.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/modules/input_processing.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/modules/semantic_understanding.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/nlp/__init__.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/nlp/trainer.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/replay/__init__.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/replay/buffer.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/routing/__init__.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/routing/dynamic_router.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/routing/learned_router.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/specialists/__init__.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/specialists/runtime.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/stability/__init__.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/stability/governor.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/training/__init__.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/training/online_trainer.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/utils/__init__.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/utils/numeric.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/utils/seeding.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/utils/telemetry.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/utils/text.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/utils/visualization.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine.egg-info/SOURCES.txt +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine.egg-info/dependency_links.txt +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine.egg-info/top_level.txt +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/setup.cfg +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/tests/test_engine_smoke.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/tests/test_engine_v2.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/tests/test_learned_router_v2.py +0 -0
- {cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/tests/test_numeric_training.py +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cognitive-engine
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Librería NLP basada en Arquitectura Cognitiva V2 (Aprendizaje Continuo y Memoria).
|
|
5
5
|
Author-email: bueormnew <dalusx64@gmail.com>
|
|
6
6
|
Requires-Python: >=3.12
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
|
-
Requires-Dist: matplotlib>=3.
|
|
9
|
-
Requires-Dist: networkx>=
|
|
10
|
-
Requires-Dist: numpy>=
|
|
11
|
-
Requires-Dist: python-docx>=
|
|
12
|
-
Requires-Dist: pyyaml>=
|
|
13
|
-
Requires-Dist: pytest>=
|
|
14
|
-
Requires-Dist: torch>=2.
|
|
15
|
-
Requires-Dist: tqdm>=4.
|
|
8
|
+
Requires-Dist: matplotlib>=3.5
|
|
9
|
+
Requires-Dist: networkx>=2.8
|
|
10
|
+
Requires-Dist: numpy>=1.22
|
|
11
|
+
Requires-Dist: python-docx>=0.8
|
|
12
|
+
Requires-Dist: pyyaml>=5.4
|
|
13
|
+
Requires-Dist: pytest>=7.0
|
|
14
|
+
Requires-Dist: torch>=2.0
|
|
15
|
+
Requires-Dist: tqdm>=4.60
|
|
16
16
|
Requires-Dist: transformers>=4.30.0
|
|
17
17
|
Requires-Dist: datasets>=2.14.0
|
|
18
18
|
|
|
@@ -31,8 +31,8 @@ class CognitiveModel:
|
|
|
31
31
|
config_dict = json.load(f)
|
|
32
32
|
|
|
33
33
|
# En un escenario real, cargaríamos el state_dict de los submodelos (StableCore, etc)
|
|
34
|
-
# Aquí reconstruimos el engine con la configuración
|
|
35
|
-
engine = EngineBuilder(
|
|
34
|
+
# Aquí reconstruimos el engine con la configuración por defecto
|
|
35
|
+
engine = EngineBuilder().build_v2()
|
|
36
36
|
|
|
37
37
|
# Simulamos la carga de pesos si existen
|
|
38
38
|
weights_path = path / "pytorch_model.bin"
|
|
@@ -74,7 +74,7 @@ class CognitiveTranslator(CognitiveModel):
|
|
|
74
74
|
"""
|
|
75
75
|
def __init__(self, engine=None, source_lang="en", target_lang="es"):
|
|
76
76
|
if engine is None:
|
|
77
|
-
engine = EngineBuilder(
|
|
77
|
+
engine = EngineBuilder().build_v2()
|
|
78
78
|
config_dict = {"source_lang": source_lang, "target_lang": target_lang, "task": "translation"}
|
|
79
79
|
super().__init__(engine, config_dict)
|
|
80
80
|
self.source_lang = source_lang
|
|
@@ -99,7 +99,7 @@ class CognitiveEncoder(CognitiveModel):
|
|
|
99
99
|
"""
|
|
100
100
|
def __init__(self, engine=None):
|
|
101
101
|
if engine is None:
|
|
102
|
-
engine = EngineBuilder(
|
|
102
|
+
engine = EngineBuilder().build_v2()
|
|
103
103
|
config_dict = {"task": "encoding"}
|
|
104
104
|
super().__init__(engine, config_dict)
|
|
105
105
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cognitive-engine
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.2
|
|
4
4
|
Summary: Librería NLP basada en Arquitectura Cognitiva V2 (Aprendizaje Continuo y Memoria).
|
|
5
5
|
Author-email: bueormnew <dalusx64@gmail.com>
|
|
6
6
|
Requires-Python: >=3.12
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
|
-
Requires-Dist: matplotlib>=3.
|
|
9
|
-
Requires-Dist: networkx>=
|
|
10
|
-
Requires-Dist: numpy>=
|
|
11
|
-
Requires-Dist: python-docx>=
|
|
12
|
-
Requires-Dist: pyyaml>=
|
|
13
|
-
Requires-Dist: pytest>=
|
|
14
|
-
Requires-Dist: torch>=2.
|
|
15
|
-
Requires-Dist: tqdm>=4.
|
|
8
|
+
Requires-Dist: matplotlib>=3.5
|
|
9
|
+
Requires-Dist: networkx>=2.8
|
|
10
|
+
Requires-Dist: numpy>=1.22
|
|
11
|
+
Requires-Dist: python-docx>=0.8
|
|
12
|
+
Requires-Dist: pyyaml>=5.4
|
|
13
|
+
Requires-Dist: pytest>=7.0
|
|
14
|
+
Requires-Dist: torch>=2.0
|
|
15
|
+
Requires-Dist: tqdm>=4.60
|
|
16
16
|
Requires-Dist: transformers>=4.30.0
|
|
17
17
|
Requires-Dist: datasets>=2.14.0
|
|
18
18
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "cognitive-engine"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.2"
|
|
4
4
|
description = "Librería NLP basada en Arquitectura Cognitiva V2 (Aprendizaje Continuo y Memoria)."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.12"
|
|
@@ -8,14 +8,14 @@ authors = [
|
|
|
8
8
|
{ name = "bueormnew", email = "dalusx64@gmail.com" }
|
|
9
9
|
]
|
|
10
10
|
dependencies = [
|
|
11
|
-
"matplotlib>=3.
|
|
12
|
-
"networkx>=
|
|
13
|
-
"numpy>=
|
|
14
|
-
"python-docx>=
|
|
15
|
-
"pyyaml>=
|
|
16
|
-
"pytest>=
|
|
17
|
-
"torch>=2.
|
|
18
|
-
"tqdm>=4.
|
|
11
|
+
"matplotlib>=3.5",
|
|
12
|
+
"networkx>=2.8",
|
|
13
|
+
"numpy>=1.22",
|
|
14
|
+
"python-docx>=0.8",
|
|
15
|
+
"pyyaml>=5.4",
|
|
16
|
+
"pytest>=7.0",
|
|
17
|
+
"torch>=2.0",
|
|
18
|
+
"tqdm>=4.60",
|
|
19
19
|
"transformers>=4.30.0",
|
|
20
20
|
"datasets>=2.14.0",
|
|
21
21
|
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/consolidation/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/consolidation/engine_v2.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/modules/importance_evaluator.py
RENAMED
|
File without changes
|
{cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/modules/input_processing.py
RENAMED
|
File without changes
|
{cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/modules/semantic_understanding.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/routing/dynamic_router.py
RENAMED
|
File without changes
|
{cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/routing/learned_router.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine/training/online_trainer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cognitive_engine-0.2.0 → cognitive_engine-0.2.2}/cognitive_engine.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|