|
Synapseml
1.0.4
|
SyntheticDiffInDiffEstimator implements SyntheticDiffInDiffEstimator More...


Public Member Functions | |
| SyntheticDiffInDiffEstimator () | |
| Creates a SyntheticDiffInDiffEstimator without any parameters. More... | |
| SyntheticDiffInDiffEstimator (string uid) | |
| Creates a SyntheticDiffInDiffEstimator with a UID that is used to give the SyntheticDiffInDiffEstimator a unique ID. More... | |
| SyntheticDiffInDiffEstimator | SetEpsilon (double value) |
| Sets value for epsilon More... | |
| SyntheticDiffInDiffEstimator | SetHandleMissingOutcome (string value) |
| Sets value for handleMissingOutcome More... | |
| SyntheticDiffInDiffEstimator | SetLocalSolverThreshold (long value) |
| Sets value for localSolverThreshold More... | |
| SyntheticDiffInDiffEstimator | SetMaxIter (int value) |
| Sets value for maxIter More... | |
| SyntheticDiffInDiffEstimator | SetNumIterNoChange (int value) |
| Sets value for numIterNoChange More... | |
| SyntheticDiffInDiffEstimator | SetOutcomeCol (string value) |
| Sets value for outcomeCol More... | |
| SyntheticDiffInDiffEstimator | SetPostTreatmentCol (string value) |
| Sets value for postTreatmentCol More... | |
| SyntheticDiffInDiffEstimator | SetStepSize (double value) |
| Sets value for stepSize More... | |
| SyntheticDiffInDiffEstimator | SetTimeCol (string value) |
| Sets value for timeCol More... | |
| SyntheticDiffInDiffEstimator | SetTol (double value) |
| Sets value for tol More... | |
| SyntheticDiffInDiffEstimator | SetTreatmentCol (string value) |
| Sets value for treatmentCol More... | |
| SyntheticDiffInDiffEstimator | SetUnitCol (string value) |
| Sets value for unitCol More... | |
| SyntheticDiffInDiffEstimator | SetZeta (double value) |
| Sets value for zeta 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... | |
| double | GetZeta () |
| Gets zeta 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< SyntheticDiffInDiffEstimator > | Read () |
| Get the corresponding JavaMLReader instance. More... | |
Static Public Member Functions | |
| static SyntheticDiffInDiffEstimator | Load (string path) |
| Loads the SyntheticDiffInDiffEstimator that was previously saved using Save(string). More... | |
|
inline |
Creates a SyntheticDiffInDiffEstimator without any parameters.
|
inline |
Creates a SyntheticDiffInDiffEstimator with a UID that is used to give the SyntheticDiffInDiffEstimator a unique ID.
| uid | An immutable unique ID for the object and its derivatives. |
| override DiffInDiffModel Synapse.ML.Causal.SyntheticDiffInDiffEstimator.Fit | ( | DataFrame | dataset | ) |
Fits a model to the input data.
| dataset | The DataFrame to fit the model to. |
| double Synapse.ML.Causal.SyntheticDiffInDiffEstimator.GetEpsilon | ( | ) |
Gets epsilon value
| string Synapse.ML.Causal.SyntheticDiffInDiffEstimator.GetHandleMissingOutcome | ( | ) |
Gets handleMissingOutcome value
| long Synapse.ML.Causal.SyntheticDiffInDiffEstimator.GetLocalSolverThreshold | ( | ) |
Gets localSolverThreshold value
| int Synapse.ML.Causal.SyntheticDiffInDiffEstimator.GetMaxIter | ( | ) |
Gets maxIter value
| int Synapse.ML.Causal.SyntheticDiffInDiffEstimator.GetNumIterNoChange | ( | ) |
Gets numIterNoChange value
| string Synapse.ML.Causal.SyntheticDiffInDiffEstimator.GetOutcomeCol | ( | ) |
Gets outcomeCol value
| string Synapse.ML.Causal.SyntheticDiffInDiffEstimator.GetPostTreatmentCol | ( | ) |
Gets postTreatmentCol value
| double Synapse.ML.Causal.SyntheticDiffInDiffEstimator.GetStepSize | ( | ) |
Gets stepSize value
| string Synapse.ML.Causal.SyntheticDiffInDiffEstimator.GetTimeCol | ( | ) |
Gets timeCol value
| double Synapse.ML.Causal.SyntheticDiffInDiffEstimator.GetTol | ( | ) |
Gets tol value
| string Synapse.ML.Causal.SyntheticDiffInDiffEstimator.GetTreatmentCol | ( | ) |
Gets treatmentCol value
| string Synapse.ML.Causal.SyntheticDiffInDiffEstimator.GetUnitCol | ( | ) |
Gets unitCol value
| double Synapse.ML.Causal.SyntheticDiffInDiffEstimator.GetZeta | ( | ) |
Gets zeta value
|
static |
Loads the SyntheticDiffInDiffEstimator that was previously saved using Save(string).
| path | The path the previous SyntheticDiffInDiffEstimator was saved to |
| JavaMLReader<SyntheticDiffInDiffEstimator> Synapse.ML.Causal.SyntheticDiffInDiffEstimator.Read | ( | ) |
Get the corresponding JavaMLReader instance.
| void Synapse.ML.Causal.SyntheticDiffInDiffEstimator.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 |
| SyntheticDiffInDiffEstimator Synapse.ML.Causal.SyntheticDiffInDiffEstimator.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. |
| SyntheticDiffInDiffEstimator Synapse.ML.Causal.SyntheticDiffInDiffEstimator.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) |
| SyntheticDiffInDiffEstimator Synapse.ML.Causal.SyntheticDiffInDiffEstimator.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. |
| SyntheticDiffInDiffEstimator Synapse.ML.Causal.SyntheticDiffInDiffEstimator.SetMaxIter | ( | int | value | ) |
Sets value for maxIter
| value | maximum number of iterations (>= 0) |
| SyntheticDiffInDiffEstimator Synapse.ML.Causal.SyntheticDiffInDiffEstimator.SetNumIterNoChange | ( | int | value | ) |
Sets value for numIterNoChange
| value | Early termination when number of iterations without change reached. |
| SyntheticDiffInDiffEstimator Synapse.ML.Causal.SyntheticDiffInDiffEstimator.SetOutcomeCol | ( | string | value | ) |
Sets value for outcomeCol
| value | outcome column |
| SyntheticDiffInDiffEstimator Synapse.ML.Causal.SyntheticDiffInDiffEstimator.SetPostTreatmentCol | ( | string | value | ) |
Sets value for postTreatmentCol
| value | post treatment indicator column |
| SyntheticDiffInDiffEstimator Synapse.ML.Causal.SyntheticDiffInDiffEstimator.SetStepSize | ( | double | value | ) |
Sets value for stepSize
| value | Step size to be used for each iteration of optimization (> 0) |
| SyntheticDiffInDiffEstimator Synapse.ML.Causal.SyntheticDiffInDiffEstimator.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. |
| SyntheticDiffInDiffEstimator Synapse.ML.Causal.SyntheticDiffInDiffEstimator.SetTol | ( | double | value | ) |
Sets value for tol
| value | the convergence tolerance for iterative algorithms (>= 0) |
| SyntheticDiffInDiffEstimator Synapse.ML.Causal.SyntheticDiffInDiffEstimator.SetTreatmentCol | ( | string | value | ) |
Sets value for treatmentCol
| value | treatment column |
| SyntheticDiffInDiffEstimator Synapse.ML.Causal.SyntheticDiffInDiffEstimator.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. |
| SyntheticDiffInDiffEstimator Synapse.ML.Causal.SyntheticDiffInDiffEstimator.SetZeta | ( | double | value | ) |
Sets value for zeta
| value | The zeta value for regularization term when fitting unit weights. If not specified, a default value will be computed based on formula (2.2) specified in https://www.nber.org/system/files/working_papers/w25532/w25532.pdf. For large scale data, one may want to tune the zeta value, minimizing the loss of the unit weights regression. |
1.8.17