Comments (10)
Is this a duplicate of #59?
from liac-arff.
from liac-arff.
I got similar errors when making this library load arff files generated by openSMILE, and I think attributes definitions of arff files like the following make trouble:
@attribute emotion 0,1,2,3
from liac-arff.
@tats-u could you please provide a full file generated by openSMILE which triggers this behaviour?
from liac-arff.
Here you are: sample_arff.arff.txt
This causes the following error when you try to load it by arff.load
:
File "/home/tatsu16/anaconda3/envs/residue/lib/python3.6/site-packages/arff.py", line 896, in load
return_type=return_type)
File "/home/tatsu16/anaconda3/envs/residue/lib/python3.6/site-packages/arff.py", line 743, in decode
raise e
File "/home/tatsu16/anaconda3/envs/residue/lib/python3.6/site-packages/arff.py", line 739, in decode
matrix_type=return_type)
File "/home/tatsu16/anaconda3/envs/residue/lib/python3.6/site-packages/arff.py", line 677, in _decode
attr = self._decode_attribute(row)
File "/home/tatsu16/anaconda3/envs/residue/lib/python3.6/site-packages/arff.py", line 621, in _decode_attribute
raise BadAttributeType()
arff.BadAttributeType: Bad @ATTRIBUTE type, at line 1945.
from liac-arff.
I just skimmed the arff guide and cannot find a description of the attribute type in question. Should this be a nominal attribute with the values, 1
, 2
, 3
and 4
? If yes, the correct syntax would be {1, 2, 3, 4}
.
from liac-arff.
I think so. OpenSMILE violates the specification of the ARFF format. Would you like me to open an issue at https://github.com/naxingyu/opensmile/issues?
from liac-arff.
Yes, that would be great.
from liac-arff.
I will do later, though developers of it seem to show a lackadaisical attitude because all opened issues are left unsolved.
from liac-arff.
Closing this as OpenSMILE does not produce valid arff. Please add the curly braces manually as a workaround.
from liac-arff.
Related Issues (20)
- Bad @DATA instance format, cannot handle data instance end with comma HOT 2
- Issue- "BadLayout: Invalid layout of the ARFF file, at line ..." HOT 3
- Deprecation warning due to invalid escape sequences in Python 3.8
- "U" mode is no longer accepted from Python 3.9
- Drop Python2 support? HOT 10
- Improve error messages HOT 1
- Issue- "BadLayout: Invalid layout of the ARFF file, at line 3 HOT 1
- categorical values represented as '?' are saved to arff file as missing values HOT 1
- Added to conda HOT 4
- SECURITY: bad regex pattern in 'sklearn/externals/_arff.py' will cause 'ReDos' security problem. HOT 2
- Future of liac-arff HOT 5
- Issue reading timestamp attributes HOT 3
- Bad @DATA instance format HOT 1
- Numeric categorical values can not be written to disk
- Support returning a generator (at least for DENSE and LOD) HOT 2
- Issue with separator space other than space HOT 6
- Issues when string data has a character `\n` or `\r\n` HOT 8
- Add WEKA compatibility tests
- ValueError: Matrix type arff.COO not supported. HOT 2
- Bad @DATA instance format for UCI chronic kidney disease data HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from liac-arff.