Issue with umap-learn in R session
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 8.3k
- Forks
- 871
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 5
Description
Hi,
I have trouble to get the umap-learn Python package to work within Rstudio, and I always got this warning message when my codes used the package.
thanks,
Mei
**Here is the detail warning messages:**
library(reticulate)
use_condaenv(condaenv="Renv", conda="/home/geru1/anaconda3/bin/conda")
library(umap)
iris.data = iris[, grep("Sepal|Petal", colnames(iris))]
iris.umap_learn = umap(iris.data, method="umap-learn")
Warning message:
In detect.umap.learn(config) :
cannot recognize umap-learn version 0.4.3; set umap_learn_args manually
/home/xxxx/anaconda3/envs/Renv/lib/python3.7/site-packages/umap/spectral.py:4: NumbaDeprecationWarning: No direct replacement for 'numba.targets' available. Visit https://gitter.im/numba/numba-dev to request help. Thanks!
import numba.targets
**Here is the umap config info:**
> iris.umap_learn$config
umap configuration parameters
n_neighbors: 15
n_components: 2
metric: euclidean
n_epochs: 200
input: data
init: spectral
min_dist: 0.1
set_op_mix_ratio: 1
local_connectivity: 1
bandwidth: 1
alpha: 1
gamma: 1
negative_sample_rate: 5
a: NA
b: NA
spread: 1
random_state: 757410806
transform_state: NA
knn_repeats: 1
verbose: 0
umap_learn_args: n_neighbors n_components metric n_epochs init min_dist spread set_op_mix_ratio local_connectivity negative_sample_rate a b random_state verbose
method: umap-learn
metric.function: [function]
umap_learn_version: 0.4.3
**Here is my platform info from sessionInfo()**
> sessionInfo()
R version 3.5.0 (2018-04-23)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux Server release 6.10 (Santiago)
Matrix products: default
BLAS/LAPACK: /usr/prog/OpenBLAS/0.2.8-gompi-1.5.14-NX-LAPACK-3.5.0/lib/libopenblas_nehalemp-r0.2.8.so
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] umap_0.2.5.0 reticulate_1.16
loaded via a namespace (and not attached):
[1] compiler_3.5.0 Matrix_1.2-8 tools_3.5.0 rappdirs_0.3.1 yaml_2.2.0
[6] Rcpp_1.0.0 RSpectra_0.15-0 grid_3.5.0 jsonlite_1.3 openssl_0.9.6
[11] lattice_0.20-34
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the RStudio example with reticulate, conda environment Renv, and umap-learn 0.4.3. Inspect detect.umap.learn(config) and the reported version-handling path; done means the version is recognized without the warning and the iris umap-learn call completes normally.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, r
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100