TypeError 'module' object is not callable: when calling Orange.projection.pca
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 "
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.
ajdapretnar, many thanks for your reply.
Oh, sorry. I didn't quite realize this is an Orange2 repo. Instructions might not be the same for Orange2....