MultivariateMultiLinearLogisticRegression Method (IReadOnlyListBoolean, IReadOnlyListIReadOnlyListDouble) |
Namespace: Meta.Numerics.Statistics
public static MultiLinearLogisticRegressionResult MultiLinearLogisticRegression( this IReadOnlyList<bool> yColumn, IReadOnlyList<IReadOnlyList<double>> xColumns )
Exception | Condition |
---|---|
NullReferenceException | yColumn is , or xColumns is , or one of the x-columns is . |
DimensionMismatchException | Not all of the columns contain the same number of observations. |
InsufficientDataException | There are too few observations to perform the fit. |
DivideByZeroException | The curvature matrix is singular, indicating that the data is independent of one or more of the independent variables, or that two or more variables are linearly dependent. |
Note that the xColumns argument is column-oriented, i.e. it is a list of columns, not row-oriented, i.e. a list of rows. Either of these would match the method signature, but only column-oriented inputs will produce correct results.