Synapseml  0.10.0
Public Member Functions | Static Public Member Functions | List of all members
Synapse.ML.Vw.VowpalWabbitContextualBandit Class Reference

VowpalWabbitContextualBandit implements VowpalWabbitContextualBandit More...

Inheritance diagram for Synapse.ML.Vw.VowpalWabbitContextualBandit:
Inheritance graph
[legend]
Collaboration diagram for Synapse.ML.Vw.VowpalWabbitContextualBandit:
Collaboration graph
[legend]

Public Member Functions

 VowpalWabbitContextualBandit ()
 Creates a VowpalWabbitContextualBandit without any parameters. More...
 
 VowpalWabbitContextualBandit (string uid)
 Creates a VowpalWabbitContextualBandit with a UID that is used to give the VowpalWabbitContextualBandit a unique ID. More...
 
VowpalWabbitContextualBandit SetAdditionalFeatures (string[] value)
 Sets value for additionalFeatures More...
 
VowpalWabbitContextualBandit SetAdditionalSharedFeatures (string[] value)
 Sets value for additionalSharedFeatures More...
 
VowpalWabbitContextualBandit SetChosenActionCol (string value)
 Sets value for chosenActionCol More...
 
VowpalWabbitContextualBandit SetEpsilon (double value)
 Sets value for epsilon More...
 
VowpalWabbitContextualBandit SetFeaturesCol (string value)
 Sets value for featuresCol More...
 
VowpalWabbitContextualBandit SetHashSeed (int value)
 Sets value for hashSeed More...
 
VowpalWabbitContextualBandit SetIgnoreNamespaces (string value)
 Sets value for ignoreNamespaces More...
 
VowpalWabbitContextualBandit SetInitialModel (object value)
 Sets value for initialModel More...
 
VowpalWabbitContextualBandit SetInteractions (string[] value)
 Sets value for interactions More...
 
VowpalWabbitContextualBandit SetL1 (double value)
 Sets value for l1 More...
 
VowpalWabbitContextualBandit SetL2 (double value)
 Sets value for l2 More...
 
VowpalWabbitContextualBandit SetLabelCol (string value)
 Sets value for labelCol More...
 
VowpalWabbitContextualBandit SetLearningRate (double value)
 Sets value for learningRate More...
 
VowpalWabbitContextualBandit SetNumBits (int value)
 Sets value for numBits More...
 
VowpalWabbitContextualBandit SetNumPasses (int value)
 Sets value for numPasses More...
 
VowpalWabbitContextualBandit SetParallelism (int value)
 Sets value for parallelism More...
 
VowpalWabbitContextualBandit SetPassThroughArgs (string value)
 Sets value for passThroughArgs More...
 
VowpalWabbitContextualBandit SetPowerT (double value)
 Sets value for powerT More...
 
VowpalWabbitContextualBandit SetPredictionCol (string value)
 Sets value for predictionCol More...
 
VowpalWabbitContextualBandit SetProbabilityCol (string value)
 Sets value for probabilityCol More...
 
VowpalWabbitContextualBandit SetSharedCol (string value)
 Sets value for sharedCol More...
 
VowpalWabbitContextualBandit SetUseBarrierExecutionMode (bool value)
 Sets value for useBarrierExecutionMode More...
 
VowpalWabbitContextualBandit SetWeightCol (string value)
 Sets value for weightCol More...
 
string [] GetAdditionalFeatures ()
 Gets additionalFeatures value More...
 
string [] GetAdditionalSharedFeatures ()
 Gets additionalSharedFeatures value More...
 
string GetChosenActionCol ()
 Gets chosenActionCol value More...
 
double GetEpsilon ()
 Gets epsilon value More...
 
string GetFeaturesCol ()
 Gets featuresCol value More...
 
int GetHashSeed ()
 Gets hashSeed value More...
 
string GetIgnoreNamespaces ()
 Gets ignoreNamespaces value More...
 
object GetInitialModel ()
 Gets initialModel value More...
 
string [] GetInteractions ()
 Gets interactions value More...
 
double GetL1 ()
 Gets l1 value More...
 
double GetL2 ()
 Gets l2 value More...
 
string GetLabelCol ()
 Gets labelCol value More...
 
