42-AI / bootcamp_machine-learning

Bootcamp to learn basics in Machine Learning
Other
203 stars 41 forks source link

ML03 ex06 difference of arguments between definition and examples #238

Open stelon77 opened 1 year ago

stelon77 commented 1 year ago

definition of methods • losselem(self, y, yhat) • loss_(self, y, yhat)

in examples mylr.predict_(X) should be yhat = mylr.predict(X) then print yhat mylr.loss(X,Y) should be mylr.loss(Y, y_hat)

Fixed on: