educative.io

Error when running any code

Hello,

Most of the code does not work when I run it. I get the error below:

Traceback (most recent call last):
  File "/usercode/task.py", line 11, in <module>
    display(dtrain)
NameError: name 'display' is not defined

This is while I’m in the gradient boosting course.

Hi @ullahm1127, all codes for Gradient Boosting lessons are working fine at our end in lessons Gradient Boosting: Implementation from Scratch - Fundamentals of Machine Learning: A Pythonic Introduction, Gradient Boosting: Implementation Using Scikit-learn - Fundamentals of Machine Learning: A Pythonic Introduction and Gradient Boosting - A Practical Guide to Machine Learning with Python. If you’re taking about any specific lesson other than the above ones. Please share the lesson link. Thanks!