Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colab: "Training a Text Classifier Using Embeddings" 403 loading training dataset #4630

Closed
ScottS2017 opened this issue Jun 12, 2024 · 2 comments

Comments

@ScottS2017
Copy link

Describe the current behavior

Colab: Training a Text Classifier Using Embeddings

Cell 5 is:

newsgroups_train = fetch_20newsgroups(subset='train')
newsgroups_test = fetch_20newsgroups(subset='test')

newsgroups_train.target_names

The result of running the above is:

HTTPError                                 Traceback (most recent call last)
[<ipython-input-6-f3476b42207e>](https://localhost:8080/#) in <cell line: 1>()
----> 1 newsgroups_train = fetch_20newsgroups(subset='train')
      2 newsgroups_test = fetch_20newsgroups(subset='test')
      3 
      4 # View list of class names for dataset
      5 newsgroups_train.target_names

9 frames

...

HTTPError: HTTP Error 403: Forbidden

Describe the expected behavior
Load the data without error.

What web browser you are using
Chrome: 125.0.6422.142 (Official Build) (64-bit)

@ScottS2017 ScottS2017 added the bug label Jun 12, 2024
@mayankmalik-colab
Copy link
Contributor

I don't think this is Colab specific issue. fetch_20newsgroups is part of from sklearn.datasets import fetch_20newsgroups and can be run independently. I can't reproduce this error and is working fine for me.

However, I can see that the issue has been discussed on other github repos like this and happens sporadically. 403s are from their servers. Perhaps, you will have better luck raising on sklearn github repo.

@ScottS2017
Copy link
Author

Got it, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants