Commit 4d786890 authored by 赵杰's avatar 赵杰

版本修改

parent 31a56c96
...@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment