MCPcopy Create free account
hub / github.com/catboost/catboost / InjurePool

Method InjurePool

library/cpp/linear_regression/benchmark/pool.cpp:98–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98TPool TPool::InjurePool(const double injureFactor, const double injureOffset) const {
99 TPool injuredPool(*this);
100
101 for (TInstance& instance : injuredPool) {
102 for (double& feature : instance.Features) {
103 feature = feature * injureFactor + injureOffset;
104 }
105 instance.Goal = instance.Goal * injureFactor + injureOffset;
106 }
107
108 return injuredPool;
109}

Callers 1

QualityBenchmarkFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected