C# Class 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.
Inheritance: BaseApproach
Datei anzeigen Open project: stewhir/recent-robust-qac

Public Methods

Method Description
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

Protected Methods

Method Description
AutoCompleteQuery ( System.DateTime queryTime, string partialQuery, string fullQuery ) : AutoCompletionList

Autocomplete a query after n characters

Private Methods

Method Description
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

Method Details

AutoCompleteQuery() protected method

Autocomplete a query after n characters
protected AutoCompleteQuery ( System.DateTime queryTime, string partialQuery, string fullQuery ) : AutoCompletionList
queryTime System.DateTime
partialQuery string
fullQuery string
return AutoCompletionList

CreateAutoCompletionList() public method

public CreateAutoCompletionList ( IEnumerable allPrefixEntries, int defaultMinCutOff = 1 ) : AutoCompletionList
allPrefixEntries IEnumerable
defaultMinCutOff int
return AutoCompletionList

noSGDLRMNTB() public method

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
return System