Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I am trying to run this code I found here: https://github.com/keisukeirie/quickdraw_prediction_model I am getting an error below. I don't even really know what the line
I am trying to run this code I found here:
https://github.com/keisukeirie/quickdraw_prediction_model
I am getting an error below. I don't even really know what the line of code below is doing and how it is indexing the dataframe. When I change the 2 to a 1 (arbitrary) I don't get an error here, but it screws up the code elsewhere.
Here is the code in context:
Here is a screenshot of the variable explorer (df_cf)
IPython console Console 1/A 3 File "feature_engineering_func.py", line 42, in feature_engineering_ensemble df_test1- feature_eng_pt1(df) File "feature_engineering_func.py",line 147, in feature_eng_pt1 df-cf('final-time'] = [dfcf.loc[index,'drawing'][df-cf.stroke-number(index)-1] [2] IndexError: list index out of range In [2]: In [21 (-1) for inden in ifl.inder draudng'1fef.cf.stroke.nubertindexj-la] IPython console Console 1/A 3 File "feature_engineering_func.py", line 42, in feature_engineering_ensemble df_test1- feature_eng_pt1(df) File "feature_engineering_func.py",line 147, in feature_eng_pt1 df-cf('final-time'] = [dfcf.loc[index,'drawing'][df-cf.stroke-number(index)-1] [2] IndexError: list index out of range In [2]: In [21 (-1) for inden in ifl.inder draudng'1fef.cf.stroke.nubertindexj-la]Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started