My test case is running properly but i am getting an error of incorrect loop used,
Following is code I have written,
Part of code removed as it contained Grade functions codes which grades your assignment and posting on public post is against community guidelines. You can always share the output result of test cell or submission grader output result screenshot. if mentor wants to look at your codes, they will ask for it to be sent by personal DM.
Re-evaluate the model
scores_X_int = model_X_int.predict_proba(X_test_int)[:, 1]
c_index_X_int_test = cindex(y_test.values, scores_X_int)
print(f"c-index on test set with interactions (ordered) is {c_index_X_int_test:.4f}")
Please help me with this
Thanks
1 Like
hi @amangpt99
thank you for following guidelines. Now share a screenshot what output you got when you run the test cell for UNQC4 here. Do not post any codes from the Grade function cell as it is violation of Code of conduct.
based on the codes you shared here and DM, you seem to have totally edited part of section of codes and instructions you werent suppose to.
I am sharing screenshot of the grade function UNQ_C4 without codes. Notice the codes needs to written only by replacing the Nones and without removing the code markers ###START AND END CODE HERE###
when you edit this section beyond, you are increasing your chance to fail on the autograder, avoid doing this. Get a fresh copy and re-do assignment by only replacing the None with your codes between the code markers.
Here is a link on how to get a fresh copy of assignment, use 1a. point in the (pinned link)[Math for Machine Learning FAQ]
Let me know after you do these, if you still fail, then by personal DM, share screenshot of your code corrections.
Also don’t worry about the deadline, you can always extend the deadline depending on the type of subscription you have.
Regards
DP
1 Like