Skip to content

Commit

Permalink
fixed issue: Missing invocation of np.sin in custom_feature_map.ipynb q…
Browse files Browse the repository at this point in the history
  • Loading branch information
Vibhanshu17 committed Aug 24, 2024
1 parent 51cb790 commit 897d9bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machine_learning/custom_feature_map.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
},
Expand Down

0 comments on commit 897d9bf

Please sign in to comment.