Commit b567e688 authored by Jordi Inglada's avatar Jordi Inglada

ENH: correct default stdfactor for jitter strategy

parent e3028af8
......@@ -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",10000);
SetDefaultParameterFloat("strategy.jitter.stdfactor",10);
AddChoice("strategy.smote","Smote input samples");
SetParameterDescription("strategy.smote","The new samples are generated "
......
......@@ -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 multiplied by stdFactor (defaults to 1). The
* input variables divided by stdFactor (defaults to 10). The
* elements of newSamples are removed before proceeding.
*/
void jitterSamples(const SampleVectorType& inSamples,
const size_t nbSamples,
SampleVectorType& newSamples,
float stdFactor=10000,
float stdFactor=10,
const int seed = std::time(nullptr))
{
newSamples.resize(nbSamples);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment