-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_cdg.py
More file actions
51 lines (39 loc) · 1.71 KB
/
test_cdg.py
File metadata and controls
51 lines (39 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import os
import sys
# Add working directory to path if standard importing fails
sys.path.insert(0, os.path.abspath('c:\\AGI'))
import json
from universe import DifficultyLevel, Universe, TaskDomain
from council import Council
def test_full_pipeline():
print("Initializing AGI System...")
universe = Universe()
council = Council()
# Simulate cross-domain test
print("Running Epoch A (Spatial)...")
for _ in range(2):
task = universe.generate_task(DifficultyLevel.L1, domain=TaskDomain.A_SPATIAL)
for snap in council.solve(task):
pass # Exhaust generator
print("Running Epoch B (Topological)...")
for _ in range(2):
task = universe.generate_task(DifficultyLevel.L1, domain=TaskDomain.B_TOPOLOGICAL)
for snap in council.solve(task):
pass
print("Running Epoch C (Abstract - 0-shot transfer test)...")
for _ in range(2):
task = universe.generate_task(DifficultyLevel.L1, domain=TaskDomain.C_ABSTRACT)
for snap in council.solve(task):
pass
print("\n--- Telemetry Stats ---")
stats = council.stats()
print(f"Total solved: {stats['solved']} / {stats['total_episodes']}")
print(f"Latent Skills Discovered: {stats['skill_library_size']}")
print(f"Dictionary Ready: {stats['latent_dictionary']['is_ready']}")
meta = stats.get('meta_learner', {})
print(f"MetaLearner Total Updates: {meta.get('total_updates', 0)}")
if meta.get('total_updates', 0) > 0:
print("MetaLearner successfully updated priors.")
print("System verified operational.")
if __name__ == "__main__":
test_full_pipeline()