ensure raw features match when PCA is employed

This commit is contained in:
robcaulk
2022-10-01 13:14:59 +02:00
parent cdc01a0781
commit f2b875483f
2 changed files with 5 additions and 12 deletions

View File

@@ -1,6 +1,5 @@
import copy
import logging
import re
import shutil
from datetime import datetime, timezone
from math import cos, sin
@@ -882,9 +881,6 @@ class FreqaiDataKitchen:
"""
column_names = dataframe.columns
features = [c for c in column_names if "%" in c]
pca_features = [c for c in column_names if re.search(r"^PC\d+$", c)]
if not features and pca_features:
features = pca_features
if not features:
raise OperationalException("Could not find any features!")