Skip to content

IndexError: index 0 is out of bounds for axis 0 with size 0 on Recommendations #7

@zanderswai

Description

@zanderswai

This occurred during runtime on a recommender instance:

  File "/app/app/apps.py", line 15, in ready
    trigger()
  File "/app/app/trigger.py", line 450, in trigger
    recommendations()
  File "/app/app/trigger.py", line 386, in recommendations
    recommended = recommender(
  File "/app/app/preprocessors/recommender.py", line 324, in final_recommendation
    if student_average >= df_reco['predscore'].values[0]:
IndexError: index 0 is out of bounds for axis 0 with size 0

This case appeared to two different students on different districts, GoliadISD and LouiseISD.

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions