I would like to construct pandas dataframe from nested dictionary here:
res = {'loss': {'first_neuron': {10: 0.6430850658151839,
12: 0.6419735709090292,
14: 0.628668905776224},
'lr': {0.001: 0.7243950462635652,
0.01: 0.6431898441579607,
0.1: 0.5461426520789111}},
'accuracy': {'first_neuron': {10: 0.6125457246362427,
12: 0.6154635353588763,
14: 0.6285751049901233},
'lr': {0.001: 0.5127914948963824,
0.01: 0.6298153875050722,
0.1: 0.7139774825837877}}}
to this:
i can't get it right after trying similar questions here and here