Commit 302e8c2c authored by Dr.李's avatar Dr.李

update example

parent d62ce564
......@@ -284,7 +284,7 @@ class SqlEngine(object):
transformer = Transformer(factors)
dependency = transformer.dependency
factor_cols = _map_factors(dependency)
factor_cols = _map_factors(dependency, factor_tables)
cond = universe.query_range(start_date, end_date, dates)
......
......@@ -17,7 +17,7 @@
"fit_intercept": false
},
"freq": "2w",
"freq": "1d",
"batch": 4,
"warm_start": 0,
"universe": ["zz500", ["zz500"]],
......
......@@ -168,7 +168,7 @@ if __name__ == '__main__':
dates = strategy.cached_dates()
print(dates)
for date in dates:
strategy.model_train(date)
prediction = strategy.model_predict(date)
print(date)
# for date in dates:
# strategy.model_train(date)
# prediction = strategy.model_predict(date)
# print(date)
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