Skip to content

Commit

Permalink
notebook cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Schmelzer committed Oct 12, 2024
1 parent cce6e1d commit 0e98fb8
Showing 1 changed file with 0 additions and 98 deletions.
98 changes: 0 additions & 98 deletions book/docs/notebooks/cla.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2144,104 +2144,6 @@
"f1.plot()"
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "2e64be67-5453-440a-b381-011cf70caec8",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Frontier(mean=array([-0.49573693, 0.53221249, 0.32987301, -0.49847503, 1.70576634,\n",
" -1.0388544 , 0.62206046, 0.53527284, 2.79345256, 0.51934769]), covariance=array([[ 6.50958602, 2.02842217, 2.38754228, -4.82521208, -0.29068144,\n",
" 0.04340674, 3.78967728, -2.4422233 , 4.15656017, -1.65315241],\n",
" [ 2.02842217, 4.58286167, -0.43004897, 0.72938758, 0.76690975,\n",
" -0.80362422, 2.16932366, -0.61726788, 1.19443384, -1.29044843],\n",
" [ 2.38754228, -0.43004897, 7.11010296, -2.09980515, 5.00120921,\n",
" 1.47980965, 3.22035154, -0.73738006, -0.15290737, -4.84591474],\n",
" [-4.82521208, 0.72938758, -2.09980515, 14.51003064, 0.64102472,\n",
" 1.60277944, -5.80570313, 2.10073334, -7.51346301, 2.76169381],\n",
" [-0.29068144, 0.76690975, 5.00120921, 0.64102472, 12.32990091,\n",
" 4.18075057, 6.63342734, 0.48791522, -0.88599655, -5.21021246],\n",
" [ 0.04340674, -0.80362422, 1.47980965, 1.60277944, 4.18075057,\n",
" 11.81301934, 5.88090554, 0.7562103 , -3.2420221 , 1.1632224 ],\n",
" [ 3.78967728, 2.16932366, 3.22035154, -5.80570313, 6.63342734,\n",
" 5.88090554, 11.85856617, 0.63806477, 2.2066811 , -3.73689575],\n",
" [-2.4422233 , -0.61726788, -0.73738006, 2.10073334, 0.48791522,\n",
" 0.7562103 , 0.63806477, 8.03456365, -1.82264944, 4.18817536],\n",
" [ 4.15656017, 1.19443384, -0.15290737, -7.51346301, -0.88599655,\n",
" -3.2420221 , 2.2066811 , -1.82264944, 6.69482132, -1.06224065],\n",
" [-1.65315241, -1.29044843, -4.84591474, 2.76169381, -5.21021246,\n",
" 1.1632224 , -3.73689575, 4.18817536, -1.06224065, 12.22630199]]), frontier=[FrontierPoint(weights=array([0., 0., 0., 0., 0., 0., 0., 0., 1., 0.])), FrontierPoint(weights=array([0., 0., 0., 0., 0., 0., 0., 0., 1., 0.])), FrontierPoint(weights=array([0. , 0. , 0. , 0. , 0.0925224, 0. ,\n",
" 0. , 0. , 0.9074776, 0. ])), FrontierPoint(weights=array([0. , 0. , 0. , 0. , 0.1850448, 0. ,\n",
" 0. , 0. , 0.8149552, 0. ])), FrontierPoint(weights=array([0. , 0. , 0. , 0.06554327, 0.16922814,\n",
" 0. , 0. , 0. , 0.7652286 , 0. ])), FrontierPoint(weights=array([0. , 0. , 0. , 0.13108653, 0.15341147,\n",
" 0. , 0. , 0. , 0.715502 , 0. ])), FrontierPoint(weights=array([0. , 0. , 0. , 0.14970464, 0.15104208,\n",
" 0. , 0. , 0. , 0.68613705, 0.01311624])), FrontierPoint(weights=array([0. , 0. , 0. , 0.16832274, 0.14867268,\n",
" 0. , 0. , 0. , 0.6567721 , 0.02623248])), FrontierPoint(weights=array([0. , 0. , 0. , 0.19248855, 0.13792978,\n",
" 0. , 0. , 0.02410559, 0.61234535, 0.03313073])), FrontierPoint(weights=array([0. , 0. , 0. , 0.21665437, 0.12718688,\n",
" 0. , 0. , 0.04821118, 0.5679186 , 0.04002897])), FrontierPoint(weights=array([0. , 0. , 0.03360464, 0.22046202, 0.10817144,\n",
" 0. , 0. , 0.05058369, 0.53970371, 0.04747448])), FrontierPoint(weights=array([0. , 0. , 0.06720929, 0.22426968, 0.089156 ,\n",
" 0. , 0. , 0.0529562 , 0.51148883, 0.05491999])), FrontierPoint(weights=array([0. , 0. , 0.10406728, 0.22979262, 0.04646556,\n",
" 0.03215434, 0. , 0.06023778, 0.47893974, 0.04834269])), FrontierPoint(weights=array([0. , 0. , 0.14092527, 0.23531555, 0.00377513,\n",
" 0.06430867, 0. , 0.06751935, 0.44639064, 0.04176539])), FrontierPoint(weights=array([0. , 0. , 0.14232365, 0.23582784, 0.00188756,\n",
" 0.06476461, 0.00121348, 0.06739659, 0.44473845, 0.04184781])), FrontierPoint(weights=array([0. , 0. , 0.14372204, 0.23634013, 0. ,\n",
" 0.06522054, 0.00242696, 0.06727383, 0.44308626, 0.04193024])), FrontierPoint(weights=array([0. , 0. , 0.15272317, 0.23535711, 0. ,\n",
" 0.0707115 , 0.00574031, 0.06426913, 0.42237813, 0.04882065])), FrontierPoint(weights=array([0. , 0. , 0.1617243 , 0.23437409, 0. ,\n",
" 0.07620245, 0.00905366, 0.06126443, 0.40167 , 0.05571107])), FrontierPoint(weights=array([0. , 0.00663218, 0.16407597, 0.23073813, 0. ,\n",
" 0.07909273, 0.00621775, 0.06164281, 0.39464394, 0.05695649])), FrontierPoint(weights=array([0. , 0.01326437, 0.16642764, 0.22710217, 0. ,\n",
" 0.08198302, 0.00338184, 0.06202118, 0.38761788, 0.05820191]))])"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"f1.interpolate(3)"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "a8a47d72-63bc-46e1-a8e5-133d9b639cf6",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[[0. 0. 0. 0. 0. 0.\n",
" 0. 0. 1. 0. ]\n",
" [0. 0. 0. 0. 0. 0.\n",
" 0. 0. 1. 0. ]\n",
" [0. 0. 0. 0. 0.1850448 0.\n",
" 0. 0. 0.8149552 0. ]\n",
" [0. 0. 0. 0.13108653 0.15341147 0.\n",
" 0. 0. 0.715502 0. ]\n",
" [0. 0. 0. 0.16832274 0.14867268 0.\n",
" 0. 0. 0.6567721 0.02623248]\n",
" [0. 0. 0. 0.21665437 0.12718688 0.\n",
" 0. 0.04821118 0.5679186 0.04002897]\n",
" [0. 0. 0.06720929 0.22426968 0.089156 0.\n",
" 0. 0.0529562 0.51148883 0.05491999]\n",
" [0. 0. 0.14092527 0.23531555 0.00377513 0.06430867\n",
" 0. 0.06751935 0.44639064 0.04176539]\n",
" [0. 0. 0.14372204 0.23634013 0. 0.06522054\n",
" 0.00242696 0.06727383 0.44308626 0.04193024]\n",
" [0. 0. 0.1617243 0.23437409 0. 0.07620245\n",
" 0.00905366 0.06126443 0.40167 0.05571107]\n",
" [0. 0.01326437 0.16642764 0.22710217 0. 0.08198302\n",
" 0.00338184 0.06202118 0.38761788 0.05820191]]\n"
]
}
],
"source": [
"print(f1.weights)"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit 0e98fb8

Please sign in to comment.