python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Why is my decision boundary wrong for logistic regression using gradient descent?
I am trying to solve a classification task using logistic regression. Part of my task is to plot the decision boundary. I find that the gradient of the decision boundary seems to be solved correctly b...
James Bell
Votes: 0
Answers: 0
Stochastic gradient descent for multi variable
Please let me know if I am doing a wrong implementation of Stochastic gradient descent
train_x = np.asanyarray(train[['ENGINESIZE','CYLINDERS','FUELCONSUMPTION_COMB']])
print('Initial training matrix:...
Palash Awasthi
Votes: 0
Answers: 1
No gradients provided for any variable in Tensorflow
I have the following issue when running the code below:
import tensorflow.compat.v1 as tfc
image=tfc.Variable(tf.zeros((1,224,224,3)))
#It declares the image
x = tfc.placeholder(tfc.float32, (1,224,...
mad
Votes: 0
Answers: 0
ZeroDivisionError: division by zero error in gradient descent.py
def computeCost(X,y,theta,lam):
tobesummed = np.power(((X.dot(theta.T))-y),2)+lam*np.sum(np.power(theta,2))
return np.sum(tobesummed)/(2 * len(X))
def denormalise_price(price):
global mea...
Shun
Votes: 0
Answers: 1