From 063aab5c3cf962415c977dc918791855a2e2ff16 Mon Sep 17 00:00:00 2001 From: Richard Townsend Date: Mon, 11 Jul 2016 23:01:16 +0100 Subject: [PATCH] knn: making space for additional test data --- knn/knn_test.go | 8 ++++---- knn/{knn_test.csv => knn_test_1.csv} | 0 knn/{knn_train.csv => knn_train_1.csv} | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename knn/{knn_test.csv => knn_test_1.csv} (100%) rename knn/{knn_train.csv => knn_train_1.csv} (100%) diff --git a/knn/knn_test.go b/knn/knn_test.go index af76181c..6c3fd12f 100644 --- a/knn/knn_test.go +++ b/knn/knn_test.go @@ -8,10 +8,10 @@ import ( func TestKnnClassifierWithoutOptimisations(t *testing.T) { Convey("Given labels, a classifier and data", t, func() { - trainingData, err := base.ParseCSVToInstances("knn_train.csv", false) + trainingData, err := base.ParseCSVToInstances("knn_train_1.csv", false) So(err, ShouldBeNil) - testingData, err := base.ParseCSVToInstances("knn_test.csv", false) + testingData, err := base.ParseCSVToInstances("knn_test_1.csv", false) So(err, ShouldBeNil) cls := NewKnnClassifier("euclidean", 2) @@ -38,10 +38,10 @@ func TestKnnClassifierWithoutOptimisations(t *testing.T) { func TestKnnClassifierWithOptimisations(t *testing.T) { Convey("Given labels, a classifier and data", t, func() { - trainingData, err := base.ParseCSVToInstances("knn_train.csv", false) + trainingData, err := base.ParseCSVToInstances("knn_train_1.csv", false) So(err, ShouldBeNil) - testingData, err := base.ParseCSVToInstances("knn_test.csv", false) + testingData, err := base.ParseCSVToInstances("knn_test_1.csv", false) So(err, ShouldBeNil) cls := NewKnnClassifier("euclidean", 2) diff --git a/knn/knn_test.csv b/knn/knn_test_1.csv similarity index 100% rename from knn/knn_test.csv rename to knn/knn_test_1.csv diff --git a/knn/knn_train.csv b/knn/knn_train_1.csv similarity index 100% rename from knn/knn_train.csv rename to knn/knn_train_1.csv