RE: creating arff file: problem with minus number
Le Thi Kim <lgxktl <at> nottingham.ac.uk>
2007-04-01 13:22:03 GMT
Many thanks, Peter. I have double checked. Yes, you are right, it works
now.
-----Original Message-----
From: wekalist-bounces <at> list.scms.waikato.ac.nz
[mailto:wekalist-bounces <at> list.scms.waikato.ac.nz] On Behalf Of Peter
Reutemann
Sent: 01 April 2007 01:42
To: Weka machine learning workbench list.
Subject: Re: [Wekalist] creating arff file: problem with minus number
> Pls help me to solve the problem which I have encountered when
> creating the arff file. Actually, I have the minus value (e.g. -120,
> -45) in each variable. When I load the arff file into the weka, it
says:
> File "Tc.arff" not recognised as an arff file. Reason: premature end
> of line, read Token(EOL), line 17.
Without seeing the files it's hard to tell (it would help, if you could
post the first 20-30 lines of your "Tc.arff" file - the error happens in
line 17). The EOL (= end of line) error normally happens if Weka is
expecting to read more attribute values than there are in that line.
This could derive from not enough values in that line or from wrongly
quoted strings/nominal values (thus resulting in a wrong number of
values).
> I am loading all *.arff with value over "0", it works fine. I
> definitely sure that the problem happens because of minus value in my
training set.
As what type of attribute are these negative numbers declared? numeric
or nominal?
> Any ideal to tell the weka to accept those minus number.
If it's a numeric attribute, nothing needs to be done. Nominal values
must list all the possible values in the header.
HTH
Cheers, Peter
--
Peter Reutemann, Dept. of Computer Science, University of Waikato, NZ
http://www.cs.waikato.ac.nz/~fracpete/ Ph. +64 (7) 858-5174
_______________________________________________
Wekalist mailing list
Wekalist <at> list.scms.waikato.ac.nz
https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
_______________________________________________
Wekalist mailing list
Wekalist <at> list.scms.waikato.ac.nz
https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist