Programming Assignment:
An issue with Predict Function
I keep getting output error like this. Not sure which part of my code is wrong.
Do not add the bias ‘b’ inside the for-loop over the features. That causes ‘b’ to be added ‘n’ times.
Move the addition of ‘b’ after the for-loop.
Please remove the code from your post - students shouldn’t post their code on the forum. Thanks!
Issue solved! Thank you!
ps. code removed ![]()