Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.learn.boosting
Commits
9198f6bb
Commit
9198f6bb
authored
Jan 20, 2016
by
Tiago de Freitas Pereira
Browse files
Replaced the self keyword to cls for the class methods
parent
7465d1ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/learn/boosting/tests/test_boosting.py
View file @
9198f6bb
...
...
@@ -9,14 +9,14 @@ class TestBoosting(unittest.TestCase):
"""Class to test the LUT trainer """
@
classmethod
def
setUpClass
(
self
):
def
setUpClass
(
cls
):
# create a single copy of the MNIST database to avoid downloading the packages several times
self
.
database
=
bob
.
learn
.
boosting
.
utils
.
MNIST
()
cls
.
database
=
bob
.
learn
.
boosting
.
utils
.
MNIST
()
@
classmethod
def
tearDownClass
(
self
):
def
tearDownClass
(
cls
):
# Clean up the mess that we created
del
self
.
database
del
cls
.
database
def
_data
(
self
,
digits
=
[
3
,
0
],
count
=
20
):
# get the data
...
...
Write
Preview
Supports
Markdown
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