Update app.py
Browse files
app.py
CHANGED
|
@@ -1265,8 +1265,13 @@ class HyperbolicNavigator:
|
|
| 1265 |
}
|
| 1266 |
|
| 1267 |
self.gravity_wells = [] # List of (cell_id, strength)
|
|
|
|
| 1268 |
self.cell_stability = defaultdict(lambda: 1.0) # 1.0 = stable, 0.0 = chaotic
|
| 1269 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1270 |
# --- RECURSIVE PROJECTION ---
|
| 1271 |
self.recursive_momentum = 0.85
|
| 1272 |
self.current_psyche_coord = torch.zeros(dimension, device=self.device)
|
|
@@ -1323,7 +1328,7 @@ class HyperbolicNavigator:
|
|
| 1323 |
hooks.append(h)
|
| 1324 |
|
| 1325 |
return hooks
|
| 1326 |
-
|
| 1327 |
|
| 1328 |
def init_model_constellation(self, agents_dict):
|
| 1329 |
# Maps all available discourse agents to the Poincaré ball based on their weights.
|
|
|
|
| 1265 |
}
|
| 1266 |
|
| 1267 |
self.gravity_wells = [] # List of (cell_id, strength)
|
| 1268 |
+
|
| 1269 |
self.cell_stability = defaultdict(lambda: 1.0) # 1.0 = stable, 0.0 = chaotic
|
| 1270 |
|
| 1271 |
+
# --- CONSTELLATIONS ---
|
| 1272 |
+
self.model_constellation = {} # Map of AgentName -> HyperbolicCoordinate
|
| 1273 |
+
self.layer_constellation = {} # Map of LayerIndex -> HyperbolicCoordinate
|
| 1274 |
+
|
| 1275 |
# --- RECURSIVE PROJECTION ---
|
| 1276 |
self.recursive_momentum = 0.85
|
| 1277 |
self.current_psyche_coord = torch.zeros(dimension, device=self.device)
|
|
|
|
| 1328 |
hooks.append(h)
|
| 1329 |
|
| 1330 |
return hooks
|
| 1331 |
+
return hooks
|
| 1332 |
|
| 1333 |
def init_model_constellation(self, agents_dict):
|
| 1334 |
# Maps all available discourse agents to the Poincaré ball based on their weights.
|