Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

Here is the code in context:

image text in transcribed

Here is a screenshot of the variable explorer (df_cf)

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Performance Indexing In SQL Server

Authors: Jason Strate, Grant Fritchey

2nd Edition

1484211189, 9781484211182

More Books

Students also viewed these Databases questions