Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Connect weka to python

  1. #1
    Join Date
    Jun 2016
    Posts
    2

    Default Connect weka to python

    I tried to send a numpy object to Weka package using java bridge
    but i got the below error.

    'numpy.ndarray' object has no attribute 'jobject'
    what the best way to convert numpy.ndarray to jobject?

  2. #2
    Join Date
    Aug 2006
    Posts
    1,741

    Default

    Are you using the wekaPython package? If so, then only pandas data frames and images are transferable back into Weka (the former are converted to ARFF via CSV; and the later are transferred as base 64 encoded png data). All other variables are returned to Weka in string form. I have never seen the error you report.

    Cheers,
    Mark.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.