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

TypeError 'module' object is not callable: when calling Orange.projection.pca #52

Open
Garch2017 opened this issue Mar 8, 2017 · 3 comments

Comments

@Garch2017
Copy link

Hi,

Can anyone help with the error below when I call the code?

import Orange
iris = Orange.data.Table("iris.tab")
pca = Orange.projection.linear.Pca(iris)
transformed_data = pca(iris)

ERROR:
import Orange
iris = Orange.data.Table("iris.tab")
pca = Orange.projection.pca(iris)
transformed_data = pca(iris)
Traceback (most recent call last):
File "", line 4, in
pca = Orange.projection.pca(iris)
TypeError: 'module' object is not callable

@ajdapretnar
Copy link

The way this worked for me was:

import Orange
iris = Orange.data.Table("iris.tab")
pca = Orange.projection.pca.PCA()
transformed_data = pca(iris)

However, this is poorly documented and should be explained better. Will fix it.

@Garch2017
Copy link
Author

ajdapretnar, many thanks for your reply.

@ajdapretnar
Copy link

Oh, sorry. I didn't quite realize this is an Orange2 repo. Instructions might not be the same for Orange2....

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

No branches or pull requests

2 participants