From ee23682266ba266501f30416d08e580f804d62c5 Mon Sep 17 00:00:00 2001 From: Emre Ahmetcik <ahmetcik@fhi-berlin.mpg.de> Date: Wed, 8 Aug 2018 10:28:53 +0200 Subject: [PATCH] small changes --- hands-on/hands-on-tutorial.bkr | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/hands-on/hands-on-tutorial.bkr b/hands-on/hands-on-tutorial.bkr index 0161068..a009889 100644 --- a/hands-on/hands-on-tutorial.bkr +++ b/hands-on/hands-on-tutorial.bkr @@ -1616,6 +1616,19 @@ "lineCount": 9, "tags": "lambda_cell" }, + { + "id": "markdownXXp8Xd", + "type": "markdown", + "body": [ + "Hint:", + "Compare these results to the L0 results you have obtained before from the same feature space, copied and pasted in here:<br>", + "\"Number of total features generated: 99 <br>", + " features: 99; 1D RMSE: 0.296667831742 best features: ['(r_p(A)+r_d(B))'] <br>", + " features: 99; 2D RMSE: 0.194137965466 best features: ['(r_s(B)+r_p(A))', '(r_s(B)+r_p(A))^2'] <br>", + " features: 99; 3D RMSE: 0.170545556349 best features: ['(r_s(B)+r_p(A))', '(r_s(B)+r_p(A))^2', 'exp(r_s(B)+r_p(A))']\"" + ], + "evaluatorReader": false + }, { "id": "section0K9XU9", "type": "section", @@ -3924,7 +3937,8 @@ "", "Des, D_selected, overlap = sis.get_results()[-1]", "print \"Descriptors: %s \\nNumber of samples in overlap regions: %s\\n\" %(Des, overlap)" - ] + ], + "hidden": true }, "output": { "state": {}, @@ -3935,7 +3949,7 @@ "dataresult": "\nprint Des\nc =0\ncolors = ['r','b', 'g', 'm', 'k']\nfor s, stru_class in enumerate(P):\n color = colors[s]\n d = []\n for mat in stru_class:\n x,y = D[c]\n d.append([x,y])\n plt.plot(x,y, '%ss'%color)\n c+=1 \n points = np.array(d)\n if len(points)>2:\n hull = ConvexHull(points)\n for simplex in hull.simplices:\n plt.plot(points[simplex, 0], points[simplex, 1], '%s--' %color)\n #plt.plot(points[hull.vertices,0], points[hull.vertices,1], '%s--' %color, lw=2)\n else:\n plt.plot(points[:,0],points[:,1], '%s--' %color)\nprint overlap\n" }, "evaluatorReader": true, - "lineCount": 36, + "lineCount": 35, "tags": "calc_SIS_cell" }, { -- GitLab