Skip to content

Commit 74e1025

Browse files
[7.x][ML] Rename outlier detection method values (#598) (#606)
Closes #597
1 parent a05a0ff commit 74e1025

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

docs/CHANGELOG.asciidoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@
2828
2929
//=== Regressions
3030
31+
== {es} version 7.4.0
32+
33+
=== Bug Fixes
34+
35+
* Rename outlier detection method values knn and tnn to distance_kth_nn and distance_knn
36+
respectively to match the API. (See {ml-pull}598[#598].)
37+
3138
== {es} version 7.3.1
3239
3340
=== Bug Fixes

lib/api/CDataFrameOutliersRunner.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ const std::string OUTLIER_FRACTION{"outlier_fraction"};
3737
const CDataFrameAnalysisConfigReader PARAMETER_READER{[] {
3838
const std::string lof{"lof"};
3939
const std::string ldof{"ldof"};
40-
const std::string knn{"knn"};
41-
const std::string tnn{"tnn"};
40+
const std::string knn{"distance_kth_nn"};
41+
const std::string tnn{"distance_knn"};
4242
CDataFrameAnalysisConfigReader theReader;
4343
theReader.addParameter(STANDARDIZE_COLUMNS,
4444
CDataFrameAnalysisConfigReader::E_OptionalParameter);

lib/api/unittest/CDataFrameAnalyzerTest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ void CDataFrameAnalyzerTest::testRunOutlierDetectionWithParams() {
464464
// Test the method and number of neighbours parameters are correctly
465465
// propagated to the analysis runner.
466466

467-
TStrVec methods{"lof", "ldof", "knn", "tnn"};
467+
TStrVec methods{"lof", "ldof", "distance_kth_nn", "distance_knn"};
468468

469469
for (const auto& method :
470470
{maths::COutliers::E_Lof, maths::COutliers::E_Ldof,

0 commit comments

Comments
 (0)