|
ImputationTOptionsLearn Method (T, Double)
|
Learns a model that can map the given inputs to the desired outputs.
Namespace:
Accord.Statistics.Filters
Assembly:
Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntaxpublic ImputationTOptions Learn(
T[] x,
double[] weights = null
)
Public Function Learn (
x As T(),
Optional weights As Double() = Nothing
) As ImputationTOptions
Request Example
View SourceParameters
- x
- Type: T
The model inputs. - weights (Optional)
- Type: SystemDouble
The weight of importance for each input sample.
Return Value
Type:
ImputationTOptionsA model that has learned how to produce suitable outputs
given the input data
x.
ExceptionsException | Condition |
---|
ArgumentException | weights |
Exception | There are more predefined columns than columns in the data. |
See Also