I am getting an assertion error - unsupported format passed, while implementing the cost function without regularisation. How to resolve this error?
The error means your cofi_cost_func() code is returning a variable that has the wrong data type.