mrzv / dionysus

Library for computing persistent homology
http://mrzv.org/software/dionysus2
Other
144 stars 31 forks source link

Print progress #19

Closed sauln closed 6 years ago

sauln commented 6 years ago

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 6 years ago

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

sauln commented 6 years ago

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

mrzv commented 6 years ago

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 6 years ago

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 6 years ago

Try it now.

sauln commented 6 years ago

That works great! Thank you!

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