alphaville / jaqpot3

A brand new version of jaqpot - fully OpenTox API (1.2) compliant (see http://opentox.ntua.gr ) - lots of new features
http://opentox.ntua.gr
2 stars 1 forks source link

Model training fails #20

Closed alphaville closed 9 years ago

alphaville commented 10 years ago

Applies to branch: FileUpload Through the web interface, MLR training fails with error message: "The parameter 'prediction_feature' is mandatory for this algorithm" (status code: 400).

I also tried via cURL and I get the same error. Here's the cURL command I used (change the subjectid):

curl -X POST -d dataset_uri=http://apps.ideaconsult.net:8080/ambit2/dataset/R545 \
-d prediction_feature=http://apps.ideaconsult.net:8080/ambit2/feature/22200 \
-H subjectid:AQIC5wM2LY4SfcylizxgADoZWKKGeX4hM00KIt6VStFbvto.*AAJTSQACMDE.* \
-H Accept:text/uri-list \
http://alphaville.xs:8080/algorithm/mlr

The exact error message is:

org.opentox.jaqpot3.qsar.exceptions.BadParameterException: The parameter 'prediction_feature' is mandatory for this algorithm.
    at org.opentox.jaqpot3.qsar.trainer.MlrRegression.doParametrize(MlrRegression.java:108)
    at org.opentox.jaqpot3.qsar.trainer.MlrRegression.doParametrize(MlrRegression.java:77)
    at org.opentox.jaqpot3.qsar.AbstractTrainer.parametrize(AbstractTrainer.java:115)
    at org.opentox.jaqpot3.www.services.TrainingService.run(TrainingService.java:106)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
ghost commented 9 years ago

fixed