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

ASF GitHub Bot commented on MAHOUT-1493:
----------------------------------------

Github user andrewpalumbo commented on a diff in the pull request:

    https://github.com/apache/mahout/pull/32#discussion_r16022971
  
    --- Diff: 
math-scala/src/main/scala/org/apache/mahout/classifier/naivebayes/NaiveBayes.scala
 ---
    @@ -0,0 +1,72 @@
    +package org.apache.mahout.classifier.naivebayes
    +
    +import org.apache.mahout.math._
    +import org.apache.mahout.math.function.VectorFunction
    +import scalabindings._
    +import scalabindings.RLikeOps._
    +import drm.RLikeDrmOps._
    --- End diff --
    
    Yeah I was having alot of trouble with the imports. I'm new to scala. I'd 
tried your import suggestions, but was having trouble with them.  I was getting 
errors when I was using:
    
        import RLikeDrmOps._
    
    I put the package in:
    
        org.apache.mahout.classifier.naivebayes
    
    so it is a level down from `org.apache.mahout.math` so from what I was 
thinking it needed the `drm.RLikeDrmOps._`
    
    
          


> Port Naive Bayes to the Spark DSL
> ---------------------------------
>
>                 Key: MAHOUT-1493
>                 URL: https://issues.apache.org/jira/browse/MAHOUT-1493
>             Project: Mahout
>          Issue Type: Bug
>          Components: Classification
>            Reporter: Sebastian Schelter
>            Assignee: Sebastian Schelter
>             Fix For: 1.0
>
>         Attachments: MAHOUT-1493.patch, MAHOUT-1493.patch, MAHOUT-1493.patch, 
> MAHOUT-1493.patch, MAHOUT-1493a.patch
>
>
> Port our Naive Bayes implementation to the new spark dsl. Shouldn't require 
> more than a few lines of code.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to