Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
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
Show more breadcrumbs
Sébastien Peillet
otb
Commits
9e86da60
Commit
9e86da60
authored
8 years ago
by
Julien Michel
Browse files
Options
Downloads
Patches
Plain Diff
DOC: Update Cookbook wirth new modes
parent
837a4716
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Documentation/Cookbook/rst/recipes/pbclassif.rst
+24
-2
24 additions, 2 deletions
Documentation/Cookbook/rst/recipes/pbclassif.rst
with
24 additions
and
2 deletions
Documentation/Cookbook/rst/recipes/pbclassif.rst
+
24
−
2
View file @
9e86da60
...
...
@@ -104,7 +104,13 @@ There are several strategies to compute those sampling rates:
of samples, which is user-defined.
* **Smallest class strategy:** The class with the least number of samples
will be fully sampled. All other classes will be sampled with the
same number of samples.
same number of samples.
* **Percent strategy:** Each class will be sampled with a user-defined
percentage (same value for all classes) of samples available in this
class.
* **Total strategy:** A global number of samples to generate is
divided proportionally among each class (classes proportions are
enforced).
* **Take all strategy:** Take all the available samples
* **By class strategy:** Set a target number of samples for each
class. The number of samples for each class is read from a CSV file.
...
...
@@ -246,7 +252,23 @@ image.
- *Mode = custom:* For each image :math:`i` and each class :math:`c`,
:math:`Ni( c ) = M_i(c)` where :math:`M_i(c)` is the custom requested number of
samples for each image :math:`i` and each class :math:`c`
* **Strategy = percent**
- *Mode = proportional:* For each image :math:`i` and each class :math:`c`,
:math:`N_i( c ) = p * T_i(c)` where :math:`p` is the user-defined percentage
- *Mode = equal:* For each image :math:`i` and each class :math:`c`,
:math:`N_i( c ) = p * sum_k(Tk(c)]/L` where :math:`p` is the user-defined percentage
- *Mode = custom:* For each image :math:`i` and each class :math:`c`,
:math:`Ni( c ) = p(i) * T_i(c)` where :math:`p(i)` is the user-defined percentage for image :math:`i`
* **Strategy = total**
- *Mode = proportional:* For each image :math:`i` and each class :math:`c`,
:math:`N_i( c ) = total * (sum_k(Ti(k))/sum_kl(Tl(k))) * (Ti(c)/sum_k(Ti(k)))` where :math:`total` is the total number of samples specified
- *Mode = equal:* For each image :math:`i` and each class :math:`c`,
:math:`N_i( c ) = (total / L) * (Ti(c)/sum_k(Ti(k)))` where :math:`total` is the total number of samples specified
- *Mode = custom:* For each image :math:`i` and each class :math:`c`,
:math:`Ni( c ) = total(i) * (Ti(c)/sum_k(Ti(k)))` where :math:`total(i)` is the total number of samples specified for image :math:`i`
* **Strategy = smallest class**
- *Mode = proportional:* the smallest class is computed globally, then this smallest size is used for the strategy constant+proportional
...
...
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