Skip to content

Commit f991908

Browse files
committedJan 11, 2010
Making changes required to make pebl suitable for rpm packaging
1 parent 265192d commit f991908

14 files changed

+121
-116
lines changed
 

‎docs/src/intro.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ include :term:`prior models` and :term:`task controllers`.
3232
This is the set of observations that is used to score a given network.
3333
The data can include missing values and hidden/unobserved variables and
3434
observations can be marked as being the result of specific
35-
interventions. Data can be read from a file or created progrmatically.
35+
interventions. Data can be read from a file or created programatically.
3636

3737
Learner
3838
A learner implements a specific learning algorithm. It is given some

‎docs/src/tutorial.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ taskcontroller package to run these learners in parallel::
242242
>>> [ simanneal.SimulatedAnnealingLearner(dataset) for i in range(5) ]
243243
>>> tc = multiprocess.MultiProcessController(poolsize=2)
244244
>>> results = tc.run(learners)
245-
>>> merged_results = results.merge(merged_results)
246-
>>> merged_results.tohtml("example4-result")
245+
>>> merged_result = results.merge(results)
246+
>>> merged_result.tohtml("example4-result")
247247

248248
In this example, we import the multiprocess module (line 3), create a
249249
multiprocess task controller with a pool size of two processes (line 7), run

‎setup.cfg

+5
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,8 @@ doctest-tests=1
66
[apydia]
77
modules = pebl
88

9+
[build_sphinx]
10+
source-dir = docs/src
11+
build-dir = docs/build
12+
all_files = 1
13+

‎setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def _unavailable(self, exc):
6363

