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
b567e688
Commit
b567e688
authored
7 years ago
by
Jordi Inglada
Browse files
Options
Downloads
Patches
Plain Diff
ENH: correct default stdfactor for jitter strategy
parent
e3028af8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Modules/Applications/AppClassification/app/otbSampleAugmentation.cxx
+1
-1
1 addition, 1 deletion
...lications/AppClassification/app/otbSampleAugmentation.cxx
Modules/Learning/Sampling/include/otbSampleAugmentation.h
+2
-2
2 additions, 2 deletions
Modules/Learning/Sampling/include/otbSampleAugmentation.h
with
3 additions
and
3 deletions
Modules/Applications/AppClassification/app/otbSampleAugmentation.cxx
+
1
−
1
View file @
b567e688
...
...
@@ -116,7 +116,7 @@ private:
"The noise added to the input samples will have the "
"standard deviation of the input features divided "
"by the value of this parameter. "
);
SetDefaultParameterFloat
(
"strategy.jitter.stdfactor"
,
10
000
);
SetDefaultParameterFloat
(
"strategy.jitter.stdfactor"
,
10
);
AddChoice
(
"strategy.smote"
,
"Smote input samples"
);
SetParameterDescription
(
"strategy.smote"
,
"The new samples are generated "
...
...
This diff is collapsed.
Click to expand it.
Modules/Learning/Sampling/include/otbSampleAugmentation.h
+
2
−
2
View file @
b567e688
...
...
@@ -85,13 +85,13 @@ void replicateSamples(const SampleVectorType& inSamples,
/** Create new samples by adding noise to existing samples. Gaussian
* noise is added to randomly selected samples. The standard deviation
* of the noise added to each component is the same as the one of the
* input variables
multipli
ed by stdFactor (defaults to 1). The
* input variables
divid
ed by stdFactor (defaults to 1
0
). The
* elements of newSamples are removed before proceeding.
*/
void
jitterSamples
(
const
SampleVectorType
&
inSamples
,
const
size_t
nbSamples
,
SampleVectorType
&
newSamples
,
float
stdFactor
=
10
000
,
float
stdFactor
=
10
,
const
int
seed
=
std
::
time
(
nullptr
))
{
newSamples
.
resize
(
nbSamples
);
...
...
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