average_metadata_error_corr, average_metadata_lstm, average_char_unigram_sim, average_char_bigram_sim, average_metadata_sim, average_word_unigram_sim ] names = [ "Char unigrams + Metadata (UM)", "Char unigrams + Metadata + Error correlation (UME)", "LSTM + Metadata (LM)", "Char unigrams (U)", "Char unigrams + bigrams (UB)", "Metadata (M)", "Word unigrams (WU)" ] plot_list_latex(ranges, list, names, "Hospital", x_max=600) plot_list(ranges, list, names, "Hospital", x_max=600, end_of_round=238) plot_integral(ranges, list, names, "Hospital", x_max=800, x_min=238) #plot_integral_latex(ranges, list, names, "Hospital", x_max=800, sorted=False) #plot_outperform(ranges, list, names, "Hospital", 1.0, x_max=800)
] list = [ average_roundrobin_sim, average_metadata_with_extr_number ] names = [ "round robin", "round robin old" ] ''' ''' #vergleich random ranges = [labels_optimum, label_random ] list = [ average_random_sim, average_metadata_no_svd_random ] names = [ "round robin", "round robin old" ] ''' plot_list_latex(ranges, list, names, "Address", x_max=200) plot_list(ranges, list, names, "Address") #plot_integral(ranges, list, names, "Address", x_max=150, x_min=98) #plot_end(ranges, list, names, "Address", x_max=150, x_min=98) #plot_integral_latex(ranges, list, names, "Address", x_max=350) #plot_outperform_latex(ranges, list, names, "Address",0.904, x_max=350)
labels_all, labels_all, ] list = [average_metadata_char_unigrams_sim, average_char_unigram_sim, average_char_bigram_sim, average_metadata_sim, average_word_unigram_sim ] names = [ "Metadata + char unigrams", "Char unigrams", "Char bigrams", "Metadata", "Word unigrams" ] ''' ranges = [labels_all, labels_all] list = [average_metadata_char_unigrams_sim, average_metadata_error_corr] names = [ "Metadata + char unigrams", "Metadata + char unigrams + error correlation" ] plot_list_latex(ranges, list, names, "Address", x_max=200) plot_list(ranges, list, names, "Address", x_max=200, end_of_round=98) plot_integral(ranges, list, names, "Address", x_max=150, x_min=98) #plot_end(ranges, list, names, "Address", x_max=150, x_min=98) #plot_integral_latex(ranges, list, names, "Address", x_max=350) #plot_outperform_latex(ranges, list, names, "Address",0.904, x_max=350)
ranges = [labels_optimum, labels_optimum, labels_optimum, labels_optimum, labels_optimum ] list = [average_maxuncertainty_sim, average_maxchangeprediction_sim, average_roundrobin_sim, average_random_sim, average_mincross_sim ] names = [ "Min certainty", "Max prediction change", "Round robin", "Random", "Max training error" ] plot_list(ranges, list, names, "Hospital", x_max=600) plot_list_latex(ranges, list, names, "Hosital", x_max=600) #plot_integral(ranges, list, names, "Flights", x_max=200,x_min=56, sorted=True) #plot_end(ranges, list, names, "Flights", x_max=200,x_min=56, sorted=True) #plot_outperform(ranges, list, names, "Flights", 0.7366, x_max=200) #plot_outperform(ranges, list, names, "Flights", 0.9, x_max=200)
import numpy as np from ml.plot.newer.column_strategy_sim.plotlatex_lib import plot_list_latex from ml.plot.newer.column_strategy_sim.plotlatex_lib import plot_list from ml.plot.newer.column_strategy_sim.plotlatex_lib import plot_integral from ml.plot.newer.column_strategy_sim.plotlatex_lib import plot_integral_latex from ml.plot.newer.column_strategy_sim.plotlatex_lib import plot_outperform from ml.plot.newer.column_strategy_sim.plotlatex_lib import plot_outperform_latex label_0 = [4, 14, 24, 34, 44] fscore_metadata_with_extr_number = [] fscore_metadata_with_extr_number.append([ 0.5065502183406114, 0.9913043478260869, 0.9970845481049563, 0.9970845481049563, 1.0 ]) average_metadata_with_extr_number = list( np.mean(np.matrix(fscore_metadata_with_extr_number), axis=0).A1) #compare round robin ranges = [label_0] list = [average_metadata_with_extr_number] names = ["ED"] plot_list_latex(ranges, list, names, "Products", x_max=200) plot_list(ranges, list, names, "Products", x_max=150)
] list = [ average_roundrobin_sim, average_metadata_with_extr_number ] names = [ "round robin", "round robin old" ] ''' ''' #vergleich random ranges = [labels_optimum, label_random ] list = [ average_random_sim, average_metadata_no_svd_random ] names = [ "round robin", "round robin old" ] ''' plot_list_latex(ranges, list, names, "Address", x_max=200) plot_list(ranges, list, names, "Address", yname='train error fraction') #plot_integral(ranges, list, names, "Address", x_max=150, x_min=98) #plot_end(ranges, list, names, "Address", x_max=150, x_min=98) #plot_integral_latex(ranges, list, names, "Address", x_max=350) #plot_outperform_latex(ranges, list, names, "Address",0.904, x_max=350)
labels_all, #labels_all, #labels_all, #labels_all, #labels_all, labels_all ] list = [ average_metadata_char_unigrams_sim, #average_char_unigram_sim, #average_char_bigram_sim, #average_metadata_sim, #average_word_unigram_sim, average_metadata_error_corr ] names = [ "Metadata + char unigrams", #"Char unigrams", #"Char bigrams", #"Metadata", #"Word unigrams", "Metadata + char unigrams + error correlation" ] plot_list(ranges, list, names, "Flights", x_max=200, end_of_round=56) plot_list_latex(ranges, list, names, "Flights", x_max=200) plot_integral(ranges, list, names, "Flights", x_max=200, x_min=56, sorted=True) #plot_end(ranges, list, names, "Flights", x_max=200,x_min=56, sorted=True) #plot_outperform(ranges, list, names, "Flights", 0.7366, x_max=200) #plot_outperform(ranges, list, names, "Flights", 0.9, x_max=200)
] list = [ average_roundrobin_sim, average_metadata_with_extr_number ] names = [ "round robin", "round robin old" ] ''' ''' #vergleich random ranges = [labels_optimum, label_random ] list = [ average_random_sim, average_metadata_no_svd_random ] names = [ "round robin", "round robin old" ] ''' plot_list_latex(ranges, list, names, "Songs", x_max=200) plot_list(ranges, list, names, "Songs") #plot_integral(ranges, list, names, "Address", x_max=150, x_min=98) #plot_end(ranges, list, names, "Address", x_max=150, x_min=98) #plot_integral_latex(ranges, list, names, "Address", x_max=350) #plot_outperform_latex(ranges, list, names, "Address",0.904, x_max=350)