Source

orange / Orange / core.py

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
from orangeom import *
from orange import *


__all__ = [
# Imported from orange
           'AlignmentList',
           'AssessIMQuality',
           'AssociationClassifier',
           'AssociationLearner',
           'AssociationRule',
           'AssociationRules',
           'AssociationRulesInducer',
           'AssociationRulesSparseInducer',
           'AttributeWarning',
           'AttributedBoolList',
           'AttributedFloatList',
           'BasicAttrStat',
           'BasketExampleGenerator',
           'BasketFeeder',
           'BayesClassifier',
           'BayesLearner',
           'BiModalDiscretization',
           'BiModalDiscretizer',
           'BoolList',
           'C45Classifier',
           'C45ExampleGenerator',
           'C45Learner',
           'C45TreeNode',
           'C45TreeNodeList',
           'CartesianClassifier',
           'Classifier',
           'ClassifierByExampleTable',
           'ClassifierByLookupTable',
           'ClassifierByLookupTable1',
           'ClassifierByLookupTable2',
           'ClassifierByLookupTable3',
           'ClassifierFD',
           'ClassifierFromVar',
           'ClassifierFromVarFD',
           'ClassifierList',
           'ClustersFromDistributions',
           'ClustersFromDistributionsByAssessor',
           'ClustersFromIM',
           'ClustersFromIMByAssessor',
           'ColorIG',
           'ColorIG_MCF',
           'ColoredIG',
           'ColumnAssessor',
           'ColumnAssessor_Kramer',
           'ColumnAssessor_Laplace',
           'ColumnAssessor_Measure',
           'ColumnAssessor_N',
           'ColumnAssessor_Relief',
           'ColumnAssessor_m',
           'ColumnAssessor_mf',
           'CompatibilityWarning',
           'ComputeDomainContingency',
           'ConditionalProbabilityEstimator',
           'ConditionalProbabilityEstimatorConstructor',
           'ConditionalProbabilityEstimatorConstructor_ByRows',
           'ConditionalProbabilityEstimatorConstructor_loess',
           'ConditionalProbabilityEstimatorList',
           'ConditionalProbabilityEstimator_ByRows',
           'ConditionalProbabilityEstimator_FromDistribution',
           'ContDistribution',
           'Contingency',
           'ContingencyAttrAttr',
           'ContingencyAttrClass',
           'ContingencyClass',
           'ContingencyClassAttr',
           'CostLearner',
           'CostMatrix',
           'CostWrapperClassifier',
           'CostWrapperLearner',
           'DefaultClassifier',
           'DiscDistribution',
           'Discrete2Continuous',
           'Discretization',
           'Discretizer',
           'DistanceMap',
           'DistanceMapConstructor',
           'Distribution',
           'DistributionAssessor',
           'DistributionAssessor_Kramer',
           'DistributionAssessor_Laplace',
           'DistributionAssessor_Measure',
           'DistributionAssessor_Relief',
           'DistributionAssessor_m',
           'DistributionAssessor_mf',
           'DistributionList',
           'Domain',
           'DomainBasicAttrStat',
           'DomainContingency',
           'DomainContinuizer',
           'DomainDepot',
           'DomainDistributions',
           'DomainTransformerConstructor',
           'EFMDataDescription',
           'EVDist',
           'EVDistGetter',
           'EVDistGetter_Standard',
           'EVDistList',
           'EarthClassifier',
           'EarthLearner',
           'EntropyDiscretization',
           'EnumVariable',
           'EquiDistDiscretization',
           'EquiDistDiscretizer',
           'EquiNDiscretization',
           'Example',
           'ExampleCluster',
           'ExampleClusters',
           'ExampleDistBySorting',
           'ExampleDistConstructor',
           'ExampleDistVector',
           'ExampleGenerator',
           'ExampleGeneratorList',
           'ExampleTable',
           'ExamplesDistance',
           'ExamplesDistanceConstructor',
           'ExamplesDistanceConstructor_DTW',
           'ExamplesDistanceConstructor_Euclidean',
           'ExamplesDistanceConstructor_Hamming',
           'ExamplesDistanceConstructor_Lp',
           'ExamplesDistanceConstructor_Manhattan',
           'ExamplesDistanceConstructor_Maximal',
           'ExamplesDistanceConstructor_Relief',
           'ExamplesDistance_DTW',
           'ExamplesDistance_Euclidean',
           'ExamplesDistance_Hamming',
           'ExamplesDistance_Lp',
           'ExamplesDistance_Manhattan',
           'ExamplesDistance_Maximal',
           'ExamplesDistance_Normalized',
           'ExamplesDistance_Relief',
           'FeatureByDistributions',
           'FeatureByIM',
           'FeatureByMinComplexity',
           'FeatureInducer',
           'FileExampleGenerator',
           'Filter',
           'FilterList',
           'Filter_conjunction',
           'Filter_disjunction',
           'Filter_hasClassValue',
           'Filter_hasMeta',
           'Filter_hasSpecial',
           'Filter_isDefined',
           'Filter_random',
           'Filter_sameValue',
           'Filter_values',
           'FindNearest',
           'FindNearestConstructor',
           'FindNearestConstructor_BruteForce',
           'FindNearest_BruteForce',
           'FloatFloatList',
           'FloatList',
           'FloatListList',
           'FloatVariable',
           'GaussianDistribution',
           'GeneralExampleClustering',
           'GetBoth',
           'GetProbabilities',
           'GetValue',
           'Graph',
           'GraphAsList',
           'GraphAsMatrix',
           'GraphAsTree',
           'HierarchicalCluster',
           'HierarchicalClusterList',
           'HierarchicalClusterOrdering',
           'HierarchicalClustering',
           'IG',
           'IGBySorting',
           'IGConstructor',
           'IM',
           'IMBlurer',
           'IMByIMByRows',
           'IMByRelief',
           'IMByRows',
           'IMByRowsByRelief',
           'IMByRowsBySorting',
           'IMByRowsConstructor',
           'IMByRowsPreprocessor',
           'IMBySorting',
           'IMClustering',
           'IMConstructor',
           'Illegal_Float',
           'ImputeClassifier',
           'Imputer',
           'ImputerConstructor',
           'ImputerConstructor_asValue',
           'ImputerConstructor_average',
           'ImputerConstructor_maximal',
           'ImputerConstructor_minimal',
           'ImputerConstructor_model',
           'ImputerConstructor_random',
           'Imputer_asValue',
           'Imputer_defaults',
           'Imputer_model',
           'Imputer_random',
           'IntFloatList',
           'IntList',
           'IntervalDiscretizer',
           'ItemsetNodeProxy',
           'ItemsetsSparseInducer',
           'KernelException',
           'KernelFunc',
           'KernelWarning',
           'Learner',
           'LearnerFD',
           'LinearClassifier',
           'LinearLearner',
           'LogRegClassifier',
           'LogRegFitter',
           'LogRegFitter_Cholesky',
           'LogRegLearner',
           'LongList',
           'LookupLearner',
           'MajorityLearner',
           'MakeRandomIndices',
           'MakeRandomIndices2',
           'MakeRandomIndicesCV',
           'MakeRandomIndicesMultiple',
           'MakeRandomIndicesN',
           'MapIntValue',
           'MeasureAttribute',
           'MeasureAttributeFromProbabilities',
           'MeasureAttribute_IM',
           'MeasureAttribute_MSE',
           'MeasureAttribute_chiSquare',
           'MeasureAttribute_cost',
           'MeasureAttribute_gainRatio',
           'MeasureAttribute_gainRatioA',
           'MeasureAttribute_gini',
           'MeasureAttribute_info',
           'MeasureAttribute_logOddsRatio',
           'MeasureAttribute_relevance',
           'MeasureAttribute_relief',
           'MeasureAttribute_retis',
           'MeasureAttribute_splitGain',
           'NormalizeContinuous',
           'OrangeBase',
           'Ordinal2Continuous',
           'P2NN',
           'PearsonCorrelation',
           'Preprocessor',
           'Preprocessor_addCensorWeight',
           'Preprocessor_addClassNoise',
           'Preprocessor_addClassWeight',
           'Preprocessor_addGaussianClassNoise',
           'Preprocessor_addGaussianNoise',
           'Preprocessor_addMissing',
           'Preprocessor_addMissingClasses',
           'Preprocessor_addNoise',
           'Preprocessor_discretize',
           'Preprocessor_drop',
           'Preprocessor_dropMissing',
           'Preprocessor_dropMissingClasses',
           'Preprocessor_filter',
           'Preprocessor_ignore',
           'Preprocessor_imputeByLearner',
           'Preprocessor_removeDuplicates',
           'Preprocessor_select',
           'Preprocessor_shuffle',
           'Preprocessor_take',
           'Preprocessor_takeMissing',
           'Preprocessor_takeMissingClasses',
           'ProbabilityEstimator',
           'ProbabilityEstimatorConstructor',
           'ProbabilityEstimatorConstructor_Laplace',
           'ProbabilityEstimatorConstructor_kernel',
           'ProbabilityEstimatorConstructor_loess',
           'ProbabilityEstimatorConstructor_m',
           'ProbabilityEstimatorConstructor_relative',
           'ProbabilityEstimatorList',
           'ProbabilityEstimator_FromDistribution',
           'ProgressCallback',
           'PythonValue',
           'PythonValueSpecial',
           'PythonVariable',
           'RandomClassifier',
           'RandomGenerator',
           'RandomLearner',
           'RemoveRedundant',
           'RemoveRedundantByInduction',
           'RemoveRedundantByQuality',
           'RemoveRedundantOneValue',
           'RemoveUnusedValues',
           'Rule',
           'RuleBeamCandidateSelector',
           'RuleBeamCandidateSelector_TakeAll',
           'RuleBeamFilter',
           'RuleBeamFilter_Width',
           'RuleBeamFinder',
           'RuleBeamInitializer',
           'RuleBeamInitializer_Default',
           'RuleBeamRefiner',
           'RuleBeamRefiner_Selector',
           'RuleClassifier',
           'RuleClassifierConstructor',
           'RuleClassifier_firstRule',
           'RuleClassifier_logit',
           'RuleCovererAndRemover',
           'RuleCovererAndRemover_Default',
           'RuleDataStoppingCriteria',
           'RuleDataStoppingCriteria_NoPositives',
           'RuleEvaluator',
           'RuleEvaluator_Entropy',
           'RuleEvaluator_LRS',
           'RuleEvaluator_Laplace',
           'RuleEvaluator_mEVC',
           'RuleFinder',
           'RuleLearner',
           'RuleList',
           'RuleStoppingCriteria',
           'RuleStoppingCriteria_NegativeDistribution',
           'RuleValidator',
           'RuleValidator_LRS',
           'SVMClassifier',
           'SVMClassifierSparse',
           'SVMLearner',
           'SVMLearnerSparse',
           'SimpleTreeClassifier',
           'SimpleTreeLearner',
           'SomeValue',
           'StopDistributionClustering',
           'StopDistributionClustering_binary',
           'StopDistributionClustering_n',
           'StopDistributionClustering_noBigChange',
           'StopDistributionClustering_noProfit',
           'StopIMClusteringByAssessor',
           'StopIMClusteringByAssessor_binary',
           'StopIMClusteringByAssessor_n',
           'StopIMClusteringByAssessor_noBigChange',
           'StopIMClusteringByAssessor_noProfit',
           'StringList',
           'StringValue',
           'StringVariable',
           'SubsetsGenerator',
           'SubsetsGenerator_constSize',
           'SubsetsGenerator_constSize_iterator',
           'SubsetsGenerator_constant',
           'SubsetsGenerator_constant_iterator',
           'SubsetsGenerator_iterator',
           'SubsetsGenerator_minMaxSize',
           'SubsetsGenerator_minMaxSize_iterator',
           'SubsetsGenerator_withRestrictions',
           'SubsetsGenerator_withRestrictions_iterator',
           'SymMatrix',
           'TabDelimExampleGenerator',
           'TableAverager',
           'ThresholdCA',
           'ThresholdDiscretizer',
           'TransformValue',
           'TransformValue_IsDefined',
           'TreeClassifier',
           'TreeDescender',
           'TreeDescender_UnknownMergeAsBranchSizes',
           'TreeDescender_UnknownMergeAsSelector',
           'TreeDescender_UnknownToBranch',
           'TreeDescender_UnknownToCommonBranch',
           'TreeDescender_UnknownToCommonSelector',
           'TreeExampleSplitter',
           'TreeExampleSplitter_IgnoreUnknowns',
           'TreeExampleSplitter_UnknownsAsBranchSizes',
           'TreeExampleSplitter_UnknownsAsSelector',
           'TreeExampleSplitter_UnknownsToAll',
           'TreeExampleSplitter_UnknownsToBranch',
           'TreeExampleSplitter_UnknownsToCommon',
           'TreeExampleSplitter_UnknownsToRandom',
           'TreeLearner',
           'TreeNode',
           'TreeNodeList',
           'TreePruner',
           'TreePruner_SameMajority',
           'TreePruner_m',
           'TreeSplitConstructor',
           'TreeSplitConstructor_Attribute',
           'TreeSplitConstructor_Combined',
           'TreeSplitConstructor_ExhaustiveBinary',
           'TreeSplitConstructor_Measure',
           'TreeSplitConstructor_OneAgainstOthers',
           'TreeSplitConstructor_Threshold',
           'TreeStopCriteria',
           'TreeStopCriteria_Python',
           'TreeStopCriteria_common',
           'Value',
           'ValueFilter',
           'ValueFilterList',
           'ValueFilter_continuous',
           'ValueFilter_discrete',
           'ValueFilter_string',
           'ValueFilter_stringList',
           'ValueList',
           'ValueTypes',
           'VarList',
           'VarListList',
           'VarTypes',
           'Variable',
           'VariableFilterMap',
           'VariableFloatMap',
           'Warning',
           'compiletime',
           'frange',
           'getClassDistribution',
           'getRegisteredFileTypes',
           'globalRandom',
           'kNNClassifier',
           'kNNLearner',
           'kaplanMeier',
           'newmetaid',
           'registerFileType',
           'registerPythonVariable',
           'removeoutput',
           'saveBasket',
           'saveC45',
           'saveCsv',
           'saveTabDelimited',
           'saveTxt',
           'select',
           'setWarningLevel',
           'setoutput',
           'setrandseed',
           'textCos',
           'version',
# imported from orangeom
            'GraphLayout',
            'KruskalStress',
            'MDS',
            'Network',
            'NetworkOptimization',
            'Pathfinder',
            'SammonStress',
            'SgnRelStress',
            'SgnSammonStress',
            'StressFunc',
            'StressFunc_Python',
            'dist',
            'graphOptimization1',
            'optimizeAnchors',
            'optimizeAnchorsR',
            'optimizeAnchorsRadial',
            'potentialsBitmap',
            'qhull',
            'qing',
            'star',
            'version']