Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit 0725d4ea authored by Ngocson's avatar Ngocson

modifying variable again

parent 9a915bbf
......@@ -50,15 +50,15 @@ def scoreKmeansOverN(trainData,trainLabel,testData,testLabel,N):
scores.append(score)
return(scores)
sc = np.array(scoreKmeansOverN(WineTrainData,
WineTrainLabel,
WineTestData,
WineTestLabel,
sc = np.array(scoreKmeansOverN(MNISTtrainData,
MNISTtrainLabel,
MNISTtestData,
MNISTtestLabel,
N))
tr_score = sc[:,0]
te_score = sc[:,1]
plt.figure('Kmean over WINE')
fig, ax = plt.subplots()
fig = plt.figure('Kmean over WINE')
_, ax = plt.subplots()
plt.plot(range(1,N),tr_score,'b.-',label='training score')
plt.plot(range(1,N),te_score,'r.-',label='testing score')
legend = ax.legend(loc=(0.6,0.1), shadow=True)
......
......@@ -8,6 +8,8 @@ Created on Sat Mar 23 15:15:40 2019
import numpy as np
from numpy import genfromtxt
import csv
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment