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
8641db89
Commit
8641db89
authored
Dec 21, 2011
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed cache problem im performance script.
parent
00a20f6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/test_performance.py
src/test_performance.py
+5
-0
No files found.
src/test_performance.py
View file @
8641db89
...
@@ -20,10 +20,15 @@ classifier_file = 'classifier%s.dat' % suffix
...
@@ -20,10 +20,15 @@ classifier_file = 'classifier%s.dat' % suffix
print
'Loading characters...'
print
'Loading characters...'
chars
=
load
(
open
(
chars_file
,
'r'
))[:
count
]
chars
=
load
(
open
(
chars_file
,
'r'
))[:
count
]
count
=
len
(
chars
)
count
=
len
(
chars
)
for
char
in
chars
:
del
char
.
feature
print
'Read %d characters'
%
count
print
'Read %d characters'
%
count
print
'Loading classifier...'
print
'Loading classifier...'
classifier
=
Classifier
(
filename
=
classifier_file
)
classifier
=
Classifier
(
filename
=
classifier_file
)
classifier
.
neighbours
=
neighbours
start
=
time
()
start
=
time
()
...
...
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