C# 클래스 BigML.Model.LocalModel

파일 보기 프로젝트 열기: bigmlcom/bigml-csharp

공개 메소드들

메소드 설명
getFieldById ( string fieldId ) : DataSet.Field
getFieldByName ( string fieldName ) : DataSet.Field
predict ( dynamic>.Dictionary inputData, bool byName = true, int missing_strategy ) : Node

Generates a prediction based on this Model

prepareInputData ( dynamic>.Dictionary inputData, bool byName = true ) : dynamic>.Dictionary

Clean input data introduced for a prediction removing fields without valid value and populates the result's Dictionary by fieldID

비공개 메소드들

메소드 설명
LocalModel ( JsonValue jsonObject, DataSet.Field>.Dictionary fields ) : System
countWords ( string inData, string predicateValue ) : int
getFieldInfo ( string fieldId ) : DataSet.Field
getFieldTermAnalysis ( DataSet currentField ) : string>.Dictionary
predictNode ( Node currentNode, dynamic>.Dictionary inputData ) : Node
termMatches ( string text, string fieldLabel, string term ) : int

메소드 상세

getFieldById() 공개 메소드

public getFieldById ( string fieldId ) : DataSet.Field
fieldId string
리턴 DataSet.Field

getFieldByName() 공개 메소드

public getFieldByName ( string fieldName ) : DataSet.Field
fieldName string
리턴 DataSet.Field

predict() 공개 메소드

Generates a prediction based on this Model
public predict ( dynamic>.Dictionary inputData, bool byName = true, int missing_strategy ) : Node
inputData dynamic>.Dictionary Map with the ID or name of each field and its value
byName bool Flag for the inputData key: /// * true if fieldName is the key, /// * false if the key is the field ID
missing_strategy int Which strategy should use the prediction
리턴 Node

prepareInputData() 공개 메소드

Clean input data introduced for a prediction removing fields without valid value and populates the result's Dictionary by fieldID
public prepareInputData ( dynamic>.Dictionary inputData, bool byName = true ) : dynamic>.Dictionary
inputData dynamic>.Dictionary Original input data
byName bool
리턴 dynamic>.Dictionary