covartech / PRT

Pattern Recognition Toolbox for MATLAB
http://covartech.github.io/
MIT License
145 stars 70 forks source link

Add hierarchical labeling to data #65

Open peterTorrione opened 6 years ago

peterTorrione commented 6 years ago

We can have multiple "Targets" - it would be nice to enforce a hierarchy on the targets - so that plots, displays, etc., knew to group by T1, then group by T2, for, e.g., plots.

In landmines you might have two labels you're interested in exploring - "Lane" and "Mine/No-Mine". It would be nice to say:

ds.hierarchicalLabeling = {'Lane','isTarget'};
ds.plot(); 

and have the resulting data plot use, e.g., color for lanes, and within a color, use shape for isTarget.

The same could be done in imagesc, etc.

The exact implementation details are unclear. Use multiple target columns? Multiple target columns probably breaks a ton of classifier code. Use fields in the observationInfo? Other?