def get_results_from_file(filename):
    """
    Reads accuracy results from file and returns them.
    @param filename: the name of the file to get accuracies from.
    @return: list of accuracies.
    """
    results = []
    #for all lines in the given filename
    for line in open(filename).readlines():
        # if we have a line containing results
        if "{F" in line:
            # store all accuracy observations of this threshold.
            results.append(float(line.split(" ")[-2]))
    return results