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
4944d755
Commit
4944d755
authored
Jan 23, 2018
by
Dr.李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
encode formulas
parent
43779306
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
api.py
alphamind/api.py
+2
-0
modelbase.py
alphamind/model/modelbase.py
+1
-1
No files found.
alphamind/api.py
View file @
4944d755
...
...
@@ -37,6 +37,7 @@ from alphamind.model import XGBTrainer
from
alphamind.model
import
load_model
from
alphamind.model.data_preparing
import
fetch_data_package
from
alphamind.model.data_preparing
import
fetch_train_phase
from
alphamind.model.data_preparing
import
fetch_predict_phase
from
alphamind.execution.naiveexecutor
import
NaiveExecutor
from
alphamind.execution.thresholdexecutor
import
ThresholdExecutor
...
...
@@ -67,6 +68,7 @@ __all__ = [
'factor_tables'
,
'fetch_data_package'
,
'fetch_train_phase'
,
'fetch_predict_phase'
,
'LinearRegression'
,
'LassoRegression'
,
'ConstLinearModel'
,
...
...
alphamind/model/modelbase.py
View file @
4944d755
...
...
@@ -55,7 +55,7 @@ class ModelBase(metaclass=abc.ABCMeta):
def
load
(
cls
,
model_desc
:
dict
):
obj_layout
=
cls
()
obj_layout
.
features
=
model_desc
[
'features'
]
obj_layout
.
formulas
=
model_desc
[
'formulas'
]
obj_layout
.
formulas
=
decode
(
model_desc
[
'formulas'
])
obj_layout
.
trained_time
=
model_desc
[
'trained_time'
]
obj_layout
.
impl
=
decode
(
model_desc
[
'desc'
])
return
obj_layout
...
...
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