public static LinearLogisticRegressionResult LinearLogisticRegression(
this IReadOnlyList<bool> y,
IReadOnlyList<double> x
)
<ExtensionAttribute>
Public Shared Function LinearLogisticRegression (
y As IReadOnlyList(Of Boolean),
x As IReadOnlyList(Of Double)
) As LinearLogisticRegressionResult
public:
[ExtensionAttribute]
static LinearLogisticRegressionResult^ LinearLogisticRegression(
IReadOnlyList<bool>^ y,
IReadOnlyList<double>^ x
)
[<ExtensionAttribute>]
static member LinearLogisticRegression :
y : IReadOnlyList<bool> *
x : IReadOnlyList<float> -> LinearLogisticRegressionResult
Linear logistic regression is a way to fit binary outcome data to a linear model.
The method assumes that binary outcomes are encoded as 0 and 1. If any y-values other than 0 and 1 are encountered, it throws an InvalidOperationException.
The fit result is two-dimensional. The first parameter is a, the second b.
ArgumentNullException | x or y is . |
DimensionMismatchException | The sizes of x and y do not match. |
InsufficientDataException | There are fewer than three data points. |