|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
AttributeStatsHi
Following Mark's reply on using AttributeStats, i can;'t figure out how to use it since there are no reference to any specific attribute in the API, although the class description mentions Utility class that contains summary information on an the values that appear in a dataset for a **particular attribute** I'm simply trying attribStatsObj.nominal, which is evidently returning a null vector So, i want to know how can i obtain the count for a nominal attribute usign AttributeStats ashwin -------------------------------------------------------------- AttributeStats has a public member variable called m_nominalCounts (an array of ints) that holds the counts of the values of a nominal attribute. Cheers, Mark. On Jun 12, 2008, at 11:29 PM, Ashwin Ittoo wrote: / Hi // apart from the confusion matrix available with toMatrixString(), is // there a way to obtain the distribution of the class labels' values / / (e.g.: // class A: 3 instances, class B: 2 instances,....) />/ I tried the AttributeStats class, but it does not give this //information/ / thanks //ashwin / _______________________________________________ Wekalist mailing list Wekalist@... https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist |
|
|
Re: AttributeStats> Following Mark's reply on using AttributeStats, i can;'t figure out how
> to use it since there are no reference to any specific attribute in the > API, although the class description mentions > > Utility class that contains summary information on an the values that > appear in a dataset for a **particular attribute** > > I'm simply trying attribStatsObj.nominal, which is evidently returning a > null vector > So, i want to know how can i obtain the count for a nominal attribute > usign AttributeStats weka.core.AttributeStats is just a container object, which needs to be filled first. Use method "attributeStats(int)" of weka.core.Instances to do exactly that. 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@... https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist |
| Free Forum Powered by Nabble | Forum Help |