Synapseml
1.0.3
|
SyntheticControlEstimator implements SyntheticControlEstimator More...
Public Member Functions | |
SyntheticControlEstimator () | |
Creates a SyntheticControlEstimator without any parameters. More... | |
SyntheticControlEstimator (string uid) | |
Creates a SyntheticControlEstimator with a UID that is used to give the SyntheticControlEstimator a unique ID. More... | |
SyntheticControlEstimator | SetEpsilon (double value) |
Sets value for epsilon More... | |
SyntheticControlEstimator | SetHandleMissingOutcome (string value) |
Sets value for handleMissingOutcome More... | |
SyntheticControlEstimator | SetLocalSolverThreshold (long value) |
Sets value for localSolverThreshold More... | |
SyntheticControlEstimator | SetMaxIter (int value) |
Sets value for maxIter More... | |
SyntheticControlEstimator | SetNumIterNoChange (int value) |
Sets value for numIterNoChange More... | |
SyntheticControlEstimator | SetOutcomeCol (string value) |
Sets value for outcomeCol More... | |
SyntheticControlEstimator | SetPostTreatmentCol (string value) |
Sets value for postTreatmentCol More... | |
SyntheticControlEstimator | SetStepSize (double value) |
Sets value for stepSize More... | |
SyntheticControlEstimator | SetTimeCol (string value) |
Sets value for timeCol More... | |
SyntheticControlEstimator | SetTol (double value) |
Sets value for tol More... | |
SyntheticControlEstimator | SetTreatmentCol (string value) |
Sets value for treatmentCol More... | |
SyntheticControlEstimator | SetUnitCol (string value) |
Sets value for unitCol More... | |
double | GetEpsilon () |
Gets epsilon value More... | |
string | GetHandleMissingOutcome () |
Gets handleMissingOutcome value More... | |
long | GetLocalSolverThreshold () |
Gets localSolverThreshold value More... | |
int | GetMaxIter () |
Gets maxIter value More... | |
int | GetNumIterNoChange () |
Gets numIterNoChange value More... | |
string | GetOutcomeCol () |
Gets outcomeCol value More... | |
string | GetPostTreatmentCol () |
Gets postTreatmentCol value More... | |
double | GetStepSize () |
Gets stepSize value More... | |
string | GetTimeCol () |
Gets timeCol value More... | |
double | GetTol () |
Gets tol value More... | |
string | GetTreatmentCol () |
Gets treatmentCol value More... | |
string | GetUnitCol () |
Gets unitCol value More... | |
override DiffInDiffModel | 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 () |
| |
JavaMLReader< SyntheticControlEstimator > | Read () |
Get the corresponding JavaMLReader instance. More... | |
Static Public Member Functions | |
static SyntheticControlEstimator | Load (string path) |
Loads the SyntheticControlEstimator that was previously saved using Save(string). More... | |
|
inline |
Creates a SyntheticControlEstimator without any parameters.
|
inline |
Creates a SyntheticControlEstimator with a UID that is used to give the SyntheticControlEstimator a unique ID.
uid | An immutable unique ID for the object and its derivatives. |
override DiffInDiffModel Synapse.ML.Causal.SyntheticControlEstimator.Fit | ( | DataFrame | dataset | ) |
Fits a model to the input data.
dataset | The DataFrame to fit the model to. |
double Synapse.ML.Causal.SyntheticControlEstimator.GetEpsilon | ( | ) |
Gets epsilon value
string Synapse.ML.Causal.SyntheticControlEstimator.GetHandleMissingOutcome | ( | ) |
Gets handleMissingOutcome value
long Synapse.ML.Causal.SyntheticControlEstimator.GetLocalSolverThreshold | ( | ) |
Gets localSolverThreshold value
int Synapse.ML.Causal.SyntheticControlEstimator.GetMaxIter | ( | ) |
Gets maxIter value
int Synapse.ML.Causal.SyntheticControlEstimator.GetNumIterNoChange | ( | ) |
Gets numIterNoChange value
string Synapse.ML.Causal.SyntheticControlEstimator.GetOutcomeCol | ( | ) |
Gets outcomeCol value
string Synapse.ML.Causal.SyntheticControlEstimator.GetPostTreatmentCol | ( | ) |
Gets postTreatmentCol value
double Synapse.ML.Causal.SyntheticControlEstimator.GetStepSize | ( | ) |
Gets stepSize value
string Synapse.ML.Causal.SyntheticControlEstimator.GetTimeCol | ( | ) |
Gets timeCol value
double Synapse.ML.Causal.SyntheticControlEstimator.GetTol | ( | ) |
Gets tol value
string Synapse.ML.Causal.SyntheticControlEstimator.GetTreatmentCol | ( | ) |
Gets treatmentCol value
string Synapse.ML.Causal.SyntheticControlEstimator.GetUnitCol | ( | ) |
Gets unitCol value
|
static |
Loads the SyntheticControlEstimator that was previously saved using Save(string).
path | The path the previous SyntheticControlEstimator was saved to |
JavaMLReader<SyntheticControlEstimator> Synapse.ML.Causal.SyntheticControlEstimator.Read | ( | ) |
Get the corresponding JavaMLReader instance.
void Synapse.ML.Causal.SyntheticControlEstimator.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.
path | The path to save the object to |
SyntheticControlEstimator Synapse.ML.Causal.SyntheticControlEstimator.SetEpsilon | ( | double | value | ) |
Sets value for epsilon
value | This value is added to the weights when we fit the final linear model for SyntheticControlEstimator and SyntheticDiffInDiffEstimator in order to avoid zero weights. |
SyntheticControlEstimator Synapse.ML.Causal.SyntheticControlEstimator.SetHandleMissingOutcome | ( | string | value | ) |
Sets value for handleMissingOutcome
value | How to handle missing outcomes. Options are skip (which will filter out units with missing outcomes), zero (fill in missing outcomes with zero), or impute (impute with nearest available outcomes, or mean if two nearest outcomes are available) |
SyntheticControlEstimator Synapse.ML.Causal.SyntheticControlEstimator.SetLocalSolverThreshold | ( | long | value | ) |
Sets value for localSolverThreshold
value | threshold for using local solver on driver node. Local solver is faster but relies on part of data being collected on driver node. |
SyntheticControlEstimator Synapse.ML.Causal.SyntheticControlEstimator.SetMaxIter | ( | int | value | ) |
Sets value for maxIter
value | maximum number of iterations (>= 0) |
SyntheticControlEstimator Synapse.ML.Causal.SyntheticControlEstimator.SetNumIterNoChange | ( | int | value | ) |
Sets value for numIterNoChange
value | Early termination when number of iterations without change reached. |
SyntheticControlEstimator Synapse.ML.Causal.SyntheticControlEstimator.SetOutcomeCol | ( | string | value | ) |
Sets value for outcomeCol
value | outcome column |
SyntheticControlEstimator Synapse.ML.Causal.SyntheticControlEstimator.SetPostTreatmentCol | ( | string | value | ) |
Sets value for postTreatmentCol
value | post treatment indicator column |
SyntheticControlEstimator Synapse.ML.Causal.SyntheticControlEstimator.SetStepSize | ( | double | value | ) |
Sets value for stepSize
value | Step size to be used for each iteration of optimization (> 0) |
SyntheticControlEstimator Synapse.ML.Causal.SyntheticControlEstimator.SetTimeCol | ( | string | value | ) |
Sets value for timeCol
value | Specify the column that identifies the time when outcome is measured in the panel data. For example, if the outcome is measured daily, this column could be the Date column. |
SyntheticControlEstimator Synapse.ML.Causal.SyntheticControlEstimator.SetTol | ( | double | value | ) |
Sets value for tol
value | the convergence tolerance for iterative algorithms (>= 0) |
SyntheticControlEstimator Synapse.ML.Causal.SyntheticControlEstimator.SetTreatmentCol | ( | string | value | ) |
Sets value for treatmentCol
value | treatment column |
SyntheticControlEstimator Synapse.ML.Causal.SyntheticControlEstimator.SetUnitCol | ( | string | value | ) |
Sets value for unitCol
value | Specify the name of the column which contains an identifier for each observed unit in the panel data. For example, if the observed units are users, this column could be the UserId column. |