Class BayesPointMachineClassifier
The Bayes point machine classifier factory.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Learners
Assembly: Microsoft.ML.Probabilistic.Learners.Classifier.dll
Syntax
public static class BayesPointMachineClassifier
Methods
CreateBinaryClassifier<TInstanceSource, TInstance, TLabelSource>(IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Boolean>)
Creates a binary Bayes point machine classifier from a native data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, bool, Bernoulli, BayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<bool>> CreateBinaryClassifier<TInstanceSource, TInstance, TLabelSource>(IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, bool> mapping)
Parameters
Type | Name | Description |
---|---|---|
IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Boolean> | mapping | The mapping used for accessing data in the native format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, Boolean, Bernoulli, BayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<Boolean>> | The binary Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
CreateBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector>)
Creates a binary Bayes point machine classifier from a standard data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, double>, BayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> CreateBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> mapping)
Parameters
Type | Name | Description |
---|---|---|
IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> | mapping | The mapping used for accessing data in the standard format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, Double>, BayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> | The binary Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
CreateGaussianPriorBinaryClassifier<TInstanceSource, TInstance, TLabelSource>(IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Boolean>)
Creates a binary Bayes point machine classifier with Gaussian prior distributions over factorized weights from a native data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, bool, Bernoulli, GaussianBayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<bool>> CreateGaussianPriorBinaryClassifier<TInstanceSource, TInstance, TLabelSource>(IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, bool> mapping)
Parameters
Type | Name | Description |
---|---|---|
IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Boolean> | mapping | The mapping used for accessing data in the native format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, Boolean, Bernoulli, GaussianBayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<Boolean>> | The binary Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
CreateGaussianPriorBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector>)
Creates a binary Bayes point machine classifier with Gaussian prior distributions over factorized weights from a standard data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, double>, GaussianBayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> CreateGaussianPriorBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> mapping)
Parameters
Type | Name | Description |
---|---|---|
IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> | mapping | The mapping used for accessing data in the standard format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, Double>, GaussianBayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> | The binary Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
CreateGaussianPriorMulticlassClassifier<TInstanceSource, TInstance, TLabelSource>(IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Int32>)
Creates a multi-class Bayes point machine classifier with Gaussian prior distributions over factorized weights from a native data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, int, Discrete, GaussianBayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<int>> CreateGaussianPriorMulticlassClassifier<TInstanceSource, TInstance, TLabelSource>(IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, int> mapping)
Parameters
Type | Name | Description |
---|---|---|
IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Int32> | mapping | The mapping used for accessing data in the native format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, Int32, Discrete, GaussianBayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<Int32>> | The multi-class Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
CreateGaussianPriorMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector>)
Creates a multi-class Bayes point machine classifier with Gaussian prior distributions over factorized weights from a standard data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, double>, GaussianBayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> CreateGaussianPriorMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> mapping)
Parameters
Type | Name | Description |
---|---|---|
IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> | mapping | The mapping used for accessing data in the standard format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, Double>, GaussianBayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> | The multi-class Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
CreateMulticlassClassifier<TInstanceSource, TInstance, TLabelSource>(IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Int32>)
Creates a multi-class Bayes point machine classifier from a native data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, int, Discrete, BayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<int>> CreateMulticlassClassifier<TInstanceSource, TInstance, TLabelSource>(IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, int> mapping)
Parameters
Type | Name | Description |
---|---|---|
IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Int32> | mapping | The mapping used for accessing data in the native format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, Int32, Discrete, BayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<Int32>> | The multi-class Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
CreateMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector>)
Creates a multi-class Bayes point machine classifier from a standard data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, double>, BayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> CreateMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> mapping)
Parameters
Type | Name | Description |
---|---|---|
IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> | mapping | The mapping used for accessing data in the standard format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, Double>, BayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> | The multi-class Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
Load<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings, TPredictionSettings>(Stream, IFormatter)
Deserializes a Bayes point machine classifier from a stream and formatter.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings, TPredictionSettings> Load<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings, TPredictionSettings>(Stream stream, IFormatter formatter)
where TTrainingSettings : BayesPointMachineClassifierTrainingSettings where TPredictionSettings : IBayesPointMachineClassifierPredictionSettings<TLabel>
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The stream. |
IFormatter | formatter | The formatter. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings, TPredictionSettings> | The deserialized Bayes point machine classifier object. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
TLabelDistribution | The type of a distribution over labels. |
TTrainingSettings | The type of the settings for training. |
TPredictionSettings | The type of the settings for prediction. |
Load<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings, TPredictionSettings>(String)
Deserializes a Bayes point machine classifier from a file.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings, TPredictionSettings> Load<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings, TPredictionSettings>(string fileName)
where TTrainingSettings : BayesPointMachineClassifierTrainingSettings where TPredictionSettings : IBayesPointMachineClassifierPredictionSettings<TLabel>
Parameters
Type | Name | Description |
---|---|---|
String | fileName | The file name. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings, TPredictionSettings> | The deserialized Bayes point machine classifier object. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
TLabelDistribution | The type of a distribution over labels. |
TTrainingSettings | The type of the settings for training. |
TPredictionSettings | The type of the settings for prediction. |
LoadBackwardCompatibleBinaryClassifier<TInstanceSource, TInstance, TLabelSource>(IReader, IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Boolean>)
Deserializes a binary Bayes point machine classifier from a reader to a stream and a native data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, bool, Bernoulli, BayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<bool>> LoadBackwardCompatibleBinaryClassifier<TInstanceSource, TInstance, TLabelSource>(IReader reader, IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, bool> mapping)
Parameters
Type | Name | Description |
---|---|---|
IReader | reader | The reader to a stream of a serialized binary Bayes point machine classifier. |
IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Boolean> | mapping | The mapping used for accessing data in the native format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, Boolean, Bernoulli, BayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<Boolean>> | The binary Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
LoadBackwardCompatibleBinaryClassifier<TInstanceSource, TInstance, TLabelSource>(String, IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Boolean>)
Deserializes a binary Bayes point machine classifier from a file with the specified name and a native data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, bool, Bernoulli, BayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<bool>> LoadBackwardCompatibleBinaryClassifier<TInstanceSource, TInstance, TLabelSource>(string fileName, IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, bool> mapping)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | The name of the file of a serialized binary Bayes point machine classifier. |
IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Boolean> | mapping | The mapping used for accessing data in the native format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, Boolean, Bernoulli, BayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<Boolean>> | The binary Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
LoadBackwardCompatibleBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(IReader, IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector>)
Deserializes a binary Bayes point machine classifier from a reader to a stream and a standard data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, double>, BayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> LoadBackwardCompatibleBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(IReader reader, IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> mapping)
Parameters
Type | Name | Description |
---|---|---|
IReader | reader | The reader to a stream of a serialized binary Bayes point machine classifier. |
IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> | mapping | The mapping used for accessing data in the standard format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, Double>, BayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> | The binary Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
LoadBackwardCompatibleBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(String, IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector>)
Deserializes a binary Bayes point machine classifier from a file with the specified name and a standard data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, double>, BayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> LoadBackwardCompatibleBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(string fileName, IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> mapping)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | The name of the file of a serialized binary Bayes point machine classifier. |
IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> | mapping | The mapping used for accessing data in the standard format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, Double>, BayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> | The binary Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
LoadBackwardCompatibleGaussianPriorBinaryClassifier<TInstanceSource, TInstance, TLabelSource>(IReader, IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Boolean>)
Deserializes a binary Bayes point machine classifier with Gaussian prior distributions over factorized weights from a reader to a stream and a native data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, bool, Bernoulli, GaussianBayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<bool>> LoadBackwardCompatibleGaussianPriorBinaryClassifier<TInstanceSource, TInstance, TLabelSource>(IReader reader, IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, bool> mapping)
Parameters
Type | Name | Description |
---|---|---|
IReader | reader | The reader to a stream of a serialized binary Bayes point machine classifier. |
IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Boolean> | mapping | The mapping used for accessing data in the native format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, Boolean, Bernoulli, GaussianBayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<Boolean>> | The binary Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
LoadBackwardCompatibleGaussianPriorBinaryClassifier<TInstanceSource, TInstance, TLabelSource>(String, IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Boolean>)
Deserializes a binary Bayes point machine classifier with Gaussian prior distributions over factorized weights from a file with the specified name and a native data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, bool, Bernoulli, GaussianBayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<bool>> LoadBackwardCompatibleGaussianPriorBinaryClassifier<TInstanceSource, TInstance, TLabelSource>(string fileName, IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, bool> mapping)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | The name of the file of a serialized binary Bayes point machine classifier. |
IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Boolean> | mapping | The mapping used for accessing data in the native format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, Boolean, Bernoulli, GaussianBayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<Boolean>> | The binary Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
LoadBackwardCompatibleGaussianPriorBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(IReader, IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector>)
Deserializes a binary Bayes point machine classifier with Gaussian prior distributions over factorized weights from a reader to a stream and a standard data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, double>, GaussianBayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> LoadBackwardCompatibleGaussianPriorBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(IReader reader, IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> mapping)
Parameters
Type | Name | Description |
---|---|---|
IReader | reader | The reader to a stream of a serialized binary Bayes point machine classifier. |
IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> | mapping | The mapping used for accessing data in the standard format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, Double>, GaussianBayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> | The binary Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
LoadBackwardCompatibleGaussianPriorBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(String, IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector>)
Deserializes a binary Bayes point machine classifier with Gaussian prior distributions over factorized weights from a file with the specified name and a standard data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, double>, GaussianBayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> LoadBackwardCompatibleGaussianPriorBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(string fileName, IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> mapping)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | The name of the file of a serialized binary Bayes point machine classifier. |
IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> | mapping | The mapping used for accessing data in the standard format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, Double>, GaussianBayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> | The binary Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
LoadBackwardCompatibleGaussianPriorMulticlassClassifier<TInstanceSource, TInstance, TLabelSource>(IReader, IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Int32>)
Deserializes a multi-class Bayes point machine classifier with Gaussian prior distributions over factorized weights from a reader to a stream and a native data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, int, Discrete, GaussianBayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<int>> LoadBackwardCompatibleGaussianPriorMulticlassClassifier<TInstanceSource, TInstance, TLabelSource>(IReader reader, IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, int> mapping)
Parameters
Type | Name | Description |
---|---|---|
IReader | reader | The reader to a stream of a serialized multi-class Bayes point machine classifier. |
IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Int32> | mapping | The mapping used for accessing data in the native format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, Int32, Discrete, GaussianBayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<Int32>> | The multi-class Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
LoadBackwardCompatibleGaussianPriorMulticlassClassifier<TInstanceSource, TInstance, TLabelSource>(String, IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Int32>)
Deserializes a multi-class Bayes point machine classifier with Gaussian prior distributions over factorized weights from a file with the specified name and a native data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, int, Discrete, GaussianBayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<int>> LoadBackwardCompatibleGaussianPriorMulticlassClassifier<TInstanceSource, TInstance, TLabelSource>(string fileName, IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, int> mapping)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | The name of the file of a serialized multi-class Bayes point machine classifier. |
IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Int32> | mapping | The mapping used for accessing data in the native format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, Int32, Discrete, GaussianBayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<Int32>> | The multi-class Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
LoadBackwardCompatibleGaussianPriorMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(IReader, IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector>)
Deserializes a multi-class Bayes point machine classifier with Gaussian prior distributions over factorized weights from a reader to a stream and a standard data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, double>, GaussianBayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> LoadBackwardCompatibleGaussianPriorMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(IReader reader, IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> mapping)
Parameters
Type | Name | Description |
---|---|---|
IReader | reader | The reader to a stream of a serialized multi-class Bayes point machine classifier. |
IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> | mapping | The mapping used for accessing data in the standard format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, Double>, GaussianBayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> | The multi-class Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
LoadBackwardCompatibleGaussianPriorMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(String, IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector>)
Deserializes a multi-class Bayes point machine classifier with Gaussian prior distributions over factorized weights from a file with the specified name and a standard data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, double>, GaussianBayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> LoadBackwardCompatibleGaussianPriorMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(string fileName, IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> mapping)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | The name of the file of a serialized multi-class Bayes point machine classifier. |
IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> | mapping | The mapping used for accessing data in the standard format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, Double>, GaussianBayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> | The multi-class Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
LoadBackwardCompatibleGaussianPriorMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution>(Stream, IFormatter)
Deserializes a multi-class Bayes point machine classifier with Gaussian prior distributions over factorized weights from a stream and formatter.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, GaussianBayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> LoadBackwardCompatibleGaussianPriorMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution>(Stream stream, IFormatter formatter)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The stream. |
IFormatter | formatter | The formatter. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, GaussianBayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> | The deserialized multi-class Bayes point machine classifier object. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
TLabelDistribution | The type of a distribution over labels. |
LoadBackwardCompatibleGaussianPriorMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution>(String)
Deserializes a multi-class Bayes point machine classifier with Gaussian prior distributions over factorized weights from a file.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, GaussianBayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> LoadBackwardCompatibleGaussianPriorMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution>(string fileName)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | The file name. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, GaussianBayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> | The deserialized multi-class Bayes point machine classifier object. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
TLabelDistribution | The type of a distribution over labels. |
LoadBackwardCompatibleMulticlassClassifier<TInstanceSource, TInstance, TLabelSource>(IReader, IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Int32>)
Deserializes a multi-class Bayes point machine classifier from a reader to a stream and a native data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, int, Discrete, BayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<int>> LoadBackwardCompatibleMulticlassClassifier<TInstanceSource, TInstance, TLabelSource>(IReader reader, IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, int> mapping)
Parameters
Type | Name | Description |
---|---|---|
IReader | reader | The reader to a stream of a serialized multi-class Bayes point machine classifier. |
IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Int32> | mapping | The mapping used for accessing data in the native format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, Int32, Discrete, BayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<Int32>> | The multi-class Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
LoadBackwardCompatibleMulticlassClassifier<TInstanceSource, TInstance, TLabelSource>(String, IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Int32>)
Deserializes a multi-class Bayes point machine classifier from a file with the specified name and a native data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, int, Discrete, BayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<int>> LoadBackwardCompatibleMulticlassClassifier<TInstanceSource, TInstance, TLabelSource>(string fileName, IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, int> mapping)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | The name of the file of a serialized multi-class Bayes point machine classifier. |
IBayesPointMachineClassifierMapping<TInstanceSource, TInstance, TLabelSource, Int32> | mapping | The mapping used for accessing data in the native format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, Int32, Discrete, BayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<Int32>> | The multi-class Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
LoadBackwardCompatibleMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(IReader, IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector>)
Deserializes a multi-class Bayes point machine classifier from a reader to a stream and a standard data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, double>, BayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> LoadBackwardCompatibleMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(IReader reader, IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> mapping)
Parameters
Type | Name | Description |
---|---|---|
IReader | reader | The reader to a stream of a serialized multi-class Bayes point machine classifier. |
IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> | mapping | The mapping used for accessing data in the standard format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, Double>, BayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> | The multi-class Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
LoadBackwardCompatibleMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(String, IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector>)
Deserializes a multi-class Bayes point machine classifier from a file with the specified name and a standard data format mapping.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, double>, BayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> LoadBackwardCompatibleMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel>(string fileName, IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> mapping)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | The name of the file of a serialized multi-class Bayes point machine classifier. |
IClassifierMapping<TInstanceSource, TInstance, TLabelSource, TLabel, Vector> | mapping | The mapping used for accessing data in the standard format. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, IDictionary<TLabel, Double>, BayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> | The multi-class Bayes point machine classifier instance. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
LoadBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution>(Stream, IFormatter)
Deserializes a binary Bayes point machine classifier from a stream and format.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, BayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> LoadBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution>(Stream stream, IFormatter formatter)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The stream. |
IFormatter | formatter | The formatter. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, BayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> | The deserialized binary Bayes point machine classifier object. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
TLabelDistribution | The type of a distribution over labels. |
LoadBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution>(String)
Deserializes a binary Bayes point machine classifier from a file.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, BayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> LoadBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution>(string fileName)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | The file name. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, BayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> | The deserialized binary Bayes point machine classifier object. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
TLabelDistribution | The type of a distribution over labels. |
LoadBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings>(Stream, IFormatter)
Deserializes a binary Bayes point machine classifier from a stream and formatter.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> LoadBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings>(Stream stream, IFormatter formatter)
where TTrainingSettings : BayesPointMachineClassifierTrainingSettings
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The stream. |
IFormatter | formatter | The formatter. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> | The deserialized binary Bayes point machine classifier object. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
TLabelDistribution | The type of a distribution over labels. |
TTrainingSettings | The type of the settings for training. |
LoadBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings>(String)
Deserializes a binary Bayes point machine classifier from a file.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> LoadBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings>(string fileName)
where TTrainingSettings : BayesPointMachineClassifierTrainingSettings
Parameters
Type | Name | Description |
---|---|---|
String | fileName | The file name. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> | The deserialized binary Bayes point machine classifier object. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
TLabelDistribution | The type of a distribution over labels. |
TTrainingSettings | The type of the settings for training. |
LoadGaussianPriorBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution>(Stream, IFormatter)
Deserializes a binary Bayes point machine classifier with Gaussian prior distributions over factorized weights from a stream and formatter.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, GaussianBayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> LoadGaussianPriorBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution>(Stream stream, IFormatter formatter)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The stream. |
IFormatter | formatter | The formatter. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, GaussianBayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> | The deserialized binary Bayes point machine classifier object. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
TLabelDistribution | The type of a distribution over labels. |
LoadGaussianPriorBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution>(String)
Deserializes a binary Bayes point machine classifier with Gaussian prior distributions over factorized weights from a file.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, GaussianBayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> LoadGaussianPriorBinaryClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution>(string fileName)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | The file name. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, GaussianBayesPointMachineClassifierTrainingSettings, BinaryBayesPointMachineClassifierPredictionSettings<TLabel>> | The deserialized binary Bayes point machine classifier object. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
TLabelDistribution | The type of a distribution over labels. |
LoadMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution>(Stream, IFormatter)
Deserializes a multi-class Bayes point machine classifier from a stream and formatter.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, BayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> LoadMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution>(Stream stream, IFormatter formatter)
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The stream. |
IFormatter | formatter | The formatter. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, BayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> | The deserialized multi-class Bayes point machine classifier object. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
TLabelDistribution | The type of a distribution over labels. |
LoadMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution>(String)
Deserializes a multi-class Bayes point machine classifier from a file.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, BayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> LoadMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution>(string fileName)
Parameters
Type | Name | Description |
---|---|---|
String | fileName | The file name. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, BayesPointMachineClassifierTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> | The deserialized multi-class Bayes point machine classifier object. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
TLabelDistribution | The type of a distribution over labels. |
LoadMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings>(Stream, IFormatter)
Deserializes a multi-class Bayes point machine classifier from a stream and a formatter.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> LoadMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings>(Stream stream, IFormatter formatter)
where TTrainingSettings : BayesPointMachineClassifierTrainingSettings
Parameters
Type | Name | Description |
---|---|---|
Stream | stream | The stream. |
IFormatter | formatter | The formatter. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> | The deserialized multi-class Bayes point machine classifier object. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
TLabelDistribution | The type of a distribution over labels. |
TTrainingSettings | The type of the settings for training. |
LoadMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings>(String)
Deserializes a multi-class Bayes point machine classifier from a file.
Declaration
public static IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> LoadMulticlassClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings>(string fileName)
where TTrainingSettings : BayesPointMachineClassifierTrainingSettings
Parameters
Type | Name | Description |
---|---|---|
String | fileName | The file name. |
Returns
Type | Description |
---|---|
IBayesPointMachineClassifier<TInstanceSource, TInstance, TLabelSource, TLabel, TLabelDistribution, TTrainingSettings, MulticlassBayesPointMachineClassifierPredictionSettings<TLabel>> | The deserialized multi-class Bayes point machine classifier object. |
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance. |
TLabelSource | The type of a source of labels. |
TLabel | The type of a label. |
TLabelDistribution | The type of a distribution over labels. |
TTrainingSettings | The type of the settings for training. |