PaperStrange / AIProjectManger

Aimed at the optimization of file structure to facilitate rapid construction of project prototypes (in processing)
GNU General Public License v3.0
3 stars 0 forks source link

FIX: deal with the KeyError in "kernel_recurrent_and_reconstruct.ipynb" #8

Closed PaperStrange closed 5 years ago

PaperStrange commented 5 years ago

Describe the bug Run codes in this jupyter notebook will raise a KeyError: "card_id"

To Reproduce Steps to reproduce the behavior:

  1. Go to 'ie_CategoryRecom_kaggle' branch
  2. Click on 'download/Simple_LightGBM_without_blending'
  3. Scroll down to 'kernel_recurrent_and_reconstruct.ipynb'
  4. Excute the notebook, in the cell containing main function see the error

Expected behavior No error reported when running all cells

Screenshots None yet

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context None yet

PaperStrange commented 5 years ago

Solution 2019/2/18: use ".reset_index()" attribute of specific dataframe to retrieve "card_id" column