Comments (6)
How exactly are you using Auto-WEKA? What makes you think it's an issue with instantiating the classifiers?
from autoweka.
My mistake I confused it with an earlier problem I had. The issue arises when I try to perform training.
I had some wraper code (Java) for weka classifiers which I used for training/testing classifiers. Next I took the autoweka code and replaced the classifier instantiation with: clf = (Classifier) new AutoWEKAClassifier();
. When training, it causes the exception and stack trace above.
from autoweka.
Could you post a complete example that allows to reproduce the problem please?
from autoweka.
Sure:
Java:
public class MyWekaClassifier {
private Classifier clf;
public MyWekaClassifier(Config anomalyTagsConfig) throws Error {
if (anomalyTagsConfig.useAutoWeka) {
clf = (Classifier) new AutoWEKAClassifier();
} else {
initWekaClassifier(anomalyTagsConfig);
}
this.anomalyTagsConfig = anomalyTagsConfig;
};
public void classifierTrain(double[] inY, double[] inX, int numSamples, int numFeatures) throws Exception {
Instances trainingData = data2Instances(inY, inX, numSamples, numFeatures);
clf.buildClassifier(trainingData);
}
}
The java class compiles to jar and stored in matlab working directory
Matlab code (which calls java):
javaaddpath('.\myJar.jar')
configOBJ = javaObject('com.myproject.Config');
configOBJ.useAutoWeka = config.useAutoWeka;
classifier = javaObject('com.myproject.MyWekaClassifier', configOBJ);
classifier.classifierTrain(yArray, reshape(trainData, [], 1), size(trainData, 2), size(trainData, 1));
I should also mention that I put all the config file in the same directory.
from autoweka.
I can't reproduce the problem. Here's a minimal class that does what you're doing. Running this code works fine for me:
import weka.classifiers.meta.AutoWEKAClassifier;
import weka.classifiers.Classifier;
public class Test {
private Classifier clf;
public Test() throws Error {
clf = (Classifier) new AutoWEKAClassifier();
};
public static void main(String[] args) {
Test test = new Test();
}
}
from autoweka.
Closing as I can't reproduce the problem. Please reopen if you have a specific example that allows me to do so.
from autoweka.
Related Issues (20)
- SMAC source code is missing
- How to use trained model for inference. (Model created using AutoWEKAClassifier) HOT 1
- Can we set manually the list of algorithms that will run for auto learn. HOT 1
- Is it possible to randomly run Auto-WEKA? HOT 1
- AutoWeka should be updated? HOT 5
- Correctly Classified Instances decreased when more time was given HOT 1
- No results hours after timelimit. HOT 4
- Choose range of attributes number HOT 1
- Select attributes HOT 6
- [WARN ] [PROCESS-ERR]?
- Error running Auto-Weka HOT 3
- Help to a newbie HOT 1
- Error marshalling xml response HOT 6
- Description of Parameter Dialect HOT 1
- Not Serializable error on trying to recall written model from AutoWeka into Weka Classifier HOT 9
- .model files in tmp folder HOT 3
- "Error marshalling XML response" still unresolved HOT 3
- [Request] Provide a permanent link to the latest stable release HOT 13
- Problem running Auto-WEKA HOT 18
- Autoweka: evaluation results too good to be true 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 autoweka.