Skip to content

Commit 8e9223b

Browse files
committed
Rename allknn to knn.
1 parent 5c1ec09 commit 8e9223b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

methods/scikit/allknn.py renamed to methods/scikit/knn.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
'''
2-
@file allknn.py
2+
@file knn.py
33
@author Marcus Edel
44
5-
All K-Nearest-Neighbors with scikit.
5+
K-Nearest-Neighbors with scikit.
66
'''
77

88
import os, sys, inspect
@@ -18,11 +18,11 @@
1818
from sklearn.neighbors import NearestNeighbors
1919

2020
'''
21-
This class implements the All K-Nearest-Neighbors benchmark.
21+
This class implements the K-Nearest-Neighbors benchmark.
2222
'''
23-
class SCIKIT_ALLKNN(object):
23+
class SCIKIT_KNN(object):
2424
def __init__(self, method_param, run_param):
25-
self.info = "SCIKIT_ALLKNN (" + str(method_param) + ")"
25+
self.info = "SCIKIT_KNN (" + str(method_param) + ")"
2626

2727
# Assemble run model parameter.
2828
self.data = load_dataset(method_param["datasets"], ["csv"])

test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1327,11 +1327,11 @@ SCIKIT_SVR:
13271327
epsilon: 1.0
13281328
gamma: 0.1
13291329
---
1330-
SCIKIT_ALLKNN:
1330+
SCIKIT_KNN:
13311331
library: scikit
13321332
method: knn
13331333
run: ['metric']
1334-
script: methods/scikit/allknn.py
1334+
script: methods/scikit/knn.py
13351335
datasets:
13361336
- 'datasets/wine.csv'
13371337
- 'datasets/wine_qual.csv'

0 commit comments

Comments
 (0)