source: orange/Orange/__init__.py @ 9698:968c27701d5a

Revision 9698:968c27701d5a, 2.4 KB checked in by anze <anze.staric@…>, 2 years ago (diff)

Removed import from orngMisc.

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_import("data.variable")
22
23_import("network")
24
25_import("stat")
26
27_import("statistics")
28_import("statistics.estimate")
29_import("statistics.contingency")
30_import("statistics.distribution")
31_import("statistics.basic")
32_import("statistics.evd")
33
34_import("classification")
35_import("classification.tree")
36
37_import("classification.rules")
38
39_import("classification.lookup")
40_import("classification.bayes")
41_import("classification.svm")
42_import("classification.logreg")
43_import("classification.knn")
44_import("classification.majority")
45
46_import("optimization")
47
48_import("projection")
49_import("projection.linear")
50_import("projection.mds")
51_import("projection.som")
52_import("projection.pca")
53
54_import("ensemble")
55_import("ensemble.bagging")
56_import("ensemble.boosting")
57_import("ensemble.forest")
58
59_import("regression")
60_import("regression.base")
61_import("regression.earth")
62_import("regression.lasso")
63_import("regression.linear")
64_import("regression.mean")
65_import("regression.pls")
66_import("regression.tree")
67
68_import("multitarget")
69_import("multitarget.tree")
70
71_import("multilabel")
72_import("multilabel.multibase")
73_import("multilabel.br")
74_import("multilabel.lp")
75_import("multilabel.mlknn")
76_import("multilabel.brknn")
77_import("multilabel.mulan")
78
79_import("associate")
80
81_import("preprocess")
82_import("preprocess.outliers")
83_import("preprocess.scaling")
84
85_import("distance")
86
87_import("wrappers")
88
89_import("featureConstruction")
90_import("featureConstruction.univariate")
91_import("featureConstruction.functionDecomposition")
92
93_import("evaluation")
94_import("evaluation.scoring")
95_import("evaluation.testing")
96_import("evaluation.reliability")
97
98_import("clustering")
99_import("clustering.kmeans")
100_import("clustering.hierarchical")
101
102_import("misc")
103_import("misc.environ")
104_import("misc.counters")
105_import("misc.addons")
106_import("misc.render")
107_import("misc.selection")
108_import("misc.serverfiles")
109#_import("misc.r")
Note: See TracBrowser for help on using the repository browser.