[HANDS-ON BUG] unit4

Open Beginner friendly
#620 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
numpy, python

Research direction

Open the linked unit4.ipynb material and run the affected cells to reproduce the NumPy AttributeError for bool8. Check the notebook's NumPy compatibility handling; the work is done when the unit runs without the module 'numpy' has no attribute 'bool8' failure.

Written by the indexing model from the issue text.

Description

Numpy related error:

/usr/local/lib/python3.11/dist-packages/numpy/init.py in getattr(attr)
408 return char.chararray
409
--> 410 raise AttributeError("module {!r} has no attribute "
411 "{!r}".format(name, attr))
412

AttributeError: module 'numpy' has no attribute 'bool8'

Posible solution:

import numpy as np
np.bool8 = np.bool_

Material
Dominant language
MDX
Stars
5k
Forks
812
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from huggingface/deep-rl-class

All issues in huggingface/deep-rl-class

Similar issues

More Machine Learning issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.