Doubts assignment C3M5

Hello,

I’m having issues understanding why I’m having issues on the mark on my assignment of Lab5 when the expected results that i should have are matching the ones from the assingment and the hints the lab are giving are not clear. I’ve been trying to solve this for days but I’m stucked.

Specially on excercise 6, that because of the IDX column is making me have issues on 6 7 8 which makes me fail the assignment :frowning:

This is my lab ID: egqcramasllb

hope you can help me

Hello @0xJavy,

For us to help, you need to share the (and only the) full error message Jupyter Notebook or / and the autograder reported to you.

Cheers,
Raymond

Hello, thanks for the quick reply

I’m not getting any error when submitting the code and the results that I’m getting are the same as the expected one

Ex6

Failed test case: The ‘idx’ column has incorrect values. Make sure you using the values 0,1,2,… until the length of the data.

Failed test case: X_simple has the correct shape, but the values are not correct. Make sure you are using the correct predictors and adding the constant term.

Failed test case: Y has incorrect values. Make sure you are selecting the correct target variable..

Ex7:

Failed test case: X_multi has the right dimensions, but incorrect values. Make sure you are using the correct predictors and adding the constant term.

Ex8:
Failed test case: y_pred has incorrect values. Make sure you are using the correct predictors and model to get the predicted values..

Failed test case: residuals has incorrect values. Make sure you are calculating the residuals correctly..

In the cell for exercise 6, if you print(df_bur13_chl["idx"]), what do you get?

@rmwkwok this is the result:
0 0
1 1
2 2
3 3
4 4

3004 3004
3005 3005
3006 3006
3007 3007
3008 3008
Name: idx, Length: 3009, dtype: int64

This is mine:

Clearly we have different index for this pandas.Series. df_bur13_chl should inherit the index of df_bur13. I hope this will give you some hint.

Cheers,
Raymond

Hey, i was checking all the code from scracth and I forgot to set the index using SAMPLE_DAY that’s why i was having this issue
Now it’s fixed!

thanks :slight_smile:

1 Like

Yes, and that should have been set in exercise 2a.

Have a good day, @0xJavy :wink:

Raymond