samoa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abifet <...@git.apache.org>
Subject [GitHub] incubator-samoa pull request: SAMOA-40: Add Kafka stream reader mo...
Date Wed, 14 Oct 2015 08:34:21 GMT
Github user abifet commented on the pull request:

    https://github.com/apache/incubator-samoa/pull/32#issuecomment-147974180
  
    @gdfm, @karande I think that the code has improved a lot and it's already there. My main
concern right now is how to read sparse instances in the sparse instance format ( like  "{1
0.24, 434 0.34, 500:1}") and not only in the dense instance format (like "0.223, .2323, 1").

    
    The code to convert strings to dense and sparse instances is in org.apache.samoa.instances.ArffLoader,
and it uses java.io.Reader to get the raw data. One way to do this could be that KafkaReader
extends Reader, and then use ArffLoader to get the instances using the KafkaReader.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message