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

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

Tests moved and renamed from orange 20.

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.