Skip to content

Commit

Permalink
Change the sigmoid to Zigmoid
Browse files Browse the repository at this point in the history
  • Loading branch information
only4sim committed Dec 10, 2023
1 parent 0c03b96 commit 6cf2d39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/models/logistic_regression.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@
" let dotProduct = new Field(0);\n",
"\n",
" for (let i = 0; i < coefficients.length; i++) {\n",
" dotProduct = dotProduct.Add(coefficients[i].mul(input[i]));\n",
" dotProduct = dotProduct.add(coefficients[i].mul(input[i]));\n",
" }\n",
"\n",
" const z = dotProduct.Add(intercept);\n",
" return sigmoid(z);\n",
" const z = dotProduct.add(intercept);\n",
" return Zigmoid(z);\n",
" },\n",
" },\n",
"},\n",
Expand Down

0 comments on commit 6cf2d39

Please sign in to comment.