Machine Learning Coursera Practice Lab: Logistic regression

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Thank you. I understood the concepts of the course but don't have python experience. this was very helpful

scottjobe
Автор

bro i love you so much i have been stuck in a question for a million years and you came up and helped me, thank you so much

Fahad-ycxe
Автор

Simple and efficient explanation, thanks!!!

oscareddytrejos
Автор

hey how can i come to this level of coding, like i literally have to watch your vide, even if i had watched the course

senorperez
Автор

ive been trying to submit it keeps denying my submission and all the tests have been passed

OyenugaDaniel
Автор

For me it didn't worked :((
NameError: name 'X_train' is not defined
I constantly get this error for all the exercises excepting the first one

andreinita
Автор

Please create video for linear Algebras assessments course from Deep learning AI,

narges
Автор

i pass all test but when i submit he gave me 0 and told me this (Cell #UNQ_C4. Can't compile the student's code. Error: IndentationError('expected an indented block', ('/tmp/student_solution_cells/cell_19.py', 48, 9, ' p[i]= 0\n'))

hdszzox
Автор

I am getting this error
# UNIT TEST

X_mapped = map_feature(X_train[:, 0], X_train[:, 1])
np.random.seed(1)
initial_w = - 0.5
initial_b = 0.5
lambda_ = 0.5
cost = compute_cost_reg(X_mapped, y_train, initial_w, initial_b, lambda_)

print("Regularized cost :", cost)

# UNIT TEST


IndexError Traceback (most recent call last)
in <module>
4 initial_b = 0.5
5 lambda_ = 0.5
----> 6 cost = compute_cost_reg(X_mapped, y_train, initial_w, initial_b, lambda_)
7
8 print("Regularized cost :", cost)

in compute_cost_reg(X, y, w, b, lambda_)
23 ### START CODE HERE ###
24 for j in range(m):
---> 25 reg_cost = reg_cost + w[j] ** 2
26 reg_cost = reg_cost / (2*m) * lambda_
27

IndexError: index 27 is out of bounds for axis 0 with size 27

priyadav