Spaces:
Sleeping
Sleeping
Update codex/formulas.py
Browse files- codex/formulas.py +2 -10
codex/formulas.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
# Author: Liam Grinstead
|
| 2 |
-
# RFT-native scoring wrapped in Formula class
|
| 3 |
|
| 4 |
from math import exp
|
| 5 |
|
|
@@ -30,18 +30,10 @@ class Formula:
|
|
| 30 |
return round(score, 4)
|
| 31 |
|
| 32 |
GVU_FORMULAS = {
|
| 33 |
-
"Formula_20": Formula(
|
| 34 |
-
"−τ_eff / (τ_c + 19/20) ⋅ P_standard ⋅ τ_eff ⋅ ℯ ⋅ |grad_R_O − grad_T_P| / GVU"
|
| 35 |
-
)
|
| 36 |
}
|
| 37 |
|
| 38 |
def rft_invariants(agent: dict) -> dict:
|
| 39 |
overlay = agent.get("collapse_overlay", {})
|
| 40 |
tier = agent.get("tier", "Tier_1")
|
| 41 |
tier_level = int(tier.split("_")[1]) if "_" in tier else 1
|
| 42 |
-
return {
|
| 43 |
-
"tau_eff": overlay.get("tau_eff", 1.0),
|
| 44 |
-
"beta_band": overlay.get("beta_band", 0.5),
|
| 45 |
-
"operator_count": len(agent.get("symbolic_operators", [])),
|
| 46 |
-
"tier_level": tier_level,
|
| 47 |
-
}
|
|
|
|
| 1 |
# Author: Liam Grinstead
|
| 2 |
+
# RFT-native scoring wrapped in Formula class
|
| 3 |
|
| 4 |
from math import exp
|
| 5 |
|
|
|
|
| 30 |
return round(score, 4)
|
| 31 |
|
| 32 |
GVU_FORMULAS = {
|
| 33 |
+
"Formula_20": Formula("−τ_eff / (τ_c + 19/20) ⋅ P_standard ⋅ τ_eff ⋅ ℯ ⋅ |grad_R_O − grad_T_P| / GVU")
|
|
|
|
|
|
|
| 34 |
}
|
| 35 |
|
| 36 |
def rft_invariants(agent: dict) -> dict:
|
| 37 |
overlay = agent.get("collapse_overlay", {})
|
| 38 |
tier = agent.get("tier", "Tier_1")
|
| 39 |
tier_level = int(tier.split("_")[1]) if "_" in tier else 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|