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
302e8c2c
Commit
302e8c2c
authored
Sep 15, 2017
by
Dr.李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update example
parent
d62ce564
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
sqlengine.py
alphamind/data/engines/sqlengine.py
+1
-1
sample_strategy.json
alphamind/strategy/sample_strategy.json
+1
-1
strategy.py
alphamind/strategy/strategy.py
+4
-4
No files found.
alphamind/data/engines/sqlengine.py
View file @
302e8c2c
...
@@ -284,7 +284,7 @@ class SqlEngine(object):
...
@@ -284,7 +284,7 @@ class SqlEngine(object):
transformer
=
Transformer
(
factors
)
transformer
=
Transformer
(
factors
)
dependency
=
transformer
.
dependency
dependency
=
transformer
.
dependency
factor_cols
=
_map_factors
(
dependency
)
factor_cols
=
_map_factors
(
dependency
,
factor_tables
)
cond
=
universe
.
query_range
(
start_date
,
end_date
,
dates
)
cond
=
universe
.
query_range
(
start_date
,
end_date
,
dates
)
...
...
alphamind/strategy/sample_strategy.json
View file @
302e8c2c
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
"fit_intercept"
:
false
"fit_intercept"
:
false
},
},
"freq"
:
"
2w
"
,
"freq"
:
"
1d
"
,
"batch"
:
4
,
"batch"
:
4
,
"warm_start"
:
0
,
"warm_start"
:
0
,
"universe"
:
[
"zz500"
,
[
"zz500"
]],
"universe"
:
[
"zz500"
,
[
"zz500"
]],
...
...
alphamind/strategy/strategy.py
View file @
302e8c2c
...
@@ -168,7 +168,7 @@ if __name__ == '__main__':
...
@@ -168,7 +168,7 @@ if __name__ == '__main__':
dates
=
strategy
.
cached_dates
()
dates
=
strategy
.
cached_dates
()
print
(
dates
)
print
(
dates
)
for
date
in
dates
:
#
for date in dates:
strategy
.
model_train
(
date
)
#
strategy.model_train(date)
prediction
=
strategy
.
model_predict
(
date
)
#
prediction = strategy.model_predict(date)
print
(
date
)
#
print(date)
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