|
ProportionalHazardsAnalysisLearn Method (Double, Double, Int32, Double)
|
Learns a model that can map the given inputs to the given outputs.
Namespace:
Accord.Statistics.Analysis
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax public ProportionalHazards Learn(
double[][] inputs,
double[] time,
int[] censor,
double[] weights = null
)
Public Function Learn (
inputs As Double()(),
time As Double(),
censor As Integer(),
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: SystemInt32
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