6464
setup(
6565
name='pebl',
66-
version='1.01',
66+
version='1.0.1',
6767
description='Python Environment for Bayesian Learning',
6868
long_description = long_desc,
6969
package_dir={'': 'src'},
@@ -77,7 +77,7 @@ def _unavailable(self, exc):
7777
license='MIT',
7878
zip_safe=False,
7979
classifiers=[
80-
'Development Status :: 4 - Beta',
80+
'Development Status :: 5 - Production/Stable',
8181
'Environment :: Console',
8282
'Intended Audience :: Science/Research',
8383
'License :: OSI Approved :: MIT License',

‎src/pebl/test/testfiles/testdata1.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var1 var2 var3
2-
2.5! !X 1.7
3-
1.1 !1.7 2.3
4-
4.2 999.3 12
1+
var1 var2 var3
2+
2.5! !X 1.7
3+
1.1 !1.7 2.3
4+
4.2 999.3 12
+8-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# some calculations with this dataset derived manually in pebl/test/test_cpd.py
2-
3-
"v1,discrete(2)" "v2,discrete(2)" "v3,discrete(2)" "v4,discrete(2)"
4-
0 1 1 0
5-
1 0 0 1
6-
1 1 1 0
7-
1 1 1 0
8-
0 0 1 1
1+
# some calculations with this dataset derived manually in pebl/test/test_cpd.py
2+
3+
"v1,discrete(2)" "v2,discrete(2)" "v3,discrete(2)" "v4,discrete(2)"
4+
0 1 1 0
5+
1 0 0 1
6+
1 1 1 0
7+
1 1 1 0
8+
0 0 1 1
+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
"v1,discrete(2)" "v2,discrete(2)" "v3,discrete(2)" "v4,discrete(2)"
2-
0 X 1 0
3-
1 X 0 1
4-
1 X 1 0
5-
1 X 1 0
6-
0 X 1 1
1+
"v1,discrete(2)" "v2,discrete(2)" "v3,discrete(2)" "v4,discrete(2)"
2+
0 X 1 0
3+
1 X 0 1
4+
1 X 1 0
5+
1 X 1 0
6+
0 X 1 1

‎src/pebl/test/testfiles/testdata2.txt

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# comment line
2-
"shh,discrete(2)" "ptchp,discrete(3)" "smo,continuous" "outcome,class(good, bad)"
3-
4-
0! !0 1.25 good
5-
#comment in the data section
6-
1 !1 1.1 bad
7-
1 2 0.45 bad
1+
# comment line
2+
"shh,discrete(2)" "ptchp,discrete(3)" "smo,continuous" "outcome,class(good, bad)"
3+
4+
0! !0 1.25 good
5+
#comment in the data section
6+
1 !1 1.1 bad
7+
1 2 0.45 bad

‎src/pebl/test/testfiles/testdata3.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"shh,discrete(2)" "ptchp,discrete(3)"
2-
sample1 0! !0
3-
sample2 1 !1
4-
sample3 1 2
1+
"shh,discrete(2)" "ptchp,discrete(3)"
2+
sample1 0! !0
3+
sample2 1 !1
4+
sample3 1 2

‎src/pebl/test/testfiles/testdata4.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"shh,discrete(2)" "ptchp,discrete(3)"
2-
sample1 0! !0
3-
sample2 1 !1
4-
sample3 1 2
1+
"shh,discrete(2)" "ptchp,discrete(3)"
2+
sample1 0! !0
3+
sample2 1 !1
4+
sample3 1 2

‎src/pebl/test/testfiles/testdata5.txt

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
v1 v2 v3 v4 v5
2-
1.2 1.4 2.1 2.2 1.1
3-
2.3 1.1 2.1 3.2 1.3
4-
3.2 0 1.2 2.5 1.6
5-
4.2 2.4 3.2 2.1 2.8
6-
2.7 1.5 0 1.5 1.1
7-
1.1 2.3 2.1 1.7 3.2
8-
2.3 1.1 4.3 2.3 1.1
9-
3.2 2.6 1.9 1.7 1.1
10-
2.1 1.5 3 1.4 1.1
1+
v1 v2 v3 v4 v5
2+
1.2 1.4 2.1 2.2 1.1
3+
2.3 1.1 2.1 3.2 1.3
4+
3.2 0 1.2 2.5 1.6
5+
4.2 2.4 3.2 2.1 2.8
6+
2.7 1.5 0 1.5 1.1
7+
1.1 2.3 2.1 1.7 3.2
8+
2.3 1.1 4.3 2.3 1.1
9+
3.2 2.6 1.9 1.7 1.1
10+
2.1 1.5 3 1.4 1.1

‎src/pebl/test/testfiles/testdata6.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
"v1,discrete(2)" "v2,discrete(2)" "v3,discrete(2)" "v4,discrete(2)"
2-
0 1 1 0
3-
1 0 0 2
4-
1 1 2 0
5-
1 1 1 0
6-
0 0 1 1
1+
"v1,discrete(2)" "v2,discrete(2)" "v3,discrete(2)" "v4,discrete(2)"
2+
0 1 1 0
3+
1 0 0 2
4+
1 1 2 0
5+
1 1 1 0
6+
0 0 1 1

‎src/pebl/test/testfiles/testdata7.txt

+31-31
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
"v1,discrete(3)" "v2,discrete(4)" "v3,discrete(3)" "v4,discrete(6)"
2-
0 2 1 2
3-
1 2 1 1
4-
2 1 0 2
5-
2 1 1 1
6-
1 1 2 1
7-
1 1 0 1
8-
2 0 1 0
9-
1 2 1 1
10-
1 0 0 2
11-
1 2 2 0
12-
2 1 0 2
13-
1 2 0 2
14-
0 2 0 1
15-
1 2 1 2
16-
1 2 0 0
17-
1 0 1 0
18-
1 2 0 0
19-
1 2 0 1
20-
2 0 2 2
21-
1 1 0 1
22-
1 0 0 2
23-
0 1 1 1
24-
2 2 2 2
25-
2 2 1 0
26-
2 0 2 2
27-
2 1 0 0
28-
0 2 0 1
29-
1 0 2 2
30-
1 2 1 1
31-
0 0 2 1
1+
"v1,discrete(3)" "v2,discrete(4)" "v3,discrete(3)" "v4,discrete(6)"
2+
0 2 1 2
3+
1 2 1 1
4+
2 1 0 2
5+
2 1 1 1
6+
1 1 2 1
7+
1 1 0 1
8+
2 0 1 0
9+
1 2 1 1
10+
1 0 0 2
11+
1 2 2 0
12+
2 1 0 2
13+
1 2 0 2
14+
0 2 0 1
15+
1 2 1 2
16+
1 2 0 0
17+
1 0 1 0
18+
1 2 0 0
19+
1 2 0 1
20+
2 0 2 2
21+
1 1 0 1
22+
1 0 0 2
23+
0 1 1 1
24+
2 2 2 2
25+
2 2 1 0
26+
2 0 2 2
27+
2 1 0 0
28+
0 2 0 1
29+
1 0 2 2
30+
1 2 1 1
31+
0 0 2 1

‎src/pebl/test/testfiles/testdata8.txt

+31-31
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
"v1,discrete(3)," "v2,discrete(3)" "v3,discrete(3)" "v4,discrete(3)" "v5,discrete(3)"
2-
0 0 X 1 2
3-
0 0 X 1 1
4-
2 1 X 0 0
5-
2 1 X 1 1
6-
1 1 X 2 0
7-
1 1 X 0 0
8-
2 0 X 1 0
9-
1 2 X 1 1
10-
1 0 X 0 2
11-
1 2 X 2 0
12-
2 1 X 0 2
13-
1 2 X 0 2
14-
0 2 X 2 1
15-
1 2 X 1 2
16-
1 2 X 0 0
17-
0 0 X 1 0
18-
0 1 X 0 0
19-
0 1 X 0 1
20-
2 0 X 2 2
21-
2 1 X 2 1
22-
1 0 X 0 2
23-
0 1 X 1 1
24-
2 2 X 2 2
25-
2 2 X 1 0
26-
2 0 X 2 2
27-
2 1 X 2 0
28-
0 2 X 0 1
29-
0 0 X 2 2
30-
1 2 X 1 1
31-
0 0 X 2 1
1+
"v1,discrete(3)," "v2,discrete(3)" "v3,discrete(3)" "v4,discrete(3)" "v5,discrete(3)"
2+
0 0 X 1 2
3+
0 0 X 1 1
4+
2 1 X 0 0
5+
2 1 X 1 1
6+
1 1 X 2 0
7+
1 1 X 0 0
8+
2 0 X 1 0
9+
1 2 X 1 1
10+
1 0 X 0 2
11+
1 2 X 2 0
12+
2 1 X 0 2
13+
1 2 X 0 2
14+
0 2 X 2 1
15+
1 2 X 1 2
16+
1 2 X 0 0
17+
0 0 X 1 0
18+
0 1 X 0 0
19+
0 1 X 0 1
20+
2 0 X 2 2
21+
2 1 X 2 1
22+
1 0 X 0 2
23+
0 1 X 1 1
24+
2 2 X 2 2
25+
2 2 X 1 0
26+
2 0 X 2 2
27+
2 1 X 2 0
28+
0 2 X 0 1
29+
0 0 X 2 2
30+
1 2 X 1 1
31+
0 0 X 2 1

0 commit comments

Comments
 (0)
Please sign in to comment.