Ejemplo n.º 1
0
def f1_4hybrid_corr_emph():
    ms1 = "output/streamer/scheduler/atc/f1/f1-4hybrid-corr-emph-mainstream-simulator"
    max1 = "output/streamer/scheduler/atc/f1/f1-4hybrid-corr-emph-maxsharing"
    min1 = "output/streamer/scheduler/atc/f1/f1-4hybrid-corr-emph-nosharing"
    f1 = "f1-4hybrid-corr-emph"

    ms_files = [ms1]
    max_files = [max1]
    min_files = [min1]
    f_files = [f1]
    titles = [t1]

    scheduler.plot_f1(ms_files,
                      max_files,
                      min_files,
                      f_files,
                      titles,
                      plot_dir,
                      errbars=False,
                      legend_xargs=dict(loc=3))
    scheduler.plot_precision(ms_files,
                             max_files,
                             min_files,
                             f_files,
                             titles,
                             plot_dir,
                             errbars=False)
Ejemplo n.º 2
0
def f1_4hybrid():
    ms1 = "output/streamer/scheduler/atc/f1/f1-4hybrid-corr-emph-mainstream-simulator"
    max1 = "output/streamer/scheduler/atc/f1/f1-4hybrid-corr-emph-maxsharing"
    min1 = "output/streamer/scheduler/atc/f1/f1-4hybrid-corr-emph-nosharing"
    f1 = "f1-4hybrid"

    ms_files = [ms1]
    max_files = [max1]
    min_files = [min1]
    f_files = [f1]
    titles = [t1]
    hybrid4_annotations = [2, 6, 1, 5, 0, 6]
    hybrid4_annotations = [i + 2 for i in hybrid4_annotations
                           ]  # Because of left 2 points added.

    scheduler.plot_f1(ms_files,
                      max_files,
                      min_files,
                      f_files,
                      titles,
                      plot_dir,
                      annotations=hybrid4_annotations,
                      errbars=False,
                      legend_xargs=dict(loc=3))
    scheduler.plot_f1(ms_files,
                      max_files,
                      min_files,
                      f_files,
                      titles,
                      plot_dir,
                      errbars=False)
    scheduler.plot_recall(ms_files, max_files, min_files, f_files, titles,
                          plot_dir)
    scheduler.plot_precision(ms_files, max_files, min_files, f_files, titles,
                             plot_dir)
    scheduler_dual.plot_f1_dual(ms_files, max_files, min_files, f_files,
                                titles, plot_dir)
    scheduler_dual.plot_recall_dual(ms_files, max_files, min_files, f_files,
                                    titles, plot_dir)
    scheduler_dual.plot_precision_dual(ms_files, max_files, min_files, f_files,
                                       titles, plot_dir)
Ejemplo n.º 3
0
    arches = [arch1]
    latency_files = [latency_file1]
    accuracy_files = [accuracy_file1]
    labels = ["InceptionV3"]

    accuracy_tradeoffs.plot_accuracy_vs_fps_partial(arches, latency_files,
                                                    accuracy_files, labels,
                                                    plot_dir, "1")

    ms1 = "output/streamer/scheduler/v1/scheduler-v1-500-c0.1664-mainstream"
    max1 = "output/streamer/scheduler/v1/scheduler-v1-500-c0.1664-maxsharing"
    min1 = "output/streamer/scheduler/v1/scheduler-v1-500-c0.1664-nosharing"
    f1 = "scheduler-500-c0.1664-ll2"
    t1 = ""
    plot_dir = "plots/scheduler/v1/"

    ms_files = [ms1]
    max_files = [max1]
    min_files = [min1]
    f_files = [f1]
    f_files_annotated = [f + "-annotated" for f in f_files]
    titles = [t1]

    scheduler.plot_recall(ms_files, max_files, min_files, f_files, titles,
                          plot_dir, False, 1)
    scheduler.plot_precision(ms_files, max_files, min_files, f_files, titles,
                             plot_dir)
    scheduler.plot_f1(ms_files, max_files, min_files, f_files, titles,
                      plot_dir)