You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Ajay Garg (JIRA)" <ji...@apache.org> on 2008/07/15 12:17:31 UTC
[jira] Updated: (PIG-317) UDF for linear regresssion
[ 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.