C# 클래스 VW.Serializer.VowpalWabbitJsonBuilder

Build VowpalWabbitExample from JSON following https://github.com/JohnLangford/vowpal_wabbit/wiki/JSON
상속: IDisposable
파일 보기 프로젝트 열기: arielf/vowpal_wabbit 1 사용 예제들

공개 메소드들

메소드 설명
CreateExample ( ) : VowpalWabbitExample

Creates the managed example representation.

Dispose ( ) : void

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

Parse ( JsonReader reader, ILabel label = null, List extensions = null ) : void

Parses the example.

VowpalWabbitJsonBuilder ( VowpalWabbitJsonSerializer serializer, IVowpalWabbitExamplePool vwPool, VowpalWabbitDefaultMarshaller defaultMarshaller, JsonSerializer jsonSerializer, int multiIndex = -1 ) : System

Initializes a new instance of VowpalWabbitJsonBuilder.

비공개 메소드들

메소드 설명
Dispose ( bool disposing ) : void
MarshalFloatFeature ( VowpalWabbitMarshalContext context, VW.Serializer.Intermediate.Namespace ns, ulong index, float value ) : void
Parse ( List path, VowpalWabbitMarshalContext namespaceContext, VW.Serializer.Intermediate.Namespace ns ) : void
ParseFeature ( List path, string featureName ) : void

Expects that actual feature value.

ParseFeature ( VowpalWabbitMarshalContext context, VW.Serializer.Intermediate.Namespace ns, string featureName ) : void

Expects that actual feature value.

ParseFeatureArray ( VowpalWabbitMarshalContext context, VW.Serializer.Intermediate.Namespace ns ) : void

Expects: "1,2.2,3]" (excluding the leading [)

ParseFeatureArrayReUsable ( ) : IVowpalWabbitMarshalAction

Expects: "1,2.2,3]" (excluding the leading [)

ParseFeatureReUsable ( ) : IVowpalWabbitMarshalAction
ParseLabel ( ) : void
ParseNamespaceAndFeatures ( List path, string namespaceValue ) : void

Parses { "feature1":1, "feature2":true, .... }

ParseProperties ( List path ) : void
ParseSpecialProperty ( VowpalWabbitJsonParseContext context, string propertyName ) : void
VowpalWabbitJsonBuilder ( ) : System

메소드 상세

CreateExample() 공개 메소드

Creates the managed example representation.
public CreateExample ( ) : VowpalWabbitExample
리턴 VowpalWabbitExample

Dispose() 공개 메소드

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

Parse() 공개 메소드

Parses the example.
public Parse ( JsonReader reader, ILabel label = null, List extensions = 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. ///
extensions List Action to be executed when special properties are discovered.
리턴 void

VowpalWabbitJsonBuilder() 공개 메소드

Initializes a new instance of VowpalWabbitJsonBuilder.
public VowpalWabbitJsonBuilder ( VowpalWabbitJsonSerializer serializer, IVowpalWabbitExamplePool vwPool, VowpalWabbitDefaultMarshaller defaultMarshaller, JsonSerializer jsonSerializer, int multiIndex = -1 ) : System
serializer VowpalWabbitJsonSerializer
vwPool IVowpalWabbitExamplePool
defaultMarshaller VowpalWabbitDefaultMarshaller
jsonSerializer Newtonsoft.Json.JsonSerializer
multiIndex int
리턴 System