imsl.regression.ResponseFormatID¶
-
class
ResponseFormatID
(class_id, n_classes)¶ Generate a matrix of class counts from a vector of response class IDs.
Parameters: - class_id ((n_obs,) array_like) – Vector that contains in location i the group or class number to which observation i belongs.
- n_classes (int) – The number of response categories.
Methods
Attributes
class_counts_matrix
Return the full matrix of response class counts.