Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
licenseplates
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
licenseplates
Commits
8473cbe5
Commit
8473cbe5
authored
Dec 21, 2011
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgot some return statements (A).
parent
bcd1c3d8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/create_characters.py
src/create_characters.py
+7
-2
No files found.
src/create_characters.py
View file @
8473cbe5
...
@@ -56,7 +56,10 @@ def load_learning_set(neighbours, blur_scale, verbose=0):
...
@@ -56,7 +56,10 @@ def load_learning_set(neighbours, blur_scale, verbose=0):
if
verbose
:
if
verbose
:
print
'Learning set:'
,
[
c
.
value
for
c
in
learning_set
]
print
'Learning set:'
,
[
c
.
value
for
c
in
learning_set
]
else
:
else
:
return
generate_sets
(
neighbours
,
blur_scale
,
verbose
=
verbose
)[
0
]
learning_set
=
generate_sets
(
neighbours
,
blur_scale
,
\
verbose
=
verbose
)[
0
]
return
learning_set
def
load_test_set
(
neighbours
,
blur_scale
,
verbose
=
0
):
def
load_test_set
(
neighbours
,
blur_scale
,
verbose
=
0
):
...
@@ -71,7 +74,9 @@ def load_test_set(neighbours, blur_scale, verbose=0):
...
@@ -71,7 +74,9 @@ def load_test_set(neighbours, blur_scale, verbose=0):
if
verbose
:
if
verbose
:
print
'Test set:'
,
[
c
.
value
for
c
in
test_set
]
print
'Test set:'
,
[
c
.
value
for
c
in
test_set
]
else
:
else
:
return
generate_sets
(
neighbours
,
blur_scale
,
verbose
=
verbose
)[
1
]
test_set
=
generate_sets
(
neighbours
,
blur_scale
,
verbose
=
verbose
)[
1
]
return
test_set
def
generate_sets
(
neighbours
,
blur_scale
,
verbose
=
0
):
def
generate_sets
(
neighbours
,
blur_scale
,
verbose
=
0
):
...
...
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