C# Класс QACExperimenter.Approaches.noSGDLRMNTB

Linear regression over multiple non-overlapping non temporal buckets. The linear regression model is trained using stochastic gradient descent (SGD) during the run.
Наследование: BaseApproach
Показать файл Открыть проект

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

Метод Описание
CreateAutoCompletionList ( IEnumerable allPrefixEntries, int defaultMinCutOff = 1 ) : AutoCompletionList
noSGDLRMNTB ( int multipleNs, int multipleMaxSingleQueryN, int trainAfterNQueriesForPrefix, string queryLogFile, int autoCompleteAfterNChars, StandardEvalOutput evalOutput, PrefixProfile queryPrefixProfile, int baseNtbSize = 200 ) : System

MultipleNs must be specified in ascending order for the NTBs

Защищенные методы

Метод Описание
AutoCompleteQuery ( System.DateTime queryTime, string partialQuery, string fullQuery ) : AutoCompletionList

Autocomplete a query after n characters

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

Метод Описание
BuildFeaturePackage ( BaseIndexEntry prefixEntry, string partialQuery, bool includeQueryCountsFeature = false ) : FeaturePackage

Build the feature package including NTB likelihoods for the specified query. Doesn't include the target likelihood.

BuildTrainingPackage ( string partialQuery, bool isFirstTrainingPackageForPrefix ) : TrainingPackage

Build the training package for a query prefix

MakePrediction ( BaseIndexEntry indexEntry, string partialQuery ) : double

Make prediction using linear regression

UseTrainingPackage ( TrainingPackage trainingPackage ) : void

Apply the training package to the model

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

AutoCompleteQuery() защищенный Метод

Autocomplete a query after n characters
protected AutoCompleteQuery ( System.DateTime queryTime, string partialQuery, string fullQuery ) : AutoCompletionList
queryTime System.DateTime
partialQuery string
fullQuery string
Результат AutoCompletionList

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

public CreateAutoCompletionList ( IEnumerable allPrefixEntries, int defaultMinCutOff = 1 ) : AutoCompletionList
allPrefixEntries IEnumerable
defaultMinCutOff int
Результат AutoCompletionList

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

MultipleNs must be specified in ascending order for the NTBs
public noSGDLRMNTB ( int multipleNs, int multipleMaxSingleQueryN, int trainAfterNQueriesForPrefix, string queryLogFile, int autoCompleteAfterNChars, StandardEvalOutput evalOutput, PrefixProfile queryPrefixProfile, int baseNtbSize = 200 ) : System
multipleNs int
multipleMaxSingleQueryN int
trainAfterNQueriesForPrefix int How many queries to observe between training the ML model (i.e., predict queries in this window of N - OR: 'the prediction horizon'). Note the model won't start training until after (largest NTB size) + (trainAfter parameter) has been reached
queryLogFile string
autoCompleteAfterNChars int
evalOutput QACExperimenter.Evaluation.StandardEvalOutput
queryPrefixProfile PrefixProfile
baseNtbSize int
Результат System