source: orange/Orange/__init__.py @ 10540:788913064426

Revision 10540:788913064426, 3.3 KB checked in by blaz <blaz.zupan@…>, 2 years ago (diff)

Added stacking (ensemble method).

Line 
1from __future__ import absolute_import
2
3__version__ = "2.5a4"
4
5from . import orange
6
7# Definitely ugly, but I see no other workaround.
8# When, e.g. data.io executes "from orange import ExampleTable"
9# orange gets imported again since it is not in sys.modules
10# before this entire file is executed
11import sys
12sys.modules["orange"] = orange
13
14import warnings
15
16alreadyWarned = False
17disabledMsg = "Some features will be disabled due to failing modules\n"
18def _import(name):
19    global alreadyWarned
20    try:
21        __import__(name, globals(), locals(), [], -1)
22    except ImportError, err:
23        warnings.warn("%sImporting '%s' failed: %s" %
24            (disabledMsg if not alreadyWarned else "", name, err),
25            UserWarning, 2)
26        alreadyWarned = True
27
28_import("misc")
29_import("data")
30_import("data.io")
31_import("data.sample")
32_import("data.outliers")
33_import("data.utils")
34_import("data.discretization")
35_import("data.continuization")
36_import("data.filter")
37_import("data.imputation")
38
39_import("feature")
40_import("feature.construction")
41_import("feature.construction.functionDecomposition")
42_import("feature.construction.univariate")
43_import("feature.discretization")
44_import("feature.imputation")
45_import("feature.scoring")
46_import("feature.selection")
47
48_import("network")
49
50_import("stat")
51
52_import("statistics")
53_import("statistics.estimate")
54_import("statistics.contingency")
55_import("statistics.distribution")
56_import("statistics.basic")
57_import("statistics.evd")
58
59_import("classification")
60_import("classification.tree")
61
62_import("classification.rules")
63
64_import("classification.lookup")
65_import("classification.bayes")
66_import("classification.svm")
67_import("classification.logreg")
68_import("classification.knn")
69_import("classification.majority")
70
71_import("optimization")
72
73_import("projection")
74_import("projection.linear")
75_import("projection.mds")
76_import("projection.som")
77
78_import("ensemble")
79_import("ensemble.bagging")
80_import("ensemble.boosting")
81_import("ensemble.forest")
82_import("ensemble.stacking")
83
84_import("regression")
85_import("regression.base")
86_import("regression.earth")
87_import("regression.lasso")
88_import("regression.linear")
89_import("regression.mean")
90_import("regression.pls")
91_import("regression.tree")
92
93_import("multitarget")
94_import("multitarget.tree")
95
96_import("multilabel")
97_import("multilabel.multibase")
98_import("multilabel.br")
99_import("multilabel.lp")
100_import("multilabel.mlknn")
101_import("multilabel.brknn")
102_import("multilabel.mulan")
103
104_import("associate")
105
106_import("preprocess")
107_import("preprocess.scaling")
108
109_import("distance")
110
111_import("wrappers")
112
113_import("featureConstruction")
114_import("featureConstruction.univariate")
115_import("featureConstruction.functionDecomposition")
116
117_import("evaluation")
118_import("evaluation.scoring")
119_import("evaluation.testing")
120_import("evaluation.reliability")
121
122_import("clustering")
123_import("clustering.kmeans")
124_import("clustering.hierarchical")
125_import("clustering.consensus")
126
127_import("misc")
128_import("misc.environ")
129_import("misc.counters")
130_import("misc.addons")
131_import("misc.render")
132_import("misc.selection")
133_import("misc.serverfiles")
134#_import("misc.r")
135
136try:
137    from . import version
138    # Always use short_version here (see PEP 386)
139    __version__ = version.short_version
140    __hg_revision__ = version.hg_revision
141except ImportError:
142    # Leave the default version defined at the top.
143    pass
144
Note: See TracBrowser for help on using the repository browser.