C# Class VW.Serializer.VowpalWabbitMarshalContext

Context containing state during example marshalling.
Inheritance: IDisposable
ファイルを表示 Open project: NativoPlatform/vowpal_wabbit Class Usage Examples

Public Methods

Method 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

Method Description
Dispose ( bool disposing ) : void

Method Details

AppendStringExample() public method

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 .
return void

Dispose() public method

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

VowpalWabbitMarshalContext() public method

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.
return System

VowpalWabbitMarshalContext() public method

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.
return System