Membership Margins
Compute the margin of the memberships of a partition, i.e., the difference between the largest and second largest membership values of the respective objects.
cl_margin(x)
x |
an R object representing a partition of objects. |
For hard partitions, the margins are always 1.
For soft partitions, the margins may be taken as an indication of the “sureness” of classifying an object to the class with maximum membership value.
data("GVME") ## Look at the classes obtained for 1980: split(cl_object_names(GVME[["1980"]]), cl_class_ids(GVME[["1980"]])) ## Margins: x <- cl_margin(GVME[["1980"]]) ## Add names, and sort: names(x) <- cl_object_names(GVME[["1980"]]) sort(x) ## Note the "uncertainty" of assigning Egypt to the "intermediate" class ## of nations.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.