mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-27 23:47:46 +00:00
fix: update new feature engineering code format (#272)
* update new feature engineering code format * fix CI
This commit is contained in:
@@ -2,12 +2,14 @@ import os
|
||||
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
from factor import feat_eng
|
||||
from factor import feature_engineering_cls
|
||||
|
||||
if os.path.exists("valid.pkl"):
|
||||
valid_df = pd.read_pickle("valid.pkl")
|
||||
else:
|
||||
raise FileNotFoundError("No valid data found.")
|
||||
|
||||
new_feat = feat_eng(valid_df)
|
||||
cls = feature_engineering_cls()
|
||||
cls.fit(valid_df)
|
||||
new_feat = cls.transform(valid_df)
|
||||
new_feat.to_hdf("result.h5", key="data", mode="w")
|
||||
|
||||
Reference in New Issue
Block a user