lmcinnes / lmcinnes/umap

01.0-parametric-umap-embedding-mnist-basic error: 'ParametricUMAP' object has no attribute '_history'

Open
#541 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.3k
Forks
871
Avg merge
1d 13h
Merged PRs (30d)
5

Description

The following error occurs in the Jupyter notebook 01.0-parametric-umap-embedding-mnist-basic.
Looking through the code, the only place self._history would seem to be set is in the _fit_embed_data method but I can't find any place where this (presumably private) method is actually called. The notebook runs fine until this line and the problem occurs with a completely clean install using pip. Any guidance would be appreciated. Thanks.

-embedder._history.keys()

AttributeError Traceback (most recent call last)
in
1 embedder._history.keys()

AttributeError: 'ParametricUMAP' object has no attribute '_history'

Contributor guide

Open the contributing guide

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.

Research direction

Start with the 01.0-parametric-umap-embedding-mnist-basic Jupyter notebook and trace how ParametricUMAP reaches _fit_embed_data. Check why _history is absent at the embedder._history.keys() line; done means the notebook reaches that line without AttributeError and the history is available as expected.

Written by the indexing model from the issue text.

Assessment

Tech stack
jupyter-notebook, python
Domain
machine-learning
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.