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" ] },