Skip to content

SVM regression model training fails #20

@vedrin

Description

@vedrin

Hi,

An attempt to train a SVM regression model, according to the example, provided in SVM_Regression_POST.doc results in a HTTP/1.1 502 code being returned. However, the root of the problem doesn't seem to be associated with the dataset/feature retrieval from the dataset service, because the same dataset/feature URIs work fine for MLR model training at the same time. According to the detailed error report, the problem seems to be associated rather with a missing file:

Exception Details: java.io.FileNotFoundException: /home/opentox/OpenToxServer/model/weka/84 (No such file or directory)

Here is a brief summary of the issues in decreasing order of severity:

  1. SVM regression model training fails;

  2. the returned error code doesn't seem to be appropriate (this has to be confirmed after analysis of (1));

  3. the returned timestamp indicates a possible timezone issue at the host, running the service (compare Date: Thu, 31 Dec 2009 11:14:00 GMT to TimeStamp: Thu Dec 31 06:14:00 EST 2009). The correct timestamp should be Thu Dec 31 13:14:00 EST 2009

Please find the complete curl transaction log below:

ambit:/# curl -iv -X POST -d 'dataset_uri=http://ambit.uni-plovdiv.bg:8080/ambit2/dataset/6&target=http://ambit.uni-plovdiv.bg:8080/ambit2/feature/11954' http://opentox.ntua.gr:3000/algorithm/svm

  • About to connect() to opentox.ntua.gr port 3000 (#0)
  • Trying 147.102.82.32... connected
  • Connected to opentox.ntua.gr (147.102.82.32) port 3000 (#0)

    POST /algorithm/svm HTTP/1.1
    User-Agent: curl/7.18.2 (x86_64-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.8 libssh2/0.18
    Host: opentox.ntua.gr:3000
    Accept: /
    Content-Length: 122
    Content-Type: application/x-www-form-urlencoded

    < HTTP/1.1 502 The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request
    HTTP/1.1 502 The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request
    < Content-Type: text/plain
    Content-Type: text/plain
    < Date: Thu, 31 Dec 2009 11:14:00 GMT
    Date: Thu, 31 Dec 2009 11:14:00 GMT
    < Accept-Ranges: bytes
    Accept-Ranges: bytes
    < Server: Noelios-Restlet/2.0m3
    Server: Noelios-Restlet/2.0m3
    < Connection: close
    Connection: close
    < Transfer-Encoding: chunked
    Transfer-Encoding: chunked

<
Error Report.
TimeStamp: Thu Dec 31 06:14:00 EST 2009

Error #1
Exception Details: java.io.FileNotFoundException: /home/opentox/OpenToxServer/model/weka/84 (No such file or directory)
Explanation: Communication/Connection to a remote server ended up unexpectedly: The server encountered an error while acting as a gateway!
For debugging reasons we provide a brief list of the exceptions:

  • java.io.FileOutputStream.open(Native Method)
  • java.io.FileOutputStream.(FileOutputStream.java:179)
  • java.io.FileOutputStream.(FileOutputStream.java:70)
  • weka.classifiers.Evaluation.evaluateModel(Unknown Source)
  • org.opentox.algorithm.trainer.SvmTrainer.train(SvmTrainer.java:141)
  • Closing connection #0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions