I have got a dictionary in the form of:
{0.1: (0.7298579,0.7987254)}
which corresponds to: {test_size: (train_error, test_error)}
.
I would like to change the key value test_size
into 1 - test_size
. So that we obtain:
{0.9: (0.7298579, 0.7987254)}
How can I do this?