Sparse arff with empty line fails on publish of the dataset entity
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 755
- Forks
- 128
- PR merge metrics
- No merged PRs in 30d
Description
Description
A dataset with the following sparse_arff representation fails to be published:
'% Synthetic dataset created from a Pandas DataFrame with Sparse columns\n@RELATION Temp\n\n@ATTRIBUTE input1 REAL\n@ATTRIBUTE input2 REAL\n@ATTRIBUTE y REAL\n\n@DATA\n{ }\n{ 1 1.0,2 1.0 }\n{ 0 0.0,2 1.0 }\n{ 0 1.0,1 1.0 }\n'
equivalently,
% Synthetic dataset created from a Pandas DataFrame with Sparse columns
@RELATION Temp
@ATTRIBUTE input1 REAL
@ATTRIBUTE input2 REAL
@ATTRIBUTE y REAL
@DATA
{ }
{ 1 1.0,2 1.0 }
{ 0 0.0,2 1.0 }
{ 0 1.0,1 1.0 }
Expected Results
The dataset be published.
Actual Results
The following error:
OpenMLServerException: Error parsing dataset ARFF file - Arff error in dataset file: trailing characters on data line (l.9)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce dataset publishing with the sparse ARFF example, especially the empty data row, and trace the ARFF parsing path that reports trailing characters. Done means the supplied dataset publishes successfully without the reported parsing error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100