Yes, I totally agree with you, currently I am working on the Vector/Matrix,
and these two classes also need a DoubleFunction so that it can be applied
to each element of the Vector/Matrix.

I wonder can we define a hierarchy that each special function can be
treated as a descendant of an abstract Function class?


2013/6/17 Tommaso Teofili <[email protected]>

> 2013/6/17 Tommaso Teofili <[email protected]>
>
> > Hi all,
> >
> > looking at the nice multi layer perceptron feature I realized we have
> > different APIs for defining a cost function.
> > In the regression package we have
> >
> >
> http://svn.apache.org/repos/asf/hama/trunk/ml/src/main/java/org/apache/hama/ml/regression/CostFunction.java
> >
> > while in perception (shouldn't it be perceptron?) we have:
> >
> >
> http://svn.apache.org/repos/asf/hama/trunk/ml/src/main/java/org/apache/hama/ml/perception/CostFunction.java
> >
> > then for a logistic regression model (which encapsulates a logistic cost
> > function) in regression we have:
> >
> >
> http://svn.apache.org/repos/asf/hama/trunk/ml/src/main/java/org/apache/hama/ml/perception/LogisticCostFunction.java
> >
>
> sorry here's the correct link:
>
> http://svn.apache.org/repos/asf/hama/trunk/ml/src/main/java/org/apache/hama/ml/regression/LogisticRegressionModel.java
>
>
>
> >
> > while in perception we have:
> >
> >
> http://svn.apache.org/repos/asf/hama/trunk/ml/src/main/java/org/apache/hama/ml/perception/LogisticCostFunction.java
> >
> > so I think it'd be good if we can abstract and define a unified API for
> > cost function, models, etc. in the machine learning package.
> >
> > What do you think?
> >
> > Thanks,
> > Tommaso
> >
>



-- 
------
Yexi Jiang,
ECS 251,  [email protected]
School of Computer and Information Science,
Florida International University
Homepage: http://users.cis.fiu.edu/~yjian004/

Reply via email to