Click or drag to resize
Accord.NET (logo)

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
)
Request Example View Source

Parameters

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