On 15/03/12 11:31 PM, ahmeto wrote:
> Hi Mark,
> Yes, I am doing exactly the same thing you descibed, In the Experimenter,
> added test.rff as the data set and choose SMOReg with precomputed kernel as
> algorithm and gave kernel.txt as kernel matrix.
>
> My small test.arff and kernel.txt is below,
> But when I run with cross validation (2x1), the error is:
> 12:21:51: Class attribute is not nominal!
> It seems as if it does not accept numeric values as target?
> What do you suggest?
> Thanks in advance,
>
> test.arff:
> @relation test
> @attribute index {0,1,2}
> @attribute target numeric
> @data
> 0,1
> 1,2
> 2,3
>
> kernel.txt:
> 3 3
> 1 0.5 0.2
> 0.5 1 0.5
> 0.2 0.5 1
This works for me with 1 run of 3-fold cross-validation. With 1 run of
2-fold cross validation you end up with one training fold that contains
only one instance (SMOreg doesn't like this :-)). 2 runs of 1-fold cross
validation doesn't make sense.
Cheers,
Mark.
_______________________________________________
Wekalist mailing list
Send posts to:
Wekalist@...
List info and subscription status:
https://list.scms.waikato.ac.nz/mailman/listinfo/wekalistList etiquette:
http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html