hama-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HAMA-765) Add apply method to Vector/Matrix
Date Fri, 21 Jun 2013 23:10:20 GMT

    [ https://issues.apache.org/jira/browse/HAMA-765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13690873#comment-13690873
] 

Hudson commented on HAMA-765:
-----------------------------

Integrated in Hama-Nightly #948 (See [https://builds.apache.org/job/Hama-Nightly/948/])
    HAMA-765: Add apply method to Vector/Matrix (Revision 1495461)

     Result = SUCCESS
yxjiang : 
Files : 
* /hama/trunk/CHANGES.txt
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/math/CrossEntropy.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/math/DenseDoubleMatrix.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/math/DenseDoubleVector.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/math/DoubleDoubleFunction.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/math/DoubleDoubleVectorFunction.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/math/DoubleFunction.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/math/DoubleMatrix.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/math/DoubleVector.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/math/DoubleVectorFunction.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/math/Function.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/math/FunctionFactory.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/math/Sigmoid.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/math/SquaredError.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/math/Tanh.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/perception/CostFunction.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/perception/CostFunctionFactory.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/perception/CrossEntropy.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/perception/LogisticCostFunction.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/perception/MultiLayerPerceptron.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/perception/Sigmoid.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/perception/SmallMultiLayerPerceptron.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/perception/SquaredError.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/perception/SquashingFunction.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/perception/SquashingFunctionFactory.java
* /hama/trunk/ml/src/main/java/org/apache/hama/ml/perception/Tanh.java
* /hama/trunk/ml/src/test/java/org/apache/hama/ml/math
* /hama/trunk/ml/src/test/java/org/apache/hama/ml/math/TestDenseDoubleMatrix.java
* /hama/trunk/ml/src/test/java/org/apache/hama/ml/math/TestDenseDoubleVector.java
* /hama/trunk/ml/src/test/java/org/apache/hama/ml/math/TestFunctionFactory.java
* /hama/trunk/ml/src/test/java/org/apache/hama/ml/perception/TestSmallMultiLayerPerceptron.java

                
> Add apply method to Vector/Matrix
> ---------------------------------
>
>                 Key: HAMA-765
>                 URL: https://issues.apache.org/jira/browse/HAMA-765
>             Project: Hama
>          Issue Type: Improvement
>    Affects Versions: 0.6.2
>            Reporter: Yexi Jiang
>            Assignee: Yexi Jiang
>            Priority: Minor
>             Fix For: 0.6.3
>
>         Attachments: HAMA-765.patch, HAMA-765.patch, HAMA-765.patch, HAMA-765.patch
>
>
> Add 'apply' method to Vector/Matrix to allow ad-hoc function apply to the elements of
a Vector/Matrix.
> For example, if a function f( x ) needs to apply to the elements of a vector v, then
we can use
> ------------
> DoubleFunction fun = new DoubleFunction() {
>   public double apply(double element) {
>     //  do what ever
>   }
> };
> v.apply(fun);
> ------------
> This method borrows the style of functional programming by allowing a function to apply
to all the elements of a Vector/Matrix. It can simply the coding, especially for those algorithms
where Vector/Matrix operations are heavily used.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message