Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
alpha-mind
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dr.李
alpha-mind
Commits
0be347de
Commit
0be347de
authored
Nov 08, 2017
by
Dr.李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update models
parent
b9ec4835
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
api.py
alphamind/api.py
+4
-2
models.py
alphamind/data/dbmodel/models.py
+2
-0
data_preparing.py
alphamind/model/data_preparing.py
+1
-1
No files found.
alphamind/api.py
View file @
0be347de
...
...
@@ -43,9 +43,11 @@ def map_freq(freq):
elif
freq
==
'1w'
:
horizon
=
4
elif
freq
==
'2w'
:
horizon
=
8
horizon
=
9
elif
freq
==
'3w'
:
horizon
=
12
horizon
=
14
elif
freq
==
'4w'
:
horizon
=
19
elif
freq
==
'1d'
:
horizon
=
0
else
:
...
...
alphamind/data/dbmodel/models.py
View file @
0be347de
...
...
@@ -678,6 +678,8 @@ class Experimental(Base):
na
=
Column
(
Float
(
53
))
eps_q
=
Column
(
Float
(
53
))
roe_q
=
Column
(
Float
(
53
))
cfinc1_q
=
Column
(
Float
(
53
))
val_q
=
Column
(
Float
(
53
))
class
FactorMaster
(
Base
):
...
...
alphamind/model/data_preparing.py
View file @
0be347de
...
...
@@ -82,7 +82,7 @@ def prepare_data(engine: SqlEngine,
frequency
,
calendar
=
'china.sse'
,
dateRule
=
BizDayConventions
.
Following
,
dateGenerationRule
=
DateGeneration
.
Back
ward
)
dateGenerationRule
=
DateGeneration
.
For
ward
)
dates
=
[
d
.
strftime
(
'
%
Y-
%
m-
%
d'
)
for
d
in
dates
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment