| LogisticRegressionParameterCalc(DoubleMatrix, IListBoolean, Boolean) Constructor |
Constructs a LogisticRegression instance with the specifed regresssion matrix
and observation vector, optionally adding an intercept parameter. The
model parameter values are computed using the specified regression calculator.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public LogisticRegression(
DoubleMatrix A,
IList<bool> obs,
bool addIntercept
)
Public Sub New (
A As DoubleMatrix,
obs As IList(Of Boolean),
addIntercept As Boolean
)
public:
LogisticRegression(
DoubleMatrix^ A,
IList<bool>^ obs,
bool addIntercept
)
new :
A : DoubleMatrix *
obs : IList<bool> *
addIntercept : bool -> LogisticRegression
Parameters
- A DoubleMatrix
- A regression matrix.
- obs IListBoolean
- A vector of observations.
- addIntercept Boolean
- If true, a column of ones is prepended onto
the data in the regression matrix A, thus adding an intercept to
the model. If false, the data in the regression matrix is used as given.
Exceptions Exception | Condition |
---|
MismatchedSizeException | Thrown if the number of rows
in the regression matrix is not equal to the length of the observation
vector.
|
See Also