fix(extractor): add underscore variants to impact_horizon normalizer
Model returns long_term/short_term/medium_term instead of hyphenated versions
This commit is contained in:
@@ -229,15 +229,20 @@ _VALID_CATALYSTS = frozenset({
|
|||||||
|
|
||||||
_HORIZON_MAP: dict[str, str] = {
|
_HORIZON_MAP: dict[str, str] = {
|
||||||
"long-term": "90d_plus",
|
"long-term": "90d_plus",
|
||||||
|
"long_term": "90d_plus",
|
||||||
"long": "90d_plus",
|
"long": "90d_plus",
|
||||||
"longterm": "90d_plus",
|
"longterm": "90d_plus",
|
||||||
"medium-term": "30d_90d",
|
"medium-term": "30d_90d",
|
||||||
|
"medium_term": "1d_30d",
|
||||||
"medium": "1d_30d",
|
"medium": "1d_30d",
|
||||||
"short-term": "1d_7d",
|
"short-term": "1d_7d",
|
||||||
|
"short_term": "1d",
|
||||||
"short": "1d",
|
"short": "1d",
|
||||||
"immediate": "intraday",
|
"immediate": "intraday",
|
||||||
"near-term": "1d_7d",
|
"near-term": "1d_7d",
|
||||||
|
"near_term": "1d_7d",
|
||||||
"mid-term": "1d_30d",
|
"mid-term": "1d_30d",
|
||||||
|
"mid_term": "1d_30d",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user