Hi All,
In 2016.0, I have a list like this:
_list{0}.class = 1
_list{1}.class = 2
_list{2}.class = 3
_list{3}.class = 5
_list{4}.class = 2
_list{5}.class = 1
I need to know how many of any given class there are with the feature.
ListHistogrammer does this nicely:
_histo{0}.value = 1
_histo{0}.count = 2
_histo{1}.value = 2
_histo{1}.count = 2
_histo{2}.value = 3
_histo{2}.count = 1
_histo{3}.value = 5
_histo{3}.count = 1
My problem then is turning those into attributes simply. I don't want to have to explode or deconstruct my feature further (this workspace is already too large and slow).
In this example, I'd like my output feature to have attributes like these:
first_class = 2
other_thing = 2
third_item = 1
fourth_item = <missing>
final = 1
Any ideas how to do this? I could likely do it with a PythonCaller, but surely there's a better way?


