From 8fe3be8c057275d8bceb11c028b5ab6e4e7f77a3 Mon Sep 17 00:00:00 2001 From: Khurshed Fitter Date: Fri, 11 Sep 2020 01:12:53 +0530 Subject: [PATCH] Adding missing np.sin() in In[5] --- machine_learning/custom_feature_map.ipynb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/machine_learning/custom_feature_map.ipynb b/machine_learning/custom_feature_map.ipynb index 73b870d..2e07ddf 100644 --- a/machine_learning/custom_feature_map.ipynb +++ b/machine_learning/custom_feature_map.ipynb @@ -231,7 +231,7 @@ " Returns:\n", " double: the mapped value\n", " \"\"\"\n", - " coeff = x[0] if len(x) == 1 else functools.reduce(lambda m, n: m * n, np.pi - x)\n", + " coeff = x[0] if len(x) == 1 else functools.reduce(lambda m, n: m * n, np.sin(np.pi - x))\n", " return coeff" ] }, @@ -509,7 +509,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.4" + "version": "3.7.6" } }, "nbformat": 4,