hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ajay Garg (JIRA)" <j...@apache.org>
Subject [jira] Updated: (PIG-317) UDF for linear regresssion
Date Tue, 15 Jul 2008 10:17:31 GMT

     [ https://issues.apache.org/jira/browse/PIG-317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Ajay Garg updated PIG-317:
--------------------------

    Attachment: LinearRegression.java

code attached....

> 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
>         Attachments: LinearRegression.java
>
>
> 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.


Mime
View raw message