tdomhan / pyautoweka

AutoWeka for python
10 stars 19 forks source link

Example code issue: java ArrayIndexOutOfBoundsException #3

Open rayding24 opened 5 years ago

rayding24 commented 5 years ago

Hi Tobias,

I tried to run the example code given in the README file, but I ran into the java.lang.ArrayIndexOutOfBoundsException for both classification and regression.

I have also tried to make my own dataset ([1, 2, ..., 150] for y, and ascending [ [1], [2], ... [150]] for x), but I received the same error. (Also tried in the form of np array but there's no difference).

Here I also attach the error log:

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1 at java.util.Arrays$ArrayList.get(Arrays.java:3841) at autoweka.WekaArgumentConverter.sortArgs(WekaArgumentConverter.java:189) at autoweka.WekaArgumentConverter.convert(WekaArgumentConverter.java:17) at autoweka.tools.GetBestFromTrajectoryGroup.(GetBestFromTrajectoryGroup.java:61) at autoweka.tools.GetBestFromTrajectoryGroup.(GetBestFromTrajectoryGroup.java:39) at autoweka.tools.GetBestFromTrajectoryGroup.main(GetBestFromTrajectoryGroup.java:17) Traceback (most recent call last): File "pyautoweka_test2.py", line 40, in y_predict = experiment.predict(X_test) File "build/bdist.macosx-10.6-intel/egg/pyautoweka/pyautoweka.py", line 549, in predict File "build/bdist.macosx-10.6-intel/egg/pyautoweka/pyautoweka.py", line 495, in predict_from_file File "build/bdist.macosx-10.6-intel/egg/pyautoweka/pyautoweka.py", line 473, in get_best_seed_from_trajectories File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 573, in check_output raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command '['java', '-cp', '/Users/zirius/.python-eggs/pyautoweka-.1-py2.7.egg-tmp/pyautoweka/java/autoweka.jar', 'autoweka.tools.GetBestFromTrajectoryGroup', 'experiments/Experiment-dataset1/Experiment-dataset1.trajectories']' returned non-zero exit status

Thank you for your time!