source: orange/Orange/doc/modules/PCA2.py @ 9671:a7b056375472

Revision 9671:a7b056375472, 590 bytes checked in by anze <anze.staric@…>, 2 years ago (diff)

Moved orange to Orange (part 2)

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.