double GetLearningRate ()
 Gets learningRate value More...
 
int GetNumBits ()
 Gets numBits value More...
 
int GetNumPasses ()
 Gets numPasses value More...
 
int GetParallelism ()
 Gets parallelism value More...
 
string GetPassThroughArgs ()
 Gets passThroughArgs value More...
 
double GetPowerT ()
 Gets powerT value More...
 
string GetPredictionCol ()
 Gets predictionCol value More...
 
string GetProbabilityCol ()
 Gets probabilityCol value More...
 
string GetSharedCol ()
 Gets sharedCol value More...
 
bool GetUseBarrierExecutionMode ()
 Gets useBarrierExecutionMode value More...
 
string GetWeightCol ()
 Gets weightCol value More...
 
override VowpalWabbitContextualBanditModel Fit (DataFrame dataset)
 Fits a model to the input data. More...
 
void Save (string path)
 Saves the object so that it can be loaded later using Load. Note that these objects can be shared with Scala by Loading or Saving in Scala. More...
 
JavaMLWriter Write ()
 
Returns
a JavaMLWriter instance for this ML instance.

 
JavaMLReader< VowpalWabbitContextualBanditRead ()
 Get the corresponding JavaMLReader instance. More...
 

Static Public Member Functions

static VowpalWabbitContextualBandit Load (string path)
 Loads the VowpalWabbitContextualBandit that was previously saved using Save(string). More...
 

Detailed Description

VowpalWabbitContextualBandit implements VowpalWabbitContextualBandit

Constructor & Destructor Documentation

◆ VowpalWabbitContextualBandit() [1/2]

Synapse.ML.Vw.VowpalWabbitContextualBandit.VowpalWabbitContextualBandit ( )
inline

Creates a VowpalWabbitContextualBandit without any parameters.

◆ VowpalWabbitContextualBandit() [2/2]

Synapse.ML.Vw.VowpalWabbitContextualBandit.VowpalWabbitContextualBandit ( string  uid)
inline

Creates a VowpalWabbitContextualBandit with a UID that is used to give the VowpalWabbitContextualBandit a unique ID.

Parameters
uidAn immutable unique ID for the object and its derivatives.

Member Function Documentation

◆ Fit()

override VowpalWabbitContextualBanditModel Synapse.ML.Vw.VowpalWabbitContextualBandit.Fit ( DataFrame  dataset)

Fits a model to the input data.

Parameters
datasetThe DataFrame to fit the model to.
Returns
VowpalWabbitContextualBanditModel

◆ GetAdditionalFeatures()

string [] Synapse.ML.Vw.VowpalWabbitContextualBandit.GetAdditionalFeatures ( )

Gets additionalFeatures value

Returns
additionalFeatures: Additional feature columns

◆ GetAdditionalSharedFeatures()

string [] Synapse.ML.Vw.VowpalWabbitContextualBandit.GetAdditionalSharedFeatures ( )

Gets additionalSharedFeatures value

Returns
additionalSharedFeatures: Additional namespaces for the shared example

◆ GetChosenActionCol()

string Synapse.ML.Vw.VowpalWabbitContextualBandit.GetChosenActionCol ( )

Gets chosenActionCol value

Returns
chosenActionCol: Column name of chosen action

◆ GetEpsilon()

double Synapse.ML.Vw.VowpalWabbitContextualBandit.GetEpsilon ( )

Gets epsilon value

Returns
epsilon: epsilon used for exploration

◆ GetFeaturesCol()

string Synapse.ML.Vw.VowpalWabbitContextualBandit.GetFeaturesCol ( )

Gets featuresCol value

Returns
featuresCol: features column name

◆ GetHashSeed()

int Synapse.ML.Vw.VowpalWabbitContextualBandit.GetHashSeed ( )

Gets hashSeed value

Returns
hashSeed: Seed used for hashing

◆ GetIgnoreNamespaces()

string Synapse.ML.Vw.VowpalWabbitContextualBandit.GetIgnoreNamespaces ( )

Gets ignoreNamespaces value

Returns
ignoreNamespaces: Namespaces to be ignored (first letter only)

◆ GetInitialModel()

object Synapse.ML.Vw.VowpalWabbitContextualBandit.GetInitialModel ( )

Gets initialModel value

