C# Class Accord.IO.LibSvmModel

Reads support vector machines created from LibSVM or Liblinear. Not all solver types are supported.
Mostrar archivo Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
CreateAlgorithm ( ) : ISupervisedLearning

Creates a support vector machine learning algorithm that attends the requisites specified in this model.

CreateMachine ( ) : Accord.MachineLearning.VectorMachines.SupportVectorMachine

Creates a SupportVectorMachine that attends the requisites specified in this model.

LibSvmModel ( ) : System

Creates a new LibSvmModel object.

Load ( Stream stream ) : LibSvmModel

Loads a model specified using LibSVM's model format from a stream.

Load ( string path ) : LibSvmModel

Loads a model specified using LibSVM's model format from disk.

Save ( Stream stream ) : void

Saves this model to disk using LibSVM's model format.

Save ( string path ) : void

Saves this model to disk using LibSVM's model format.

Method Details

CreateAlgorithm() public method

Creates a support vector machine learning algorithm that attends the requisites specified in this model.
public CreateAlgorithm ( ) : ISupervisedLearning
return ISupervisedLearning

CreateMachine() public method

Creates a SupportVectorMachine that attends the requisites specified in this model.
public CreateMachine ( ) : Accord.MachineLearning.VectorMachines.SupportVectorMachine
return Accord.MachineLearning.VectorMachines.SupportVectorMachine

LibSvmModel() public method

Creates a new LibSvmModel object.
public LibSvmModel ( ) : System
return System

Load() public static method

Loads a model specified using LibSVM's model format from a stream.
public static Load ( Stream stream ) : LibSvmModel
stream Stream The stream from where the model should be loaded.
return LibSvmModel

Load() public static method

Loads a model specified using LibSVM's model format from disk.
public static Load ( string path ) : LibSvmModel
path string The file path from where the model should be loaded.
return LibSvmModel

Save() public method

Saves this model to disk using LibSVM's model format.
public Save ( Stream stream ) : void
stream Stream The stream where the file should be written.
return void

Save() public method

Saves this model to disk using LibSVM's model format.
public Save ( string path ) : void
path string The path where the file should be written.
return void