C# 클래스 VW.Serializer.VowpalWabbitJsonSerializer

A deserializer from JSON to Vowpal Wabbit native examples.
상속: IDisposable
파일 보기 프로젝트 열기: NativoPlatform/vowpal_wabbit 1 사용 예제들

공개 메소드들

메소드 설명
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