Code deleted, issue resolved.
Hi @iceblock ,
Welcome to the community! This is your first post.
You have not implemented the cost function. What you did was to copy the formulas provided in the hint which are just a part of it.
If you scroll up a bit, youβll find formula (13). Thatβs the formula youβll want to implement here.
π½=β1πβπ=1π(π¦(π)log(π2)+(1βπ¦(π))log(1βπ2))
Note: Please remove your code from your post as publishing code goes against the code of honor.
Thanks,
Juan
Thanks! I misinterpreted the meaning of numbers in the round bracket.
Yan
Great! I hope you can finish this cost formula. It will be with you from now on ![]()
Please let me know if you find any other issue.
Juan