Tqdm notebook clarification

for i in tqdm.notebook.tqdm(range(epochs), total=epochs, unit=‘epoch’):

can someone please tell me what is the use of this ‘total’, ‘unit’ in above code

Unit is the individual progress unit , whereas total is a sum.
Take it like this, progress percentage is calculated as 100*epoch/epochs

1 Like