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

clean up codes

parent e9127cd5
...@@ -209,19 +209,22 @@ def fetch_data_package(engine: SqlEngine, ...@@ -209,19 +209,22 @@ def fetch_data_package(engine: SqlEngine,
return_df['industry'] = train_x['industry'] return_df['industry'] = train_x['industry']
return_df['industry_code'] = train_x['industry_code'] return_df['industry_code'] = train_x['industry_code']
return_df['isOpen'] = train_x['isOpen'] return_df['isOpen'] = train_x['isOpen']
for i, name in enumerate(neutralized_risk):
return_df.loc[:, name] = risk_exp[:, i] if neutralized_risk:
for i, name in enumerate(neutralized_risk):
return_df.loc[:, name] = risk_exp[:, i]
alpha_logger.info("Loading data is finished") 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(
y_values, x_values,
dates, y_values,
date_label, dates,
batch, date_label,
risk_exp, batch,
pre_process, risk_exp,
post_process) pre_process,
post_process)
alpha_logger.info("Data processing is finished") alpha_logger.info("Data processing is finished")
......
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