From 3af568a47892328a16443da8fb80206a25be6144 Mon Sep 17 00:00:00 2001 From: Si11ium Date: Fri, 15 Mar 2019 21:26:27 +0100 Subject: [PATCH] stash --- code/bar_plot.py | 16 +++++++++------- .../all_data.dill | Bin 0 -> 521 bytes .../all_names.dill | Bin 0 -> 154 bytes .../experiment.dill | Bin 0 -> 1070 bytes .../log.txt | 8 ++++++++ 5 files changed, 17 insertions(+), 7 deletions(-) create mode 100644 code/setups/experiments/exp-mixed-soup-_1552674483.9866457-0/all_data.dill create mode 100644 code/setups/experiments/exp-mixed-soup-_1552674483.9866457-0/all_names.dill create mode 100644 code/setups/experiments/exp-mixed-soup-_1552674483.9866457-0/experiment.dill create mode 100644 code/setups/experiments/exp-mixed-soup-_1552674483.9866457-0/log.txt diff --git a/code/bar_plot.py b/code/bar_plot.py index 6e5aca9..667f3a5 100644 --- a/code/bar_plot.py +++ b/code/bar_plot.py @@ -29,18 +29,20 @@ def plot_bars(names_bars_tuple, filename='histogram_plot'): # catagorical ryb = cl.scales['10']['div']['RdYlBu'] names, bars = names_bars_tuple - names = ['Recurrent', 'Aggregating', 'Weightwise']# [name.split(' ')[0] for name in names] + situations = list(bars[0].keys()) + names = ['Weightwise', 'Aggregating', 'Recurrent'] # [name.split(' ')[0] for name in names] data_dict = {} for idx, name in enumerate(names): data_dict[name] = bars[idx] data = [] - for idx, name in enumerate(data_dict.keys()): + for idx, situation in enumerate(situations): bar = go.Bar( - y=[val for val in data_dict[name].values()], - x=[key for key in data_dict[name].keys()], - name=name, + y=[data_dict[name][situation] for name in names], + # x=[key for key in data_dict[name].keys()], + x=names, + name=situation, showlegend=True, ) data.append(bar) @@ -49,7 +51,7 @@ def plot_bars(names_bars_tuple, filename='histogram_plot'): barmode='stack', # height=400, width=400, # margin=dict(l=20, r=20, t=20, b=20) - legend=dict(orientation="h", x=0.2) + legend=dict(orientation="h", x=0.05) ) fig = go.Figure(data=data, layout=layout) @@ -90,5 +92,5 @@ if __name__ == '__main__': in_file = args.in_file[0] out_file = args.out_file - search_and_apply(in_file, plot_bars, files_to_look_for=['all_counters.dill']) + search_and_apply(in_file, plot_bars, files_to_look_for=['all_data.dill']) # , 'all_names.dill', 'all_notable_nets.dill']) diff --git a/code/setups/experiments/exp-mixed-soup-_1552674483.9866457-0/all_data.dill b/code/setups/experiments/exp-mixed-soup-_1552674483.9866457-0/all_data.dill new file mode 100644 index 0000000000000000000000000000000000000000..209d38d14ae44958f2380bc2f63ce974e9af9025 GIT binary patch literal 521 zcmZo*jxA)+s4ZmFh+tx1V5lfAWQr|h*6?QV=JFQtmh;x|HuARdcJmJKj`B`P1*@qn zE@X)+T?E3RJ4NWj!6K%MCz2UDyF5lJnrE#%P10EPi4t}w^|dY((e-To!i4EviH jjLT4)?N7p_h+)9Zfof090Q#C6o3G(PNF_#UX{sIo3H*Rt literal 0 HcmV?d00001 diff --git a/code/setups/experiments/exp-mixed-soup-_1552674483.9866457-0/all_names.dill b/code/setups/experiments/exp-mixed-soup-_1552674483.9866457-0/all_names.dill new file mode 100644 index 0000000000000000000000000000000000000000..573498ffa4f8480c0ce7a02030f2f25f6b403272 GIT binary patch literal 154 zcmZo*jxA)+h;U+HUB zfRhHF(=;s=*|LclzD%6`s9N2uZC5HgTkDT^YPCvr8?W(&|J9!80#0$A*sknDv#k86 zhtqtX2oL(9Ekg)ID18rSn8ve2yMEj5f>NRl3a>YC*5FTxeiaDmNw2*RQ6SuX2;ca@ z(Q|NoYWIVZa6)-3<4L<~uJk|zYo$nmeJF+6-4m_?)CYLO;FC10uQ1!dIfH3TXE|16 z2HRv$*dBYy4prnWGU^pD~S)A=kt4r5{~c>;LvU&fU!zyh1%g}8+hp=^q;t-x)G zFci*_eJtFFf^)xt#fxr&&kXnMDd|$|9$4l|?Z@xJvog;S-I0poBpu<}JrRV`acNj- JfUD8r`d^`2Eq(w1 literal 0 HcmV?d00001 diff --git a/code/setups/experiments/exp-mixed-soup-_1552674483.9866457-0/log.txt b/code/setups/experiments/exp-mixed-soup-_1552674483.9866457-0/log.txt new file mode 100644 index 0000000..3fff177 --- /dev/null +++ b/code/setups/experiments/exp-mixed-soup-_1552674483.9866457-0/log.txt @@ -0,0 +1,8 @@ +TrainingNeuralNetworkDecorator activiation='linear' use_bias=False +{'xs': [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100], 'ys': [0.0, 0.0, 0.1, 0.0, 0.0, 0.0, 0.0, 0.1, 0.0, 0.0, 0.0], 'zs': [0.0, 0.0, 0.7, 1.9, 3.6, 4.3, 6.0, 6.1, 8.3, 7.7, 8.8]} + + +TrainingNeuralNetworkDecorator activiation='linear' use_bias=False +{'xs': [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100], 'ys': [0.8, 0.4, 0.4, 0.3, 0.2, 0.2, 0.2, 0.2, 0.2, 0.4, 0.3], 'zs': [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]} + +