| LogisticRegressionParameterCalcPredictedProbability(DoubleVector, DoubleVector, Boolean) Method |
Returns the probability of a positve outcome predicted by the model for the given
set of predictor values.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static double PredictedProbability(
DoubleVector x,
DoubleVector parameters,
bool hasIntercept = true
)
Public Shared Function PredictedProbability (
x As DoubleVector,
parameters As DoubleVector,
Optional hasIntercept As Boolean = true
) As Double
public:
static double PredictedProbability(
DoubleVector^ x,
DoubleVector^ parameters,
bool hasIntercept = true
)
static member PredictedProbability :
x : DoubleVector *
parameters : DoubleVector *
?hasIntercept : bool
(* Defaults:
let _hasIntercept = defaultArg hasIntercept true
*)
-> float
Parameters
- x DoubleVector
- A set of predictor values.
- parameters DoubleVector
- The model parameters.
- 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
DoubleThe probability of a positive outcome predicted by the model.
Exceptions Exception | Condition |
---|
MismatchedSizeException | Thrown if the length
of the given vector is not equal to the number of parameters
in the model. |
See Also