Giter VIP home page Giter VIP logo

autoweka's Introduction

Build Status

You can find the manual here. Javadoc is available here.

This project will not be updated anymore. We may make exceptions for pull requests.

autoweka's People

Contributors

fracpete avatar larskotthoff avatar otoalves avatar justinuliu avatar synzhu avatar farooqzuberi avatar

Watchers

James Cloos avatar

autoweka's Issues

Problem evaluating classifier: null

If Auto-WEKA cannot find command "java" in command prompt, evaluating process will get error.

[Thread-11] WARN weka.classifiers.meta.AutoWEKAClassifier - WARNING: An illegal reflective access operation has occurred
[Thread-11] WARN weka.classifiers.meta.AutoWEKAClassifier - WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector (file:/C:/Program%20Files/Weka-3-8-5/weka.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
[Thread-11] WARN weka.classifiers.meta.AutoWEKAClassifier - WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector
[Thread-11] WARN weka.classifiers.meta.AutoWEKAClassifier - WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
[Thread-11] WARN weka.classifiers.meta.AutoWEKAClassifier - WARNING: All illegal access operations will be denied in a future release
[Thread-11] ERROR weka.classifiers.meta.AutoWEKAClassifier - 2021-06-08 20:56:46.667 [main] ERROR Experiment - Failed to parse trajectory
[Thread-11] INFO weka.classifiers.meta.AutoWEKAClassifier - java.lang.RuntimeException: Failed to parse trajectory
[Thread-11] INFO weka.classifiers.meta.AutoWEKAClassifier -     at autoweka.smac.SMACTrajectoryParser.parseTrajectory(SMACTrajectoryParser.java:144)
[Thread-11] INFO weka.classifiers.meta.AutoWEKAClassifier -     at autoweka.TrajectoryParser.getTrajectory(TrajectoryParser.java:114)
[Thread-11] INFO weka.classifiers.meta.AutoWEKAClassifier -     at autoweka.TrajectoryParser.main(TrajectoryParser.java:88)
[Thread-11] INFO weka.classifiers.meta.AutoWEKAClassifier -     at autoweka.Experiment.main(Experiment.java:299)
[Thread-11] INFO weka.classifiers.meta.AutoWEKAClassifier -     at autoweka.tools.ExperimentRunner.main(ExperimentRunner.java:51)
[Thread-11] INFO weka.classifiers.meta.AutoWEKAClassifier - Caused by: java.lang.NullPointerException
[Thread-11] INFO weka.classifiers.meta.AutoWEKAClassifier -     at autoweka.smac.SMACTrajectoryParser.parseTrajectory(SMACTrajectoryParser.java:43)
[Thread-11] INFO weka.classifiers.meta.AutoWEKAClassifier -     ... 4 more
[Thread-10] INFO autoweka.TrajectoryMerger - Experiment C:\Users\User\AppData\Local\Temp\autoweka7929919122816433091\Auto-WEKA
[Thread-10] INFO weka.classifiers.meta.AutoWEKAClassifier - Thread 0, best configuration estimate -1.0
[Thread-10] INFO weka.classifiers.meta.AutoWEKAClassifier - classifier: null, arguments: [], attribute search: null, attribute search arguments: [], attribute evaluation: null, attribute evaluation arguments: []
java.lang.NullPointerException
        java.base/java.lang.String.contains(Unknown Source)
        weka.core.ClassCache.find(ClassCache.java:425)
        weka.core.ClassDiscovery.find(ClassDiscovery.java:212)
        weka.Run.findSchemeMatch(Run.java:82)
        weka.core.ResourceUtils.forName(ResourceUtils.java:76)
        weka.core.Utils.forName(Utils.java:1112)
        weka.classifiers.AbstractClassifier.forName(AbstractClassifier.java:91)
        weka.classifiers.meta.AutoWEKAClassifier.buildClassifier(AutoWEKAClassifier.java:520)
        weka.gui.explorer.ClassifierPanel$20.run(ClassifierPanel.java:1523)

        at java.base/java.lang.String.contains(Unknown Source)
        at weka.core.ClassCache.find(ClassCache.java:425)
        at weka.core.ClassDiscovery.find(ClassDiscovery.java:212)
        at weka.Run.findSchemeMatch(Run.java:82)
        at weka.core.ResourceUtils.forName(ResourceUtils.java:76)
        at weka.core.Utils.forName(Utils.java:1112)
        at weka.classifiers.AbstractClassifier.forName(AbstractClassifier.java:91)
        at weka.classifiers.meta.AutoWEKAClassifier.buildClassifier(AutoWEKAClassifier.java:520)
        at weka.gui.explorer.ClassifierPanel$20.run(ClassifierPanel.java:1523)

Get NullPointerException when running autoweka in terminal

When running autoweka in terminal by using relative classpath of weka.jar, will get NullPointerException.

command:

java -cp /home/justinliu/wekafiles/packages/Auto-WEKA/autoweka.jar:weka.jar weka.classifiers.meta.AutoWEKAClassifier -seed 123 -timeLimit 15 -memLimit 1024 -nBestConfigs 1 -metric errorRate -parallelRuns 1 -t data/iris.arff

/tmp/autoweka5641892797756408672/Auto-WEKA/out/logs/123.log

[INFO ] Logging to: /tmp/autoweka5641892797756408672/Auto-WEKA/out/autoweka/log-run123.txt
[INFO ] Version of SMAC is v2.10.03-master-778 (3ee628ef9bf2), running on OpenJDK 64-Bit Server VM (1.8.0_292) and Linux 5.8.0-55-generic (amd64) 
[INFO ] Call String: smac --seed 123 --validation-seed 123 --random-sample-seed 123 --scenarioFile autoweka.scenario --logModel false --logAllProcessOutput TRUE --adaptiveCapping false --runGroupName autoweka --terminate-on-delete /tmp/autoweka5641892797756408672/Auto-WEKA//out/runstamps/123.stamp --kill-runs-on-file-delete /tmp/autoweka5641892797756408672/Auto-WEKA//out/runstamps/123.stamp --algo-cutoff-time 75.0 --transform-crashed-quality-value 1.0E100 --kill-run-exceeding-captime-factor 2.0 --initialIncumbent DEFAULT --acq-func EI 
[INFO ] Terminating all runs if /tmp/autoweka5641892797756408672/Auto-WEKA/out/runstamps/123.stamp is deleted
[INFO ] Terminating procedure if /tmp/autoweka5641892797756408672/Auto-WEKA/out/runstamps/123.stamp is deleted
[INFO ] SMAC started at: 9/06/2021 3:19:19 PM. Minimizing mean quality.
[ERROR] The following algorithm call failed: cd "/tmp/autoweka5641892797756408672/Auto-WEKA/." ;  /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -Dautoweka.infinity=1.0E100 -Xmx1024m -cp /home/justinliu/wekafiles/packages/Auto-WEKA/autoweka.jar:weka.jar:/home/justinliu/wekafiles/packages/Auto-WEKA/autoweka.jar autoweka.smac.SMACWrapper -prop datasetString=testArff=__dummy____COLONESCAPE__:classIndex=4__COLONESCAPE__:type=trainTestArff__COLONESCAPE__:trainArff=/tmp/autoweka5641892797756408672/Auto-WEKA/Auto-WEKA.arff:instanceGenerator=autoweka.instancegenerators.CrossValidation:resultMetric=errorRate -prop initialIncumbent=DEFAULT:acq-func=EI -wrapper seed=123:numFolds=10:fold=7 0 75.0 2147483647 -1 -_0__wekaclassifierstreesrandomforest_00_INT_I '10' -_0__wekaclassifierstreesrandomforest_01_features_HIDDEN '0' -_0__wekaclassifierstreesrandomforest_02_1_INT_K '0' -_0__wekaclassifierstreesrandomforest_04_depth_HIDDEN '0' -_0__wekaclassifierstreesrandomforest_05_1_INT_depth '0' -attributesearch 'NONE' -attributetime '15.0' -targetclass 'weka.classifiers.trees.RandomForest'  
[WARN ] [PROCESS-ERR] Exception in thread "main" java.lang.NoClassDefFoundError: weka/core/Instance
        at autoweka.Wrapper.run(Wrapper.java:123)
        at autoweka.smac.SMACWrapper.main(SMACWrapper.java:26)
Caused by: java.lang.ClassNotFoundException: weka.core.Instance
        at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
        ... 2 more
Error occurred while running SMAC
>Error Message: Wrapper did not output anything that matched the expected output ("Result of algorithm run:..."). Please try executing the wrapper directly
>Encountered Exception:TargetAlgorithmAbortException
>Error Log Location: /tmp/autoweka5641892797756408672/Auto-WEKA/out/autoweka/log-run123.txt
[ERROR] Message:  Wrapper did not output anything that matched the expected output ("Result of algorithm run:..."). Please try executing the wrapper directly
[ERROR] We tried to call the target algorithm wrapper, but this call failed.
[ERROR] The problem is (most likely) somewhere in the wrapper or with the arguments to SMAC.
[ERROR] The easiest way to debug this problem is to manually execute the call we tried and see why it did not return the correct result
[ERROR] The required output of the wrapper is something like "Result for ParamILS: x,x,x,x,x".);
[INFO ] Exiting SMAC with failure. Log: /tmp/autoweka5641892797756408672/Auto-WEKA/out/autoweka/log-run123.txt
[INFO ] For a list of available commands use:  --help
[INFO ] The Quickstart guide at available at: http://www.cs.ubc.ca/labs/beta/Projects/SMAC/ or alternatively (doc/quickstart.html) gives simple examples for getting up and running.
[INFO ] The FAQ (doc/faq.pdf) contains commonly asked questions regarding troubleshooting, and usage.
[INFO ] The Manual (doc/manual.pdf) contains detailed information on file format semantics.
[INFO ] If you are stuck, please ask a question in the SMAC forum: https://groups.google.com/forum/#!forum/smac-forum

So we should make sure using abolute path of weka.jar in the classpath option at present.

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.