Skip to content

Commit

Permalink
removed duplicate file
Browse files Browse the repository at this point in the history
  • Loading branch information
CamachoBry committed Feb 23, 2021
1 parent 11786f3 commit 4204f83
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 579 deletions.
Binary file not shown.
12 changes: 12 additions & 0 deletions multi_participants/mind_reading_package/mind_reading.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
from sklearn.preprocessing import MinMaxScaler
from sklearn.model_selection import train_test_split
from sklearn.svm import SVC
Expand Down Expand Up @@ -565,3 +566,14 @@ def res_df(df, column, participant):
data = pd.DataFrame({f"Participant {participant}": column})
df[f"Participant {participant}"] = data[f"Participant {participant}"].values
return df


def graph_data(data):
data = pd.read_csv(data)
standErr = np.std(data, ddof=1, axis=1) / np.sqrt(np.size(data, axis=1))
data['mean'] = data.mean(axis=1)
plt.figure(figsize=(7, 8))
plt.errorbar(data['Unnamed: 0'], data['mean'], yerr=standErr, fmt='o',
color='Black', elinewidth=2, capthick=2, errorevery=1, alpha=1, ms=2, capsize=3)
# Bar plot
return plt.bar(data['Unnamed: 0'], data['mean'], tick_label=data['Unnamed: 0'], color='mediumslateblue')
Loading

0 comments on commit 4204f83

Please sign in to comment.