source: orange/Orange/__init__.py @ 10391:fee33477516a

Revision 10391:fee33477516a, 3.1 KB checked in by anze <anze.staric@…>, 2 years ago (diff)

Set version to 2.5a4

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