greenplum-db / PivotalR-archive

An convenient R tool for manipulating tables in PostgreSQL type databases and a wrapper of Apache MADlib.
https://pivotalsoftware.github.io/gp-r/
125 stars 53 forks source link

Verbose output feature request #27

Open ronert opened 10 years ago

ronert commented 10 years ago

When estimating large models, it would be nice to get some feedback on progress like the verbose flag in MADlib. E.g. printing the iteration number for logistic regression.

walkingsparrow commented 10 years ago

You can turn on the verbose flag in madlib.glm using the option control. For example,

fit <- madlib.glm(rings < 10 ~ . - id, data = x, family = 'b', control = list(verbose=TRUE))

fit$num_iterations

This is supported in v0.1.16.11

However, MADlib's verbose flag does not print progress. It just prints the iterations number at the end of computation. The iteration number information is also included in the result, as is shown in the above example.

ronert commented 10 years ago

I set verbose to true, but getting no output. It would also be nice to get the likelihood printed besides the iteration number, so one can assess whether the algorithm is converging.

walkingsparrow commented 10 years ago

The message is suppressed in PivotalR. I will fix that.