fix bug with lightgbm and colons
This commit is contained in:
parent
d721b50230
commit
db942321ad
@ -1153,6 +1153,7 @@ class FreqaiDataKitchen:
|
|||||||
pairs = self.freqai_config["feature_parameters"].get("include_corr_pairlist", [])
|
pairs = self.freqai_config["feature_parameters"].get("include_corr_pairlist", [])
|
||||||
|
|
||||||
for pair in pairs:
|
for pair in pairs:
|
||||||
|
pair = pair.replace(':', '') # lightgbm doesnt like colons
|
||||||
valid_strs = [f"%-{pair}", f"%{pair}", f"%_{pair}"]
|
valid_strs = [f"%-{pair}", f"%{pair}", f"%_{pair}"]
|
||||||
pair_cols = [col for col in dataframe.columns if
|
pair_cols = [col for col in dataframe.columns if
|
||||||
any(substr in col for substr in valid_strs)]
|
any(substr in col for substr in valid_strs)]
|
||||||
|
Loading…
Reference in New Issue
Block a user