Comments (2)
An Instance
object needs access to an Instances
object as this holds the Attribute
definitions (numeric, nominal, date, string, relational). You can use the Instance.dataset
property to set the dataset structure. Just make sure that you have the correct number of attributes (incl. class attribute!) when creating the new Instance object. Just use 0
as dummy value for the class label (ie using the first label).
from python-weka-wrapper.
Hi @fracpete,
Thank you very much, I got it. Now it's working find.
I just added
instance_vector.dataset = data
before
class = cls.classify_instance(instance_vector)
and now it works perfectly.
Cheers!
Ignasi
from python-weka-wrapper.
Related Issues (20)
- Learning curve for multiple tests sets HOT 1
- double_matrix_to_ndarray falsely assumes square matrices HOT 1
- Some common functions in Weka not wrapped by python-weka-wrapper HOT 3
- Example issues in windows HOT 2
- TypeError HOT 1
- M5P fails with javabridge.jutil.JavaException: no/uib/cipr/matrix/Matrix HOT 1
- Sourceable: classifiers, filters HOT 1
- Python 3.6 compatibility HOT 1
- Move to Weka 3.9.2 HOT 1
- Java 9 HOT 1
- Test MOOC scripts HOT 1
- GridSearchCV error HOT 11
- I want to load model that trained in WEKA HOT 1
- issue of setting up on Pycharm HOT 23
- Include weka.jar in release HOT 1
- New release with Weka 3.9.3 HOT 1
- How to getAssociationRules() HOT 1
- Add wrapper for AssociationRulesProducer HOT 1
- Temporary data structures HOT 6
- Different results in Weka GUI and Weka via python API HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-weka-wrapper.