Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
licenseplates
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Taddeüs Kroes
licenseplates
Commits
09073bf3
Commit
09073bf3
authored
13 years ago
by
Taddeus Kroes
Browse files
Options
Downloads
Patches
Plain Diff
Removed unused import.
parent
7fc61239
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/Classifier.py
+1
-2
1 addition, 2 deletions
src/Classifier.py
with
1 addition
and
2 deletions
src/Classifier.py
+
1
−
2
View file @
09073bf3
from
svmutil
import
svm_train
,
svm_problem
,
svm_parameter
,
svm_predict
,
\
svm_save_model
,
svm_load_model
from
cPickle
import
dump
,
load
class
Classifier
:
def
__init__
(
self
,
c
=
None
,
filename
=
None
):
if
filename
:
# If a filename is given, load a modl from the fiven filename
# If a filename is given, load a mod
e
l from the fiven filename
self
.
model
=
svm_load_model
(
filename
)
else
:
self
.
param
=
svm_parameter
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment