madlib/madlib — pull request #110 by fschopp (2012-02-03 02:58:34+00:00)
Title: Small fixes for a variety of issues

Added "utility" module:
- Function version() returns information about MADlib version, build time, git revision, compiler, etc. (Implements MADLIB-309)

Probability functions:
- normalCDF now returns NaN on NaN input, instead of raising an error. (Fixes MADLIB-356)

C++AL:
- Improved exception handling and mapping to SQL error states. Added a new exception for "no solution found"

Logistic regression:
- Some code clean-up: Removed calls to locals() and replace use of keyword arguments by named parameters.
- Return NULL if zero input tuples. This matches the behavior of standard PostgreSQL aggregates when applied to 0 rows. (Fixes MADLIB-284)
- Can now handle any input types that can be converted to BOOLEAN (dependent variable) or FLOAT8[] (independent variables). (Fixes MADLIB-283)
- Improved error message in case of non-convergence due to ill-conditioned input. (Fixes MADLIB-345)
- If a negative number is passed for the max # of iterations, an error is displayed. (Fixes MADLIB-355)
- Documentation updated to inform user that a negative convergence threshold essentially disables this particular criterion. (Fixes MADLIB-354)

Linear regression:
- Throw domain_error if input data is not finite.

Decision Trees:
- Documentation is now included, but still needs a lot of work. (Fixes MADLIB-365)