diff options
-rwxr-xr-x | evaluate.py | 7 | ||||
-rwxr-xr-x | opt.py | 1 |
2 files changed, 0 insertions, 8 deletions
diff --git a/evaluate.py b/evaluate.py index 0f8fe48..99e5eed 100755 --- a/evaluate.py +++ b/evaluate.py @@ -8,21 +8,14 @@ # [-K KMEAN] [-A] [-P PCA] import matplotlib.pyplot as plt -from mpl_toolkits.mplot3d import Axes3D import sys -import random import os import json import scipy.io -from random import randint -from sklearn.neighbors import KNeighborsClassifier from sklearn.neighbors import NearestNeighbors -from sklearn.neighbors import DistanceMetric from sklearn.cluster import KMeans from sklearn.decomposition import PCA -from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA from sklearn.model_selection import train_test_split -from sklearn.preprocessing import StandardScaler from sklearn.metrics import confusion_matrix from sklearn.metrics import accuracy_score import argparse @@ -30,7 +30,6 @@ import numpy as np from numpy import genfromtxt from numpy import linalg as LA from timeit import default_timer as timer -from scipy.spatial.distance import cdist sys.path.append('lib') from rerank import re_ranking from kmean import create_kmean_clusters |