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
893c28c2
Commit
893c28c2
authored
Nov 28, 2020
by
Dr.李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
REFACTOR: disable 2 tables
parent
5de3e515
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
Dockerfile
Dockerfile
+10
-6
__init__.py
alphamind/data/dbmodel/models/__init__.py
+3
-3
No files found.
Dockerfile
View file @
893c28c2
...
...
@@ -2,8 +2,14 @@ FROM wegamekinglc/python:3.7-slim-stretch-aliyun
LABEL
maintainer = "scrappedprince.li@gmail.com"
RUN
apt-get update
&&
apt-get
install
git cmake build-essential gfortran default-libmysqlclient-dev
-y
COPY
./alphamind /alphamind
COPY
./notebooks /notebooks
WORKDIR
/
COPY
./requirements.txt /requirements.txt
RUN
pip
install
numpy
==
1.19.1
-i
https://pypi.douban.com/simple
RUN
pip
install
-r
/requirements.txt
-i
https://pypi.douban.com/simple
RUN
pip
install
finance-python>
=
0.8.1
-i
https://pypi.douban.com/simple
COPY
./alphamind/pfopt /alphamind/pfopt
WORKDIR
/alphamind/pfopt
RUN
export
BUILD_TEST
=
OFF
...
...
@@ -11,10 +17,8 @@ RUN export REDIRECT=$1
RUN
bash ./build_linux.sh
WORKDIR
/
COPY
./requirements.txt /requirements.txt
RUN
pip
install
numpy
==
1.19.1
-i
https://pypi.douban.com/simple
RUN
pip
install
-r
/requirements.txt
-i
https://pypi.douban.com/simple
RUN
pip
install
finance-python>
=
0.8.1
-i
https://pypi.douban.com/simple
COPY
./alphamind /alphamind
COPY
./notebooks /notebooks
COPY
./setup.py /setup.py
COPY
./setup.cfg /setup.cfg
...
...
alphamind/data/dbmodel/models/__init__.py
View file @
893c28c2
...
...
@@ -22,10 +22,10 @@ if "DB_VENDOR" in os.environ and os.environ["DB_VENDOR"].lower() == "rl":
from
alphamind.data.dbmodel.models.models_rl
import
IndexWeight
from
alphamind.data.dbmodel.models.models_rl
import
FactorMomentum
from
alphamind.data.dbmodel.models.models_rl
import
FactorValuationEstimation
from
alphamind.data.dbmodel.models.models_rl
import
FactorVolatilityValue
#
from alphamind.data.dbmodel.models.models_rl import FactorValuationEstimation
#
from alphamind.data.dbmodel.models.models_rl import FactorVolatilityValue
factor_tables
=
[
Market
,
RiskExposure
,
FactorMomentum
,
FactorValuationEstimation
,
FactorVolatilityValue
]
factor_tables
=
[
Market
,
RiskExposure
,
FactorMomentum
]
else
:
from
alphamind.data.dbmodel.models.models
import
Market
from
alphamind.data.dbmodel.models.models
import
IndexMarket
...
...
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