aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVasil Zlatanov <v@skozl.com>2018-12-12 23:13:43 +0000
committerVasil Zlatanov <v@skozl.com>2018-12-12 23:13:43 +0000
commit7eef0dccc6ff8cfa2e75fa3d940f9a2f38144611 (patch)
treed24ea5bcd36ef72f722837d455962441d57b4d8a
parent04821e29972826a65fa5a19387c60388254c0efb (diff)
downloadvz215_np1915-7eef0dccc6ff8cfa2e75fa3d940f9a2f38144611.tar.gz
vz215_np1915-7eef0dccc6ff8cfa2e75fa3d940f9a2f38144611.tar.bz2
vz215_np1915-7eef0dccc6ff8cfa2e75fa3d940f9a2f38144611.zip
Remove some imports which slow us down
-rwxr-xr-xevaluate.py7
-rwxr-xr-xopt.py1
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
diff --git a/opt.py b/opt.py
index 29acea4..fb5c089 100755
--- a/opt.py
+++ b/opt.py
@@ -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