Skip to content
Snippets Groups Projects
Commit 14b44192 authored by Baptiste Bauvin's avatar Baptiste Bauvin
Browse files

Added std in csv

parent d137b537
No related branches found
No related tags found
No related merge requests found
......@@ -244,7 +244,17 @@ def plotMetricScores(trainScores, testScores, names, nbResults, metricName, file
f.savefig(fileName+'.png')
plt.close()
import pandas as pd
dataframe = pd.DataFrame(np.transpose(np.concatenate((trainScores.reshape((trainScores.shape[0], 1)), testScores.reshape((trainScores.shape[0], 1))), axis=1)), columns=names)
if train_STDs is None :
dataframe = pd.DataFrame(np.transpose(np.concatenate((
trainScores.reshape((trainScores.shape[0], 1)),
testScores.reshape((trainScores.shape[0], 1))), axis=1)),
columns=names)
else:
dataframe = pd.DataFrame(np.transpose(np.concatenate((
trainScores.reshape((trainScores.shape[0], 1)),
train_STDs.reshape((trainScores.shape[0], 1)),
testScores.reshape((trainScores.shape[0], 1)),
test_STDs.reshape((trainScores.shape[0], 1))), axis=1)), columns=names)
dataframe.to_csv(fileName+".csv")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment