source: orange/orange/doc/modules/PCA2.py @ 6252:c67310ac6363

Revision 6252:c67310ac6363, 590 bytes checked in by nejc <nejc@…>, 5 years ago (diff)
Line 
1# Description: using your own imputer and continuizer in PCA
2# Category:    projection
3# Uses:        adult_sample
4# Referenced:  orngPCA.htm
5# Classes:     orngPCA.PCA
6
7import orange, orngPCA
8
9data = orange.ExampleTable("bridges.tab")
10
11imputer = orange.ImputerConstructor_maximal
12
13continuizer = orange.DomainContinuizer()
14continuizer.multinomialTreatment = continuizer.AsNormalizedOrdinal
15continuizer.classTreatment = continuizer.Ignore
16continuizer.continuousTreatment = continuizer.Leave
17
18pca = orngPCA.PCA(data, standardize = True, imputer = imputer, continuizer = continuizer)
19print pca
Note: See TracBrowser for help on using the repository browser.