More robust dataset

This commit is contained in:
Philippe Tillet
2014-09-30 10:11:22 +02:00
parent 0a1894d003
commit 3523a3756f
5 changed files with 73 additions and 83 deletions

View File

@@ -9,8 +9,6 @@ def train_model(X, Y, profiles):
X = scaler.transform(X);
ref = np.argmax(np.bincount(np.argmax(Y, axis=1))) #most common profile
print Y
print np.bincount(np.argmax(Y, axis=1))
#Cross-validation data-sets
cut = int(0.5*X.shape[0]+1);
XTr = X[0:cut, :];