C# Класс BigML.Model.LocalModel

Показать файл Открыть проект

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

Метод Описание
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