Commit 884ccda2 authored by Dr.李's avatar Dr.李

clean up codes

parent e9127cd5
......@@ -209,12 +209,15 @@ def fetch_data_package(engine: SqlEngine,
return_df['industry'] = train_x['industry']
return_df['industry_code'] = train_x['industry_code']
return_df['isOpen'] = train_x['isOpen']
if neutralized_risk:
for i, name in enumerate(neutralized_risk):
return_df.loc[:, name] = risk_exp[:, i]
alpha_logger.info("Loading data is finished")
train_x_buckets, train_y_buckets, predict_x_buckets, predict_y_buckets = batch_processing(x_values,
train_x_buckets, train_y_buckets, predict_x_buckets, predict_y_buckets = batch_processing(
x_values,
y_values,
dates,
date_label,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment