From 897d9bff883f8a6dee8efa411150fea2b66db05e Mon Sep 17 00:00:00 2001 From: Vibhanshu Gupta Date: Sat, 24 Aug 2024 15:40:26 +0530 Subject: [PATCH] fixed issue: Missing invocation of np.sin in custom_feature_map.ipynb #133 --- machine_learning/custom_feature_map.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/machine_learning/custom_feature_map.ipynb b/machine_learning/custom_feature_map.ipynb index 32c97781..8d7d336c 100644 --- a/machine_learning/custom_feature_map.ipynb +++ b/machine_learning/custom_feature_map.ipynb @@ -227,7 +227,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" ] },