Commit 0be347de authored by Dr.李's avatar Dr.李

update models

parent b9ec4835
...@@ -43,9 +43,11 @@ def map_freq(freq): ...@@ -43,9 +43,11 @@ def map_freq(freq):
elif freq == '1w': elif freq == '1w':
horizon = 4 horizon = 4
elif freq == '2w': elif freq == '2w':
horizon = 8 horizon = 9
elif freq == '3w': elif freq == '3w':
horizon = 12 horizon = 14
elif freq == '4w':
horizon = 19
elif freq == '1d': elif freq == '1d':
horizon = 0 horizon = 0
else: else:
......
...@@ -678,6 +678,8 @@ class Experimental(Base): ...@@ -678,6 +678,8 @@ class Experimental(Base):
na = Column(Float(53)) na = Column(Float(53))
eps_q = Column(Float(53)) eps_q = Column(Float(53))
roe_q = Column(Float(53)) roe_q = Column(Float(53))
cfinc1_q = Column(Float(53))
val_q = Column(Float(53))
class FactorMaster(Base): class FactorMaster(Base):
......
...@@ -82,7 +82,7 @@ def prepare_data(engine: SqlEngine, ...@@ -82,7 +82,7 @@ def prepare_data(engine: SqlEngine,
frequency, frequency,
calendar='china.sse', calendar='china.sse',
dateRule=BizDayConventions.Following, dateRule=BizDayConventions.Following,
dateGenerationRule=DateGeneration.Backward) dateGenerationRule=DateGeneration.Forward)
dates = [d.strftime('%Y-%m-%d') for d in dates] dates = [d.strftime('%Y-%m-%d') for d in dates]
......
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