<reponame>ChristophRaab/RRSLVQ
import os,sys
import glob
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np

SIZE = 16
SMALL = 14
plt.rc('font', size=SIZE)  # controls default text sizes
plt.rc('axes', titlesize=SIZE)  # fontsize of the axes title
plt.rc('axes', labelsize=SIZE)  # fontsize of the x and y labels
plt.rc('xtick', labelsize=SMALL)  # fontsize of the tick labels
plt.rc('ytick', labelsize=SMALL)  # fontsize of the tick labels
plt.rc('legend', fontsize=SMALL)  # legend fontsize
plt.rc('figure', titlesize=SIZE)
files = ["Mixed Generator_Mixed Generator_1000_100_memory_other.csv","Mixed Generator_memory_other.csv"]
names = ["RA_Mixed_other.eps","A_Mixed_others.eps"]
for file_name,file in zip(names,files):
    names = ["hat","rslvq", "arslvq", "adf", "oza"]

    df =pd.read_csv("data/"+file,skiprows=9)


    clfs = [df["model_size_["+name+"]"].values for name in names]
    names = names
    fig, ax = plt.subplots()

    for clf,name in zip(clfs,names):

        print(name+ " max " +str(np.max(clf)) + " min "+str(np.min(clf)))

        ax.plot(df["id"], clf,label=name)


    ax.legend()
    ax.set(xlabel="Timesteps", ylabel='Memory Usage in KB')
    plt.show()
    fig.savefig(file_name, dpi=1000, format='eps',bbox_inches='tight')

SIZE = 18
SMALL = 14
plt.rc('font', size=SIZE)  # controls default text sizes
plt.rc('axes', titlesize=SIZE)  # fontsize of the axes title
plt.rc('axes', labelsize=SIZE)  # fontsize of the x and y labels
plt.rc('xtick', labelsize=SMALL)  # fontsize of the tick labels
plt.rc('ytick', labelsize=SMALL)  # fontsize of the tick labels
plt.rc('legend', fontsize=SMALL)  # legend fontsize
plt.rc('figure', titlesize=SIZE)
files = ["Mixed Generator_Mixed Generator_1000_100_memory_samknn.csv", "DriftingMixed Generator_memory_samknn.csv"]
names = ["RA_Mixed_samknn.eps","A_Mixed_samknn.eps"]
for file_name,file in zip(names,files):
    names = ["SamKnn"]

    df =pd.read_csv("data/"+file,skiprows=5)


    clfs = [df["model_size_["+name+"]"].values for name in names]
    fig, ax = plt.subplots()

    for clf,name in zip(clfs,names):

        print(name+ " max " +str(np.max(clf)) + " min "+str(np.min(clf)))

        ax.plot(df["id"], clf,label=name)


    ax.legend()
    ax.set(xlabel="Timesteps", ylabel='Memory Usage in KB')
    plt.show()
    fig.savefig(file_name, dpi=1000, format='eps',bbox_inches='tight')
import os,sys
import glob
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np

SIZE = 16
SMALL = 14
plt.rc('font', size=SIZE)  # controls default text sizes
plt.rc('axes', titlesize=SIZE)  # fontsize of the axes title
plt.rc('axes', labelsize=SIZE)  # fontsize of the x and y labels
plt.rc('xtick', labelsize=SMALL)  # fontsize of the tick labels
plt.rc('ytick', labelsize=SMALL)  # fontsize of the tick labels
plt.rc('legend', fontsize=SMALL)  # legend fontsize
plt.rc('figure', titlesize=SIZE)
files = ["Mixed Generator_Mixed Generator_1000_100_memory_other.csv","Mixed Generator_memory_other.csv"]
names = ["RA_Mixed_other.eps","A_Mixed_others.eps"]
for file_name,file in zip(names,files):
    names = ["hat","rslvq", "arslvq", "adf", "oza"]

    df =pd.read_csv("data/"+file,skiprows=9)


    clfs = [df["model_size_["+name+"]"].values for name in names]
    names = names
    fig, ax = plt.subplots()

    for clf,name in zip(clfs,names):

        print(name+ " max " +str(np.max(clf)) + " min "+str(np.min(clf)))

        ax.plot(df["id"], clf,label=name)


    ax.legend()
    ax.set(xlabel="Timesteps", ylabel='Memory Usage in KB')
    plt.show()
    fig.savefig(file_name, dpi=1000, format='eps',bbox_inches='tight')

SIZE = 18
SMALL = 14
plt.rc('font', size=SIZE)  # controls default text sizes
plt.rc('axes', titlesize=SIZE)  # fontsize of the axes title
plt.rc('axes', labelsize=SIZE)  # fontsize of the x and y labels
plt.rc('xtick', labelsize=SMALL)  # fontsize of the tick labels
plt.rc('ytick', labelsize=SMALL)  # fontsize of the tick labels
plt.rc('legend', fontsize=SMALL)  # legend fontsize
plt.rc('figure', titlesize=SIZE)
files = ["Mixed Generator_Mixed Generator_1000_100_memory_samknn.csv", "DriftingMixed Generator_memory_samknn.csv"]
names = ["RA_Mixed_samknn.eps","A_Mixed_samknn.eps"]
for file_name,file in zip(names,files):
    names = ["SamKnn"]

    df =pd.read_csv("data/"+file,skiprows=5)


    clfs = [df["model_size_["+name+"]"].values for name in names]
    fig, ax = plt.subplots()

    for clf,name in zip(clfs,names):

        print(name+ " max " +str(np.max(clf)) + " min "+str(np.min(clf)))

        ax.plot(df["id"], clf,label=name)


    ax.legend()
    ax.set(xlabel="Timesteps", ylabel='Memory Usage in KB')
    plt.show()
    fig.savefig(file_name, dpi=1000, format='eps',bbox_inches='tight')
# controls default text sizes # fontsize of the axes title # fontsize of the x and y labels # fontsize of the tick labels # fontsize of the tick labels # legend fontsize # controls default text sizes # fontsize of the axes title # fontsize of the x and y labels # fontsize of the tick labels # fontsize of the tick labels # legend fontsize