UDF for linear regresssion
--------------------------
Key: PIG-317
URL: https://issues.apache.org/jira/browse/PIG-317
Project: Pig
Issue Type: New Feature
Reporter: Ajay Garg
Priority: Minor
UDF for computing linear regression. But this implementation is non algebraic.
It compute regression with any defined degree polynomial. (use define to
define degree of polynomial) . In the output it shows coefficient of the
polynomial.
Uses
A = load 'input.txt';
B = group A all;
define LR LinearRegression('3');
C = foreach B generate LR($1);
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.