Skip to content

Commit 8c6a0e7

Browse files
rkimanadrn
authored andcommitted
Fixed error in derivative in Full custom model section
1 parent 476f44f commit 8c6a0e7

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

tutorials/User-Defined-Model/User-Defined-Model.ipynb

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -769,9 +769,9 @@
769769
" \n",
770770
" @staticmethod\n",
771771
" def fit_deriv(x, a, b, c, d):\n",
772-
" d_a = np.sin(b*x+c)+d\n",
772+
" d_a = np.sin(b*x+c)\n",
773773
" d_b = a*np.cos(b*x+c)*x\n",
774-
" d_c = a*np.sin(b*x+c)\n",
774+
" d_c = a*np.cos(b*x+c)\n",
775775
" d_d = np.ones(x.shape)\n",
776776
" return [d_a, d_b, d_c, d_d]"
777777
]
@@ -882,14 +882,22 @@
882882
}
883883
],
884884
"metadata": {
885+
"kernelspec": {
886+
"display_name": "Python 3",
887+
"language": "python",
888+
"name": "python3"
889+
},
885890
"language_info": {
886891
"codemirror_mode": {
887-
"name": "ipython"
892+
"name": "ipython",
893+
"version": 3
888894
},
889895
"file_extension": ".py",
890896
"mimetype": "text/x-python",
891897
"name": "python",
892-
"nbconvert_exporter": "python"
898+
"nbconvert_exporter": "python",
899+
"pygments_lexer": "ipython3",
900+
"version": "3.8.5"
893901
}
894902
},
895903
"nbformat": 4,

0 commit comments

Comments
 (0)