Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
R
robo-dividend
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
wenwen.tang
robo-dividend
Commits
da189405
Commit
da189405
authored
Jan 14, 2025
by
吕先亚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update conf
parent
8fd5709c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
reporter.py
ai/reporter.py
+5
-0
config-svrobo6.yml
config-svrobo6.yml
+4
-4
No files found.
ai/reporter.py
View file @
da189405
...
...
@@ -79,6 +79,8 @@ def get_RMSE(datas):
@return:
"""
datas
=
[
data
for
data
in
datas
if
data
.
get
(
'real outcome label'
)
is
not
None
]
if
not
datas
:
return
0
tags
=
{
v
:
k
for
k
,
v
in
LABEL_TAG
.
items
()}
return
(
sum
(
[(
tags
.
get
(
data
[
'real outcome label'
])
-
tags
.
get
(
data
[
'In 21 business days'
]))
**
2
for
data
in
datas
])
/
len
(
...
...
@@ -92,6 +94,8 @@ def get_RefRMSE(datas):
@return:
"""
datas
=
[
data
for
data
in
datas
if
data
.
get
(
'real outcome label'
)
is
not
None
]
if
not
datas
:
return
0
tags
=
{
v
:
k
for
k
,
v
in
LABEL_TAG
.
items
()}
return
(
sum
(
[(
tags
.
get
(
data
[
'real outcome label'
])
-
tags
.
get
(
data
[
'random variable label'
]))
**
2
for
data
in
...
...
@@ -114,6 +118,7 @@ def is_right(id, type, start, predict):
return
result
,
round
(
rtn
*
100
,
2
),
real
return
None
,
None
,
None
if
__name__
==
'__main__'
:
do_reporter2
()
# sync()
config-svrobo6.yml
View file @
da189405
...
...
@@ -30,11 +30,11 @@ py-jftech:
level
:
${LOG_LEVEL:INFO}
handlers
:
${LOG_HANDLERS:[ console ]}
database
:
host
:
${MYSQL_HOST:1
92.168.68.85
}
host
:
${MYSQL_HOST:1
06.14.56.221
}
port
:
${MYSQL_PORT:3306}
user
:
${MYSQL_USER:
root
}
password
:
${MYSQL_PWD:
changeit
}
dbname
:
${MYSQL_DBNAME:
jftech_robo
}
user
:
${MYSQL_USER:
ai_user
}
password
:
${MYSQL_PWD:
ai.predict*2025
}
dbname
:
${MYSQL_DBNAME:
ai_predict
}
injectable
:
names
:
backtest
:
robo_executor.BacktestExecutor
...
...
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