Returns
initialModel: Initial model to start from

◆ GetInteractions()

string [] Synapse.ML.Vw.VowpalWabbitContextualBandit.GetInteractions ( )

Gets interactions value

Returns
interactions: Interaction terms as specified by -q

◆ GetL1()

double Synapse.ML.Vw.VowpalWabbitContextualBandit.GetL1 ( )

Gets l1 value

Returns
l1: l_1 lambda

◆ GetL2()

double Synapse.ML.Vw.VowpalWabbitContextualBandit.GetL2 ( )

Gets l2 value

Returns
l2: l_2 lambda

◆ GetLabelCol()

string Synapse.ML.Vw.VowpalWabbitContextualBandit.GetLabelCol ( )

Gets labelCol value

Returns
labelCol: label column name

◆ GetLearningRate()

double Synapse.ML.Vw.VowpalWabbitContextualBandit.GetLearningRate ( )

Gets learningRate value

Returns
learningRate: Learning rate

◆ GetNumBits()

int Synapse.ML.Vw.VowpalWabbitContextualBandit.GetNumBits ( )

Gets numBits value

Returns
numBits: Number of bits used

◆ GetNumPasses()

int Synapse.ML.Vw.VowpalWabbitContextualBandit.GetNumPasses ( )

Gets numPasses value

Returns
numPasses: Number of passes over the data

◆ GetParallelism()

int Synapse.ML.Vw.VowpalWabbitContextualBandit.GetParallelism ( )

Gets parallelism value

Returns
parallelism: the number of threads to use when running parallel algorithms

◆ GetPassThroughArgs()

string Synapse.ML.Vw.VowpalWabbitContextualBandit.GetPassThroughArgs ( )

Gets passThroughArgs value

Returns
passThroughArgs: VW command line arguments passed

◆ GetPowerT()

double Synapse.ML.Vw.VowpalWabbitContextualBandit.GetPowerT ( )

Gets powerT value

Returns
powerT: t power value

◆ GetPredictionCol()

string Synapse.ML.Vw.VowpalWabbitContextualBandit.GetPredictionCol ( )

Gets predictionCol value

Returns
predictionCol: prediction column name

◆ GetProbabilityCol()

string Synapse.ML.Vw.VowpalWabbitContextualBandit.GetProbabilityCol ( )

Gets probabilityCol value

Returns
probabilityCol: Column name of probability of chosen action

◆ GetSharedCol()

string Synapse.ML.Vw.VowpalWabbitContextualBandit.GetSharedCol ( )

Gets sharedCol value

Returns
sharedCol: Column name of shared features

◆ GetUseBarrierExecutionMode()

bool Synapse.ML.Vw.VowpalWabbitContextualBandit.GetUseBarrierExecutionMode ( )

Gets useBarrierExecutionMode value

Returns
useBarrierExecutionMode: Use barrier execution mode, on by default.

◆ GetWeightCol()

string Synapse.ML.Vw.VowpalWabbitContextualBandit.GetWeightCol ( )

Gets weightCol value

Returns
weightCol: The name of the weight column

◆ Load()

static VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.Load ( string  path)
static

Loads the VowpalWabbitContextualBandit that was previously saved using Save(string).

Parameters
pathThe path the previous VowpalWabbitContextualBandit was saved to
Returns
New VowpalWabbitContextualBandit object, loaded from path.

◆ Read()

JavaMLReader<VowpalWabbitContextualBandit> Synapse.ML.Vw.VowpalWabbitContextualBandit.Read ( )

Get the corresponding JavaMLReader instance.

Returns
an JavaMLReader<VowpalWabbitContextualBandit> instance for this ML instance.

◆ Save()

void Synapse.ML.Vw.VowpalWabbitContextualBandit.Save ( string  path)

Saves the object so that it can be loaded later using Load. Note that these objects can be shared with Scala by Loading or Saving in Scala.

Parameters
pathThe path to save the object to

◆ SetAdditionalFeatures()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetAdditionalFeatures ( string []  value)

Sets value for additionalFeatures

Parameters
valueAdditional feature columns
Returns
New VowpalWabbitContextualBandit object

◆ SetAdditionalSharedFeatures()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetAdditionalSharedFeatures ( string []  value)

