source: orange/Orange/__init__.py @ 9929:6df3696524a2

Revision 9929:6df3696524a2, 2.4 KB checked in by markotoplak, 2 years ago (diff)

data.variable -> feature.

Line 
1import orange
2
3# Definitely ugly, but I see no other workaround.
4# When, e.g. data.io executes "from orange import ExampleTable"
5# orange gets imported again since it is not in sys.modules
6# before this entire file is executed
7import sys
8sys.modules["orange"] = orange
9
10import warnings
11
12def _import(name):
13    try:
14        __import__(name, globals(), locals(), [], -1)
15    except Exception:
16        warnings.warn("Some features are disabled, because Orange could not import: " + name, UserWarning, 2)
17
18_import("data")
19_import("data.io")
20_import("data.sample")
21
22_import("network")
23
24_import("stat")
25
26_import("statistics")
27_import("statistics.estimate")
28_import("statistics.contingency")
29_import("statistics.distribution")
30_import("statistics.basic")
31_import("statistics.evd")
32
33_import("classification")
34_import("classification.tree")
35
36_import("classification.rules")
37
38_import("classification.lookup")
39_import("classification.bayes")
40_import("classification.svm")
41_import("classification.logreg")
42_import("classification.knn")
43_import("classification.majority")
44
45_import("optimization")
46
47_import("projection")
48_import("projection.linear")
49_import("projection.mds")
50_import("projection.som")
51_import("projection.pca")
52
53_import("ensemble")
54_import("ensemble.bagging")
55_import("ensemble.boosting")
56_import("ensemble.forest")
57
58_import("regression")
59_import("regression.base")
60_import("regression.earth")
61_import("regression.lasso")
62_import("regression.linear")
63_import("regression.mean")
64_import("regression.pls")
65_import("regression.tree")
66
67_import("multitarget")
68_import("multitarget.tree")
69
70_import("multilabel")
71_import("multilabel.multibase")
72_import("multilabel.br")
73_import("multilabel.lp")
74_import("multilabel.mlknn")
75_import("multilabel.brknn")
76_import("multilabel.mulan")
77
78_import("associate")
79
80_import("preprocess")
81_import("preprocess.outliers")
82_import("preprocess.scaling")
83
84_import("distance")
85
86_import("wrappers")
87
88_import("featureConstruction")
89_import("featureConstruction.univariate")
90_import("featureConstruction.functionDecomposition")
91
92_import("evaluation")
93_import("evaluation.scoring")
94_import("evaluation.testing")
95_import("evaluation.reliability")
96
97_import("clustering")
98_import("clustering.kmeans")
99_import("clustering.hierarchical")
100
101_import("misc")
102_import("misc.environ")
103_import("misc.counters")
104_import("misc.addons")
105_import("misc.render")
106_import("misc.selection")
107_import("misc.serverfiles")
108#_import("misc.r")
Note: See TracBrowser for help on using the repository browser.