Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
5be14782
Commit
5be14782
authored
Aug 08, 2013
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarified comments
parent
c87571ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
svm_struct.py
python_examples/svm_struct.py
+5
-4
No files found.
python_examples/svm_struct.py
View file @
5be14782
...
...
@@ -91,9 +91,9 @@ class three_class_classifier_problem:
# At test time, the best label for a new x is given by the y which maximizes F(x,y).
# To put this into the context of the current example, F(x,y) computes the score for a
# given sample and class label. The predicted class label is therefore whatever value
# of y
makes F(x,y) the biggest. This is exactly what predict_label() does. That is,
#
it computes F(x,0), F(x,1), and F(x,2) and then reports which label has the biggest
# value.
# of y
which makes F(x,y) the biggest. This is exactly what predict_label() does.
#
That is, it computes F(x,0), F(x,1), and F(x,2) and then reports which label has the
#
biggest
value.
#
# At a high level, a structural SVM can be thought of as searching the parameter space
# of F(x,y) for the set of parameters that make the following inequality true as often
...
...
@@ -167,7 +167,8 @@ class three_class_classifier_problem:
# The optimizer uses an internal cache to avoid unnecessary calls to your
# separation_oracle() routine. This parameter controls the size of that cache. Bigger
# values use more RAM and might make the optimizer run faster. You can also disable it
# by setting it to 0 which is good to do when your separation_oracle is very fast.
# by setting it to 0 which is good to do when your separation_oracle is very fast. If
# If you don't call this function it defaults to a value of 5.
#max_cache_size = 20
...
...
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