C# Class VW.Serializer.VowpalWabbitMarshalContext

Context containing state during example marshalling.
Inheritance: IDisposable
Afficher le fichier Open project: NativoPlatform/vowpal_wabbit Class Usage Examples

Méthodes publiques

Méthode Description
AppendStringExample ( bool dictify, string format ) : void

Formats args based on format to the string example buffer.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

VowpalWabbitMarshalContext ( IVowpalWabbitExamplePool vwPool, string>.Dictionary dictionary = null, string>.Dictionary fastDictionary = null ) : System

Initializes a new instance of the VowpalWabbitMarshalContext class.

VowpalWabbitMarshalContext ( VowpalWabbit vw, VowpalWabbitExampleBuilder exampleBuilder, string>.Dictionary dictionary = null, string>.Dictionary fastDictionary = null ) : System

Initializes a new instance of the VowpalWabbitMarshalContext class.

Private Methods

Méthode Description
Dispose ( bool disposing ) : void

Method Details

AppendStringExample() public méthode

Formats args based on format to the string example buffer.
public AppendStringExample ( bool dictify, string format ) : void
dictify bool If true, performs dictionarization on the serialized string and inserts a surrogate.
format string The string format used to serialize .
Résultat void

Dispose() public méthode

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Résultat void

VowpalWabbitMarshalContext() public méthode

Initializes a new instance of the VowpalWabbitMarshalContext class.
public VowpalWabbitMarshalContext ( IVowpalWabbitExamplePool vwPool, string>.Dictionary dictionary = null, string>.Dictionary fastDictionary = null ) : System
vwPool IVowpalWabbitExamplePool
dictionary string>.Dictionary Dictionary used for dictify operation.
fastDictionary string>.Dictionary Dictionary used for dictify operation.
Résultat System

VowpalWabbitMarshalContext() public méthode

Initializes a new instance of the VowpalWabbitMarshalContext class.
public VowpalWabbitMarshalContext ( VowpalWabbit vw, VowpalWabbitExampleBuilder exampleBuilder, string>.Dictionary dictionary = null, string>.Dictionary fastDictionary = null ) : System
vw VowpalWabbit The VW instance the example will be imported to.
exampleBuilder VowpalWabbitExampleBuilder A shared example builder.
dictionary string>.Dictionary Dictionary used for dictify operation.
fastDictionary string>.Dictionary Dictionary used for dictify operation.
Résultat System