| LogisticRegressionParameterCalcPredictedProbabilities(DoubleMatrix, DoubleVector, Boolean) Method |
Returns a vector of predicted probabilities of a positive outcome for the
predictor variable values contained in the rows of the input matrix A.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static DoubleVector PredictedProbabilities(
DoubleMatrix A,
DoubleVector parameters,
bool hasIntercept = true
)
Public Shared Function PredictedProbabilities (
A As DoubleMatrix,
parameters As DoubleVector,
Optional hasIntercept As Boolean = true
) As DoubleVector
public:
static DoubleVector^ PredictedProbabilities(
DoubleMatrix^ A,
DoubleVector^ parameters,
bool hasIntercept = true
)
static member PredictedProbabilities :
A : DoubleMatrix *
parameters : DoubleVector *
?hasIntercept : bool
(* Defaults:
let _hasIntercept = defaultArg hasIntercept true
*)
-> DoubleVector
Parameters
- A DoubleMatrix
- A matrix of predictor values. Each row of A is a set
of predictor values.
- parameters DoubleVector
- Vector of parameter values for the model.
- hasIntercept Boolean (Optional)
- If true the model contains an intercept parameter
(the default). In this case the length of the vector x must be one less
than the length of the parameters vector. If false the length
of x must be equal to the length of the parameters vector.
Return Value
DoubleVectorA vector of predicted probabilities of a positive outcome. The
ith element of the
vector is the predicted probability for the set of predictor values in the
ith
row of the input matrix
A.
Exceptions Exception | Condition |
---|
MismatchedSizeException | Thrown if the number
of columns in the given matrix is not equal to the number of parameters
in the model. |
See Also