Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.learn.boosting
Commits
314a374f
Commit
314a374f
authored
Aug 29, 2014
by
Manuel Günther
Browse files
Fixed MANIFEST and MNIST database handling.
parent
c8005632
Changes
4
Hide whitespace changes
Inline
Side-by-side
MANIFEST.in
View file @
314a374f
include README.rst bootstrap.py buildout.cfg
recursive-include docs *.py *.rst
recursive-include bob/learn/boosting
/cpp
*.h *.cpp
recursive-include bob/learn/boosting *.h *.cpp
recursive-include bob/learn/boosting/data *.hdf5
bob/learn/boosting/tests/test_example.py
View file @
314a374f
...
...
@@ -30,6 +30,3 @@ def test_example_mnist():
mnist
.
main
(
options
)
if
__name__
==
'__main__'
:
test_machine
()
bob/learn/boosting/utils.py
View file @
314a374f
...
...
@@ -11,7 +11,7 @@ class MNIST:
def
__init__
(
self
):
# loads the MNIST data from the packed data file
tar
=
bob
.
io
.
base
.
test_utils
.
datafile
(
"mnist.tar.bz2"
,
__name__
)
temp_dir
=
tempfile
.
mkdtemp
(
prefix
=
"bob_boosting_"
,
suffix
=
"hdf5"
)
[
1
]
temp_dir
=
tempfile
.
mkdtemp
(
prefix
=
"bob_boosting_"
,
suffix
=
"hdf5"
)
f
=
tarfile
.
open
(
tar
,
'r'
)
f
.
extractall
(
temp_dir
)
...
...
@@ -30,6 +30,8 @@ class MNIST:
self
.
_data
[
group
]
=
data
self
.
_labels
[
group
]
=
labels
hdf5
.
cd
(
'..'
)
del
hdf5
shutil
.
rmtree
(
temp_dir
)
def
data
(
self
,
groups
=
(
'train'
,
'test'
),
labels
=
range
(
10
)):
...
...
setup.py
View file @
314a374f
...
...
@@ -25,6 +25,9 @@ from setuptools import setup, find_packages, dist
dist
.
Distribution
(
dict
(
setup_requires
=
[
'bob.blitz'
]
+
bob_packages
))
from
bob.blitz.extension
import
Extension
,
Library
,
build_ext
packages
=
[
'boost'
]
boost_modules
=
[
'system'
]
version
=
"2.0.0a0"
# The only thing we do in this file is to call the setup() function with all
...
...
@@ -76,6 +79,8 @@ setup(
],
bob_packages
=
bob_packages
,
version
=
version
,
packages
=
packages
,
boost_modules
=
boost_modules
,
),
Library
(
...
...
@@ -92,6 +97,8 @@ setup(
],
bob_packages
=
bob_packages
,
version
=
version
,
packages
=
packages
,
boost_modules
=
boost_modules
,
),
Extension
(
...
...
@@ -110,6 +117,8 @@ setup(
],
bob_packages
=
bob_packages
,
version
=
version
,
packages
=
packages
,
boost_modules
=
boost_modules
,
),
],
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment