source: orange/Orange/testing/regression/tests_20/modules_PCA5.py @ 9952:986e9cd806f4

Revision 9952:986e9cd806f4, 404 bytes checked in by Miha Stajdohar <miha.stajdohar@…>, 2 years ago (diff)

Tests moved and renamed from orange 20.

Line 
1# Description: Screeplot and biplot for PCA
2# Category:    projection
3# Uses:        iris
4# Referenced:  orngPCA.htm
5# Classes:     orngPCA.PCA
6
7import orange, orngPCA
8
9data = orange.ExampleTable("iris.tab")
10
11attributes = ['sepal length', 'sepal width', 'petal length', 'petal width']
12pca = orngPCA.PCA(data, standardize = True, attributes = attributes)
13
14pca.plot(filename = None)
15
16pca(data)
17pca.biplot()
Note: See TracBrowser for help on using the repository browser.