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 '))
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 '))
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 '))
Thank you. I understood the concepts of the course but don't have python experience. this was very helpful
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
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
'))
@@عبدللهفراسعبدللهرشيد try to keep the code within the indentation of the function.
@@عبدللهفراسعبدللهرشيد same
Simple and efficient explanation, thanks!!!
Here what is (np.exp) but in formula it give (e)
hello , I have been facing this issue of "Comment line with index: `UNQ_C2` wasn't found in code" . Please help to resolve this .
In ex2, after running the code , its saying that x is not defined can some one please help me out
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
this was really helpful...
Please create video for linear Algebras assessments course from Deep learning AI,
Thanks, mate.
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
did you find any other solution?
Run all the above cells first
Please share all the codes to me are u don't with all 4 weeks?
well i do have codes now, i can share if you want
@@simranlahrani
Same thing is happening with me but with qn1
It says sigmoid is not defined
ty so much
ive been trying to submit it keeps denying my submission and all the tests have been passed
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
'))
4 th is not running
Ya same
What did you do to run that?
Same issue
I'm also getting the same issue of errors, what did you do solve this issue please share possible solution if you know
@@syedilyasjaweedsyed3385 what is the error
I am getting this error
# UNIT TEST
compute_cost_reg_test(compute_cost_reg)
X_mapped = map_feature(X_train[:, 0], X_train[:, 1])
np.random.seed(1)
initial_w = np.random.rand(X_mapped.shape[1]) - 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
compute_cost_reg_test(compute_cost_reg)
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
in
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
use
for j in range(n)
you are most probably using range(m)
lo mismo me paso a mi, y el error estaba en el mal uso de un parentesis por un bracket
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
'))