Sets value for additionalSharedFeatures

Parameters
valueAdditional namespaces for the shared example
Returns
New VowpalWabbitContextualBandit object

◆ SetChosenActionCol()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetChosenActionCol ( string  value)

Sets value for chosenActionCol

Parameters
valueColumn name of chosen action
Returns
New VowpalWabbitContextualBandit object

◆ SetEpsilon()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetEpsilon ( double  value)

Sets value for epsilon

Parameters
valueepsilon used for exploration
Returns
New VowpalWabbitContextualBandit object

◆ SetFeaturesCol()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetFeaturesCol ( string  value)

Sets value for featuresCol

Parameters
valuefeatures column name
Returns
New VowpalWabbitContextualBandit object

◆ SetHashSeed()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetHashSeed ( int  value)

Sets value for hashSeed

Parameters
valueSeed used for hashing
Returns
New VowpalWabbitContextualBandit object

◆ SetIgnoreNamespaces()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetIgnoreNamespaces ( string  value)

Sets value for ignoreNamespaces

Parameters
valueNamespaces to be ignored (first letter only)
Returns
New VowpalWabbitContextualBandit object

◆ SetInitialModel()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetInitialModel ( object  value)

Sets value for initialModel

Parameters
valueInitial model to start from
Returns
New VowpalWabbitContextualBandit object

◆ SetInteractions()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetInteractions ( string []  value)

Sets value for interactions

Parameters
valueInteraction terms as specified by -q
Returns
New VowpalWabbitContextualBandit object

◆ SetL1()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetL1 ( double  value)

Sets value for l1

Parameters
valuel_1 lambda
Returns
New VowpalWabbitContextualBandit object

◆ SetL2()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetL2 ( double  value)

Sets value for l2

Parameters
valuel_2 lambda
Returns
New VowpalWabbitContextualBandit object

◆ SetLabelCol()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetLabelCol ( string  value)

Sets value for labelCol

Parameters
valuelabel column name
Returns
New VowpalWabbitContextualBandit object

◆ SetLearningRate()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetLearningRate ( double  value)

Sets value for learningRate

Parameters
valueLearning rate
Returns
New VowpalWabbitContextualBandit object

◆ SetNumBits()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetNumBits ( int  value)

Sets value for numBits

Parameters
valueNumber of bits used
Returns
New VowpalWabbitContextualBandit object

◆ SetNumPasses()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetNumPasses ( int  value)

Sets value for numPasses

Parameters
valueNumber of passes over the data
Returns
New VowpalWabbitContextualBandit object

◆ SetParallelism()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetParallelism ( int  value)

Sets value for parallelism

Parameters
valuethe number of threads to use when running parallel algorithms
Returns
New VowpalWabbitContextualBandit object

◆ SetPassThroughArgs()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetPassThroughArgs ( string  value)

Sets value for passThroughArgs

Parameters
valueVW command line arguments passed
Returns
New VowpalWabbitContextualBandit object

◆ SetPowerT()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetPowerT ( double  value)

Sets value for powerT

Parameters
valuet power value
Returns
New VowpalWabbitContextualBandit object

◆ SetPredictionCol()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetPredictionCol ( string  value)

Sets value for predictionCol

Parameters
valueprediction column name
Returns
New VowpalWabbitContextualBandit object

◆ SetProbabilityCol()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetProbabilityCol ( string  value)

Sets value for probabilityCol

Parameters
valueColumn name of probability of chosen action
Returns
New VowpalWabbitContextualBandit object

◆ SetSharedCol()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetSharedCol ( string  value)

Sets value for sharedCol

Parameters
valueColumn name of shared features
Returns
New VowpalWabbitContextualBandit object

◆ SetUseBarrierExecutionMode()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetUseBarrierExecutionMode ( bool  value)

Sets value for useBarrierExecutionMode

Parameters
valueUse barrier execution mode, on by default.
Returns
New VowpalWabbitContextualBandit object

◆ SetWeightCol()

VowpalWabbitContextualBandit Synapse.ML.Vw.VowpalWabbitContextualBandit.SetWeightCol ( string  value)

Sets value for weightCol

Parameters
valueThe name of the weight column
Returns
New VowpalWabbitContextualBandit object

The documentation for this class was generated from the following file: