C# Класс VW.Serializer.VowpalWabbitJsonSerializer

A deserializer from JSON to Vowpal Wabbit native examples.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CreateExamples ( ) : VowpalWabbitExampleCollection

Creates the examples ready for learning or prediction.

Dispose ( ) : void

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

GetNumberOfActionDependentExamples ( JsonReader reader, string multiProperty = PropertyConfiguration.MultiPropertyDefault ) : int
GetNumberOfActionDependentExamples ( string json ) : int
Parse ( JsonReader reader, ILabel label = null, int index = null ) : void

Parses the example.

Parse ( string json, ILabel label = null, int index = null ) : void

Parses the example.

ParseAndCreate ( JsonReader reader, ILabel label = null, int index = null ) : VowpalWabbitExampleCollection

Parses the example.

ParseAndCreate ( string json, ILabel label = null, int index = null ) : VowpalWabbitExampleCollection

Parses and creates the example.

VowpalWabbitJsonSerializer ( IVowpalWabbitExamplePool vwPool ) : Newtonsoft.Json

Initializes a new instance of the VowpalWabbitJson class.

Приватные методы

Метод Описание
Dispose ( bool disposing ) : void

Описание методов

CreateExamples() публичный Метод

Creates the examples ready for learning or prediction.
public CreateExamples ( ) : VowpalWabbitExampleCollection
Результат VowpalWabbitExampleCollection

Dispose() публичный Метод

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

GetNumberOfActionDependentExamples() публичный статический Метод

public static GetNumberOfActionDependentExamples ( JsonReader reader, string multiProperty = PropertyConfiguration.MultiPropertyDefault ) : int
reader Newtonsoft.Json.JsonReader
multiProperty string
Результат int

GetNumberOfActionDependentExamples() публичный статический Метод

public static GetNumberOfActionDependentExamples ( string json ) : int
json string
Результат int

Parse() публичный Метод

Parses the example.
public Parse ( JsonReader reader, ILabel label = null, int index = null ) : void
reader Newtonsoft.Json.JsonReader The example to parse.
label ILabel /// Optional label, taking precedence over "_label" property found in . /// If null, will be inspected and the "_label" property used as label. ///
index int Optional index of example the given label should be applied for multi-line examples.
Результат void

Parse() публичный Метод

Parses the example.
public Parse ( string json, ILabel label = null, int index = null ) : void
json string The example to parse.
label ILabel /// Optional label, taking precedence over "_label" property found in . /// If null, will be inspected and the "_label" property used as label. ///
index int Optional index of example the given label should be applied for multi-line examples.
Результат void

ParseAndCreate() публичный Метод

Parses the example.
public ParseAndCreate ( JsonReader reader, ILabel label = null, int index = null ) : VowpalWabbitExampleCollection
reader Newtonsoft.Json.JsonReader The example to parse.
label ILabel /// Optional label, taking precedence over "_label" property found in . /// If null, will be inspected and the "_label" property used as label. ///
index int Optional index of example the given label should be applied for multi-line examples.
Результат VowpalWabbitExampleCollection

ParseAndCreate() публичный Метод

Parses and creates the example.
public ParseAndCreate ( string json, ILabel label = null, int index = null ) : VowpalWabbitExampleCollection
json string The example to parse.
label ILabel /// Optional label, taking precedence over "_label" property found in . /// If null, will be inspected and the "_label" property used as label. ///
index int Optional index of example the given label should be applied for multi-line examples.
Результат VowpalWabbitExampleCollection

VowpalWabbitJsonSerializer() публичный Метод

Initializes a new instance of the VowpalWabbitJson class.
public VowpalWabbitJsonSerializer ( IVowpalWabbitExamplePool vwPool ) : Newtonsoft.Json
vwPool IVowpalWabbitExamplePool
Результат Newtonsoft.Json