Hi @hayou, I don’t think that error is happening during the initialization, that error seems to indicate that your predictions do not match what the grader is expecting.
Maybe you could check how you are calling the optimize function inside model, in particular, please make sure you are using all parameters and that you are not hardcoding them.
Hi @hayou , this code should result in an Assertion Error as there is a typo in cost (instead of costs). Please check, also for any hardcoded variables.
Can I ask you to remove the screenprint as it is in our Honour Code not to share potential solutions on the platform?
regards Stephanus