PLSDA Class Groups Interface

From Eigenvector Research Documentation Wiki
Revision as of 12:58, 31 August 2020 by Lyle (talk | contribs) (→‎How To Use PLSDA Class Groups)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

PLSDA Class-Grouping How To

This page describes how to use the PLSDA Class Groups interface. The How To Use PLSDA Class Groups section describes the mechanics of how the GUI works. The Why Use PLSDA Class Groups section describes the theory behind class groups and when you might want to use them.

PLSDA Window

How To Use PLSDA Class Groups

  • Creating Groups: Select one or more classes to group together in the Available Classes list on the left of the PLSDA Class Groups interface. Click the Model as Group button to add the selected classes as a group. Classes will appear as a group in the Class Groups list on the right and be removed from the Available Classes list. Note that no class can be added to more than one group at a time.
  • Removing / Disbanding Groups: To remove (disband) a group, select the group in the Class Groups list and click the Remove Group button. The group will be removed and the classes added back to the Available Classes list
  • Resetting All Groups: To reset the groups so that each class will be modeled as an individual group (default behavior), click the Default button.
  • The Rename Selected Group button is designed to be used along with the Create New Class Set button. These buttons allow the selected group to be renamed and allows a new class set to be created that will contain the newly named grouped. If the selected group is renamed but no new class set is created then the new name will not be used.
  • Accepting / Discarding Groups: When all desired class groups have been formed, click OK to accept the groups. To discard any changes made to the class groups, click Cancel.
  • Notes: If a class is not added to any group, it will not be modeled, unless no class groups are created. If no class groups are created, each class will be modeled as its own group (default behavior).

Why Use PLSDA Class Groups?

Ordinarily, PLSDA builds a model which attempts to discriminate each individual class (specified in your data using sample classes on your X block). For example, if you have four classes, the PLSDA model will give you four separate regression vectors (and corresponding predicted Y values), one for each of the four classes.

In some cases, it is beneficial to combine multiple classes together and have them considered a single class. Such combinations of classes are called "class groups". For purposes of modeling, grouped classes are considered as a single class. They are modeled as one and predict as one. Below are two situations when class groups may be useful.

  • Indistinguishable Groups: One situation when class groups can be useful is when you observe that two classes are essentially indistinguishable from each other, but they can be distinguished from the other class(es) in the data. In this case, combining the two similar classes together into a "group" and modeling them together against the other class(es) will often improve the performance of the PLSDA model. For example, given four classes where classes one and two are essentially identical, but classes three and four are different from each other (and from classes one and two), the following groups would be useful:
[ 1 2 ] vs [ 3 ] vs [ 4 ]
Where classes one and two are grouped together but three and four are alone in their groups.
  • Single Class Models: Another situation when class groups are useful is to limit the scope of a PLSDA model. When attempting to distinguish between more than two classes, a single PLSDA model which must distinguish all four classes from each other at once will tend to do more poorly than a model which must only distinguish one class from the other n classes. For this reason, it may be beneficial to build separate PLSDA models (each of which being responsible for separating one class from all of the others). Class groups allow you to do this by grouping one class into its own group and all the other classes into a single group. For example with four classes, the following grouping may provide a better model to distinguish class one from the other classes (when compared to a standard PLSDA model on all four classes):
[ 1 ] vs [ 2 3 4 ]
Where class one is grouped on its own but two, three and four are all together in a group. Usually, such models are used along with "class-specific" models created for each of the other n classes ([2] vs [1 3 4], [3] vs [1 2 4], and [4] vs [1 2 3]). These four individual PLSDA models will sometimes do better than a single PLSDA model attempting to separate all four classes at once.

Note that when the data consists of only two classes, there is no benefit to using (or way to use!) class groups.