[jira] [Commented] (SPARK-8335) DecisionTreeModel.predict() return type not convenient!

2015-06-15 Thread Sebastian Walz (JIRA)

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

Sebastian Walz commented on SPARK-8335:
---

Yeah I am sure, that is a really a scala.Double. I just looked it up again on 
github. So the problem still exists in on the current master branch. 

> DecisionTreeModel.predict() return type not convenient!
> ---
>
> Key: SPARK-8335
> URL: https://issues.apache.org/jira/browse/SPARK-8335
> Project: Spark
>  Issue Type: Bug
>  Components: MLlib
>Affects Versions: 1.3.1
>Reporter: Sebastian Walz
>Priority: Minor
>  Labels: easyfix, machine_learning
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> org.apache.spark.mllib.tree.model.DecisionTreeModel has a predict method:
> def predict(features: JavaRDD[Vector]): JavaRDD[Double]
> The problem here is the generic type of the return type JAVARDD[Double] 
> because its a scala Double and I would expect a java.lang.Double. (to be 
> convenient e.g. with 
> org.apache.spark.mllib.classification.ClassificationModel)
> I wanted to extend the DecisionTreeModel and use it only for Binary 
> Classification and wanted to implement the trait 
> org.apache.spark.mllib.classification.ClassificationModel . But its not 
> possible because the ClassificationModel already defines the predict method 
> but with an return type JAVARDD[java.lang.Double]. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Updated] (SPARK-8335) DecisionTreeModel.predict() return type not convenient!

2015-06-12 Thread Sebastian Walz (JIRA)

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

Sebastian Walz updated SPARK-8335:
--
Labels: easyfix machine_learning  (was: easyfix)

> DecisionTreeModel.predict() return type not convenient!
> ---
>
> Key: SPARK-8335
> URL: https://issues.apache.org/jira/browse/SPARK-8335
> Project: Spark
>  Issue Type: Bug
>  Components: MLlib
>Affects Versions: 1.3.1
>Reporter: Sebastian Walz
>Priority: Minor
>  Labels: easyfix, machine_learning
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> org.apache.spark.mllib.tree.model.DecisionTreeModel has a predict method:
> def predict(features: JavaRDD[Vector]): JavaRDD[Double]
> The problem here is the generic type of the return type JAVARDD[Double] 
> because its a scala Double and I would expect a java.lang.Double. (to be 
> convenient e.g. with 
> org.apache.spark.mllib.classification.ClassificationModel)
> I wanted to extend the DecisionTreeModel and use it only for Binary 
> Classification and wanted to implement the trait 
> org.apache.spark.mllib.classification.ClassificationModel . But its not 
> possible because the ClassificationModel already defines the predict method 
> but with an return type JAVARDD[java.lang.Double]. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Updated] (SPARK-8335) DecisionTreeModel.predict() return type not convenient!

2015-06-12 Thread Sebastian Walz (JIRA)

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

Sebastian Walz updated SPARK-8335:
--
Description: 
org.apache.spark.mllib.tree.model.DecisionTreeModel has a predict method:

def predict(features: JavaRDD[Vector]): JavaRDD[Double]

The problem here is the generic type of the return type JAVARDD[Double] because 
its a scala Double and I would expect a java.lang.Double. (to be convenient 
e.g. with org.apache.spark.mllib.classification.ClassificationModel)

I wanted to extend the DecisionTreeModel and use it only for Binary 
Classification and wanted to implement the trait 
org.apache.spark.mllib.classification.ClassificationModel . But its not 
possible because the ClassificationModel already defines the predict method but 
with an return type JAVARDD[java.lang.Double]. 


  was:
org.apache.spark.mllib.tree.model.DecisionTreeModel has a predict method:

def predict(features: JavaRDD[Vector]): JavaRDD[Double]

The problem here is the generic type from the return type JAVARDD[Double] 
because its a scala Double and and java.lang.Double like expected. 

I wanted to extend the DecisionTreeModel and use it only for Binary 
Classification and wanted to extend with the trait 
org.apache.spark.mllib.classification.ClassificationModel . But its not 
possible because the ClassificationModel already defines the predict method but 
with an return type JAVARDD[java.lang.Double]. 



> DecisionTreeModel.predict() return type not convenient!
> ---
>
> Key: SPARK-8335
> URL: https://issues.apache.org/jira/browse/SPARK-8335
> Project: Spark
>  Issue Type: Bug
>  Components: MLlib
>Affects Versions: 1.3.1
>Reporter: Sebastian Walz
>Priority: Minor
>  Labels: easyfix
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> org.apache.spark.mllib.tree.model.DecisionTreeModel has a predict method:
> def predict(features: JavaRDD[Vector]): JavaRDD[Double]
> The problem here is the generic type of the return type JAVARDD[Double] 
> because its a scala Double and I would expect a java.lang.Double. (to be 
> convenient e.g. with 
> org.apache.spark.mllib.classification.ClassificationModel)
> I wanted to extend the DecisionTreeModel and use it only for Binary 
> Classification and wanted to implement the trait 
> org.apache.spark.mllib.classification.ClassificationModel . But its not 
> possible because the ClassificationModel already defines the predict method 
> but with an return type JAVARDD[java.lang.Double]. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org



[jira] [Created] (SPARK-8335) DecisionTreeModel.predict() return type not convenient!

2015-06-12 Thread Sebastian Walz (JIRA)
Sebastian Walz created SPARK-8335:
-

 Summary: DecisionTreeModel.predict() return type not convenient!
 Key: SPARK-8335
 URL: https://issues.apache.org/jira/browse/SPARK-8335
 Project: Spark
  Issue Type: Bug
  Components: MLlib
Affects Versions: 1.3.1
Reporter: Sebastian Walz
Priority: Minor


org.apache.spark.mllib.tree.model.DecisionTreeModel has a predict method:

def predict(features: JavaRDD[Vector]): JavaRDD[Double]

The problem here is the generic type from the return type JAVARDD[Double] 
because its a scala Double and and java.lang.Double like expected. 

I wanted to extend the DecisionTreeModel and use it only for Binary 
Classification and wanted to extend with the trait 
org.apache.spark.mllib.classification.ClassificationModel . But its not 
possible because the ClassificationModel already defines the predict method but 
with an return type JAVARDD[java.lang.Double]. 




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org