|
ProportionalHazardsNewtonRaphsonLearn Method (Double, Double, SurvivalOutcome, Double)
|
Learns a model that can map the given inputs to the given outputs.
Namespace:
Accord.Statistics.Models.Regression.Fitting
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public ProportionalHazards Learn(
double[][] inputs,
double[] time,
SurvivalOutcome[] censor,
double[] weights = null
)
Public Function Learn (
inputs As Double()(),
time As Double(),
censor As SurvivalOutcome(),
Optional weights As Double() = Nothing
) As ProportionalHazards
Request Example
View SourceParameters
- inputs
- Type: SystemDouble
The model inputs. - time
- Type: SystemDouble
The time-to-event for the non-censored training samples. - censor
- Type: Accord.Statistics.Distributions.UnivariateSurvivalOutcome
The output (event) associated with each input vector. - weights (Optional)
- Type: SystemDouble
The weight of importance for each input-output pair (if supported by the learning algorithm).
Return Value
Type:
ProportionalHazards
A model that has learned how to produce
censor given
inputs and
time.
See Also