index 1 out of range for positional args tuple

283 views Asked by At

I'm trying to print the following line, which is part of an auxiliary classifier GAN code:

print('{0:<22s} | {1:15s} | {2:15s} | {3:5s}'.format('component', *discriminator.metrics_names))

but it results in this error:

IndexError: Replacement index 1 out of range for positional args tuple

0

There are 0 answers