Giter Site home page Giter Site logo

weka-for-android's Introduction

weka-for-android's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

weka-for-android's Issues

Desirializing a model causes InvalidClassExeption

Deserializing a serialized model produces the following error:

java.io.InvalidClassException: 
    weka.classifiers.trees.RandomForest; Incompatible class (SUID): 
    weka.classifiers.trees.RandomForest

I tried the following 2 methods provided in the wiki for the project:

//First Method
RandomForest rf = (RandomForest) weka.core.SerializationHelper.
    read(Environment.getExternalStorageDirectory().getPath() + "/BC.model");

//Second Method
ObjectInputStream ois = new ObjectInputStream(new FileInputStream(
    Environment.getExternalStorageDirectory().getPath() + "/BC.model"));
RandomForest rf = new RandomForest();
rf = (RandomForest) ois.readObject();

Note: I use WEKAstripped.jar

LibSVM missing

This version does not contain LibSVM. I am unable to find which version of Weka this is?

ClassNotFoundException: weka.core.NominalAttributeInfo

Trying to load a preconfig. model with
"weka.core.SerializationHelper.read(assetManager.open("multilayer.model"));"

but getting "java.lang.ClassNotFoundException: weka.core.NominalAttributeInfo"

Should this class not be included?

Serializing a model on PC and Deserializing it on Android

Part of my research work is to classify sensor data on Android using Multilayer Perceptron (MLP) classifier.

I used WekaSTRIPPED to train (build) the MLP classifier on the phone and save the trained model on the sdcard by serializing it. This works fine in a small scale problem even with large training data. I mean by small scale problem that the MLP model to be trained consists of about 10 inputs (features) and 4 outputs (classes). However, when the MLP model increases to have 25 inputs and 10 outputs the building process fails on the phone. I tried to increase the heap size to 1024 m but unfortunately this doesn’t solve the problem. I also tried to build the classifier on a virtual machine but again this doesn’t solve the problem.

Another trial was to train the model using WEKA on the PC and then serialize the model to a specific place on the machine. I copied this saved model from the pc and pasted it on the sdcard of the phone. Then I deserialized this model using Weka for Android but unfortunately, the deserialization of the model fails.

My question here is do I really need to train (build) my classifier on the phone specially that my training data is supposed to be very large and even the model to be trained itself is going to be more and more complex?

Any help is greatly appreciated.

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.