Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

plot_pca_correlation_graph Import issue on Colab #939

Closed
kbnnf opened this issue May 20, 2022 · 2 comments
Closed

plot_pca_correlation_graph Import issue on Colab #939

kbnnf opened this issue May 20, 2022 · 2 comments

Comments

@kbnnf
Copy link

kbnnf commented May 20, 2022

Describe the bug

Hi, i have an issue import plot_pca_correlation_graph on Colab, i tried !pip install and !git clone mlxtend, also tried to install the dev version but for some reason it's not working either (i already managed to install the dev version in Colab for another projet).

I tried importing plot_decision_regions and that one works.

Steps/Code to Reproduce

!pip install mlxtend
from mlxtend.plotting import plot_pca_correlation_graph

Expected Results

Actual Results

ImportError: cannot import name 'plot_pca_correlation_graph' from 'mlxtend.plotting' (/usr/local/lib/python3.7/dist-packages/mlxtend/plotting/init.py)

Versions

MLxtend 0.14.0
Linux-5.4.188+-x86_64-with-Ubuntu-18.04-bionic
Python 3.7.13 (default, Apr 24 2022, 01:04:09)
[GCC 7.5.0]
Scikit-learn 1.0.2
NumPy 1.21.6
SciPy 1.4.1

@kbnnf kbnnf added the Bug label May 20, 2022
@rasbt rasbt removed the Bug label May 20, 2022
@rasbt
Copy link
Owner

rasbt commented May 20, 2022

Hi there. Just checking the release notes, the function was added in version 0.17, and it looks like your version is 0.14. Upgrading to the recent mlxtend version will probably fix the issue!

@rasbt
Copy link
Owner

rasbt commented May 20, 2022

Btw I think you need

!pip install mlxtend --upgrade

Repository owner locked and limited conversation to collaborators May 20, 2022
@rasbt rasbt converted this issue into discussion #940 May 20, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants