C# Class VW.VowpalWabbitDynamic

Vowpal Wabbit wrapper for anonymous classes. Type used for serialization doesn't need to be known at compile time, but it's checked at runtime.
For each call to Learn there is additional overhead as the type is looked up in a dictionary compared to VowpalWabbit{T}.
Inheritance: IDisposable
ファイルを表示 Open project: NativoPlatform/vowpal_wabbit Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

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

Learn ( object example, ILabel label = null, int index = null ) : void

Learns from the given example.

VowpalWabbitDynamic ( VowpalWabbitSettings settings ) : System

Initializes a new instance of the VowpalWabbitDynamic class.

VowpalWabbitDynamic ( string arguments ) : System

Initializes a new instance of the VowpalWabbitDynamic class.

Private Methods

Method Description
Dispose ( bool disposing ) : void
GetOrCreateSerializer ( Type type ) : IVowpalWabbitSerializer

Method Details

Dispose() public method

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

Learn() public method

Learns from the given example.
public Learn ( object example, ILabel label = null, int index = null ) : void
example object The example to learn.
label ILabel The optional label for this .
index int The optional index of the example, the should be attributed to.
return void

VowpalWabbitDynamic() public method

Initializes a new instance of the VowpalWabbitDynamic class.
public VowpalWabbitDynamic ( VowpalWabbitSettings settings ) : System
settings VowpalWabbitSettings Arguments passed to native instance.
return System

VowpalWabbitDynamic() public method

Initializes a new instance of the VowpalWabbitDynamic class.
public VowpalWabbitDynamic ( string arguments ) : System
arguments string Command line arguments passed to native instance.
return System