source: orange/Orange/__init__.py @ 9943:364085431ea7

Revision 9943:364085431ea7, 2.4 KB checked in by blaz <blaz.zupan@…>, 2 years ago (diff)

updates for discretization rst

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