openml / openml/OpenML

Server error when creating a new task

Open
#1,190 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
755
Forks
128
PR merge metrics
No merged PRs in 30d

Description

Description

When creating a new task on the test server, the following error is thrown:

OpenMLServerError: Unexpected server error when calling [https://test.openml.org/api/v1/xml/task/.](https://test.openml.org/api/v1/xml/task/) 
Please contact the developers! Status code: 500

This seems to some kind of bug, because in the past I was able to sucessfully create new tasks.

Steps/Code to Reproduce

I am trying to create a new task as follows:

test_task = openml.tasks.create_task(
        task_type=TaskType.SUPERVISED_CLASSIFICATION,
        dataset_id=128,
        target_name="class",
        evaluation_measure="predictive_accuracy",
        estimation_procedure_id=3,
    )
test_task.publish()
Versions
macOS-13.0-arm64-arm-64bit
Python 3.11.2 
NumPy 1.24.2
SciPy 1.10.1
Scikit-Learn 1.2.2
OpenML 0.13.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the provided openml.tasks.create_task and publish() example with the listed versions against the test API endpoint. Investigate why task creation returns HTTP 500; done means the same task can be created and published successfully without an OpenMLServerError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, scikit-learn
Domain
api, backend, machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.