stats.py
def create_STATS(path):
    '''
    Gather the max accuracies and percisions of all the classifers and feature selection methods and save them in a csv file.

    Args:
        path: Directory from which the python file is being run
    '''
    os.chdir(path+'/resultsparallel')
    df = pd.DataFrame(columns=['filename','Accuracy', 'F1'])
    for file in glob.glob("*finalscore.csv"):
        data = pd.read_csv(file,skipinitialspace=True, header = 0)
        max_ac = data['Average Accuracy'].max()
        max_f1 = data['Average F1'].max()
        df = df.append({'filename':file,'Accuracy':max_ac,'F1': max_f1}, ignore_index=True)
    df.to_csv(path+'/STATS/max_scores_in_summary.csv',index=True)

    Gather the max accuracies and percisions of all the classifers and feature selection methods and save them in a csv file.

    Args:
        path: Directory from which the python file is being run
    
Gather the max accuracies and percisions of all the classifers and feature selection methods and save them in a csv file.
Gather the max accuracies and percisions of all the classifers and feature selection methods and save them in a csv file .
def create_STATS(path):
    os.chdir(path+'/resultsparallel')
    df = pd.DataFrame(columns=['filename','Accuracy', 'F1'])
    for file in glob.glob("*finalscore.csv"):
        data = pd.read_csv(file,skipinitialspace=True, header = 0)
        max_ac = data['Average Accuracy'].max()
        max_f1 = data['Average F1'].max()
        df = df.append({'filename':file,'Accuracy':max_ac,'F1': max_f1}, ignore_index=True)
    df.to_csv(path+'/STATS/max_scores_in_summary.csv',index=True)
def create_STATS ( path ) : os . chdir ( path + '/resultsparallel' ) df = pd . DataFrame ( columns = [ 'filename' , 'Accuracy' , 'F1' ] ) for file in glob . glob ( "*finalscore.csv" ) : data = pd . read_csv ( file , skipinitialspace = True , header = 0 ) max_ac = data [ 'Average Accuracy' ] . max ( ) max_f1 = data [ 'Average F1' ] . max ( ) df = df . append ( { 'filename' : file , 'Accuracy' : max_ac , 'F1' : max_f1 } , ignore_index = True ) df . to_csv ( path + '/STATS/max_scores_in_summary.csv' , index = True )
Gather the max accuracies and percisions of all the classifers and feature selection methods and save them in a csv file.
Gather the max accuracies and percisions of all the classifers and feature selection methods and save them in a csv file .
'''
    Gather the max accuracies and percisions of all the classifers and feature selection methods and save them in a csv file.

    Args:
        path: Directory from which the python file is being run
    '''
path
Directory from which the python file is being run
Directory from which the python file is being run