source: orange/Orange/__init__.py @ 10333:bbad2239ee0c

Revision 10333:bbad2239ee0c, 3.0 KB checked in by anze <anze.staric@…>, 2 years ago (diff)

Set version to 2.5a3

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