Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
F
fund_report
Project
Project
Details
Activity
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
彭熊
fund_report
Commits
4d786890
Commit
4d786890
authored
Jan 22, 2021
by
赵杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
版本修改
parent
31a56c96
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
portfolio_diagnose.py
app/service/portfolio_diagnose.py
+2
-1
No files found.
app/service/portfolio_diagnose.py
View file @
4d786890
...
@@ -757,7 +757,7 @@ class PortfolioDiagnose(object):
...
@@ -757,7 +757,7 @@ class PortfolioDiagnose(object):
self
.
new_correlation
.
index
=
self
.
new_correlation
.
index
.
map
(
lambda
x
:
get_fund_name
(
x
)
.
values
[
0
][
0
])
self
.
new_correlation
.
index
=
self
.
new_correlation
.
index
.
map
(
lambda
x
:
get_fund_name
(
x
)
.
values
[
0
][
0
])
end4
=
time
.
time
()
end4
=
time
.
time
()
print
(
"模型计算一次时间:"
,
end4
-
end3
)
print
(
"模型计算一次时间:"
,
end4
-
start
)
# S = np.asmatrix(S)
# S = np.asmatrix(S)
# w_origin = np.asarray([i for i in w_origin.values()])
# w_origin = np.asarray([i for i in w_origin.values()])
# risk_target = np.asarray([1 / len(w_origin)] * len(w_origin))
# risk_target = np.asarray([1 / len(w_origin)] * len(w_origin))
...
@@ -1324,6 +1324,7 @@ class PortfolioDiagnose(object):
...
@@ -1324,6 +1324,7 @@ class PortfolioDiagnose(object):
return
result
return
result
except
Exception
as
e
:
except
Exception
as
e
:
repr
(
e
)
repr
(
e
)
raise
e
return
None
return
None
def
single_fund_radar
(
self
):
def
single_fund_radar
(
self
):
...
...
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