mrzv/dionysus

Print progress

sauln opened this issue · 6 comments

sauln commented

Is it possible to track how long the computations will take and intermittently print information about progress?

For example, Keras will print progress information during the fitting process.

Epoch 1/100
0s - loss: 0.2506 - acc: 0.5750 - val_loss: 0.2501 - val_acc: 0.3750
Epoch 2/100
0s - loss: 0.2487 - acc: 0.6250 - val_loss: 0.2498 - val_acc: 0.6250
Epoch 3/100
0s - loss: 0.2495 - acc: 0.5750 - val_loss: 0.2496 - val_acc: 0.6250

This would be very helpful, as it is currently not clear how long computations will take.

mrzv commented

Which functions do you want to have this kind of output?

sauln commented

I believe homology_persistence is the most time intensive function that I am currently using.

mrzv commented

There is a solution now on master. Pass progress = True to homology_persistence(...), and it will show a progress bar.

Let me know if it works for you.

sauln commented

Thanks for addressing this so quickly!

When running Dionysus in Jupyter notebooks, the output is to the terminal rather than in the Jupyter notebook itself.

screen shot 2018-05-02 at 10 18 20 am

Is it possible to redirect the output to the more natural location? This might be more work than it's worth. This blog seems to be the more comprehensive coverage of the process.

mrzv commented

Try it now.

sauln commented

That works great! Thank you!

screen shot 2018-05-02 at 12 37 03 pm