GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — UNACORM/Source/2_benchmark.py at master · AAnzel/UNACORM Expand file tree/ Copy path2_benchmark.pyMore file actions 187 lines (160 loc) · 5.46 KB / Copy path2_benchmark.pyFile metadata and controls187 lines (160 loc) · 5.46 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 import pandas as pd import streamlit as st import text_content as tc import utilities as uti import visualize as vis __author__ = ["Aleksandar Anžel", "Ihsan Tri Heldian"] __copyright__ = "" __credits__ = ["Aleksandar Anžel", "Ihsan Tri Heldian", "Chisom Anyabolu"] __license__ = "GNU General Public License v3.0" __version__ = "1.0.0" __maintainer__ = "Aleksandar Anžel" __status__ = "Stable" df_existing_summary = pd.read_pickle(uti.PATH_EXISTING_SUMMARY) df_existing_detail = pd.read_pickle(uti.PATH_EXISTING_DETAIL) list_files_to_visualize = list(pd.unique(df_existing_summary["Filename"])) st.header(":primary[︱]Benchmark", help=tc.STRING_MAIN_BENCHMARK_HELP) st.space(size="medium") uti.display_processed_data(df_existing_summary, df_existing_detail) st.divider() st.header(":primary[︱]Information Density", help=tc.STRING_DENSITY_HELP) chart_density = vis.visualize_density_benchmark(df_existing_summary) st.plotly_chart(chart_density, width="stretch") st.header(":primary[︱]Success Rate", help=tc.STRING_SUCCESS_RATE_HELP) chart_success_rate = vis.visualize_success_rate_general(df_existing_detail) st.plotly_chart(chart_success_rate, width="stretch") st.header(":primary[︱]Base Error", help=tc.STRING_BASE_ERROR_HELP) chart_base_error = vis.visualize_base_error_general( df_existing_detail, list_files_to_visualize ) st.plotly_chart(chart_base_error, width="stretch") st.header(":primary[︱]Detailed Charts per File and Error Multiplier") st.space(size="small") with st.container( border=True, horizontal=True, horizontal_alignment="distribute", gap="medium", ): with st.container(width=500): float_error_multiplier = st.select_slider( "Choose error multiplier value or leave it 0 to skip", value=uti.LIST_FLOAT_ERROR_MULTIPLIERS[0], options=uti.LIST_FLOAT_ERROR_MULTIPLIERS, key="detailed_charts_error_multiplier_slider", ) with st.popover( "What is error multiplier?", icon=":material/help:", width="stretch" ): st.markdown(tc.STRING_MUTAGENESIS_HELP) list_files_chosen = st.multiselect( "Select the files to review (This will affect charts below)", default=list_files_to_visualize, options=list_files_to_visualize, placeholder="Choose files", key="detailed_charts_multiselect", width=800, ) chart_success_rate_per_multiplier = vis.visualize_success_rate_per_multiplier( list_files_chosen, df_existing_detail, float_error_multiplier ) chart_success_rate_per_multiplier_and_file = ( vis.visualize_success_rate_per_multiplier_and_file( list_files_chosen, df_existing_detail, float_error_multiplier ) ) chart_information_density_per_multiplier = vis.visualize_density_per_multiplier( list_files_chosen, df_existing_summary, float_error_multiplier ) chart_information_density_per_multiplier_and_file = ( vis.visualize_density_per_multiplier_and_file( list_files_chosen, df_existing_summary, float_error_multiplier ) ) st.subheader( "Success Rate" + " " + ":small[Error Multiplier: " + ":primary-background[ " + str(float_error_multiplier) + "]]", help=tc.STRING_SUCCESS_RATE_HELP, ) st.plotly_chart(chart_success_rate_per_multiplier, width="stretch") st.plotly_chart(chart_success_rate_per_multiplier_and_file, width="stretch") st.subheader( "Information Density" + " " + ":small[Error Multiplier: " + ":primary-background[ " + str(float_error_multiplier) + "]]", help=tc.STRING_DENSITY_HELP, ) st.plotly_chart(chart_information_density_per_multiplier, width="stretch") st.plotly_chart( chart_information_density_per_multiplier_and_file, width="stretch" ) with st.container( border=False, horizontal=True, horizontal_alignment="center", vertical_alignment="bottom", ): st.header( ":primary[︱]Cost and Runtime per File and Error Multiplier", help=tc.STRING_COST_RUNTIME, ) string_selected_visualization = st.pills( "Visualize using", [ ":material/bar_chart: Bar Chart", ":material/candlestick_chart: Whisker Chart", ], default=":material/bar_chart: Bar Chart", ) st.markdown( ":yellow-background[:small[The y-axes use a logarithmic scale]]" ) if ( string_selected_visualization == ":material/candlestick_chart: Whisker Chart" ): bool_whisker_chart = True else: bool_whisker_chart = False st.space(size="small") chart_cost_all = vis.visualize_cost_benchmark( list_files_chosen, df_existing_detail, float_error_multiplier, bool_whisker_chart, ) chart_time_all = vis.visualize_time_benchmark( list_files_chosen, df_existing_detail, float_error_multiplier, bool_whisker_chart, ) st.subheader( "Cost" + " " + ":small[Error Multiplier: " + ":primary-background[ " + str(float_error_multiplier) + "]]", help=tc.STRING_COST_HELP, ) st.plotly_chart(chart_cost_all, width="stretch") st.subheader( "Runtime" + " " + ":small[Error Multiplier: " + ":primary-background[ " + str(float_error_multiplier) + "]]", help=tc.STRING_TIME_HELP, ) st.plotly_chart(chart_time_all, width="stretch") uti.display_footer() |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |