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

Yanbo Liang commented on SPARK-11587:
-------------------------------------

Further more, I found that only "summary" method in package SparkR, others are 
in package stats. 
{code}
> showMethods("summary")
Function: summary (package SparkR)
x="DataFrame"
x="PipelineModel"

> showMethods("glm")
Function: glm (package stats)
formula="ANY", family="ANY", data="ANY"
formula="formula", family="ANY", data="DataFrame"
formula="formula", family="missing", data="data.frame"
    (inherited from: formula="ANY", family="ANY", data="ANY")

> showMethods("predict")
Function: predict (package stats)
object="ANY"
object="PipelineModel"
{code}

> SparkR can not use summary.glm from base R
> ------------------------------------------
>
>                 Key: SPARK-11587
>                 URL: https://issues.apache.org/jira/browse/SPARK-11587
>             Project: Spark
>          Issue Type: Bug
>          Components: ML, R
>            Reporter: Yanbo Liang
>
> When we use summary method of base R(not method of SparkR) in SparkR console:
> {code}
> model <- glm(Sepal.Width ~ Sepal.Length + Species, data = iris)
> summary(model)
> {code}
> It returns
> {code}
> Error in (function (classes, fdef, mtable)  : 
>   unable to find an inherited method for function ‘summary’ for signature 
> ‘"glm”’
> {code}



--
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

Reply via email to