Package org.apache.sysds.api
Class DMLOptions
- java.lang.Object
-
- org.apache.sysds.api.DMLOptions
-
public class DMLOptions extends Object
Set of DMLOptions that can be set through the command line andMLContextThe values have been initialized with the default values Despite there being a DML and PyDML, this class is named DMLOptions to keep it consistent withDMLOptionsandDMLOptions
-
-
Field Summary
Fields Modifier and Type Field Description Map<String,String>argValsbooleancheckPrivacybooleancleanStringconfigFilebooleandebugstatic DMLOptionsdefaultOptionsTypes.ExecModeexecModeExplain.ExplainTypeexplainTypebooleanfederatedCompilationbooleanfedMonitoringintfedMonitoringPortbooleanfedStatsintfedStatsCountbooleanfedWorkerintfedWorkerPortStringfilePathbooleanforceGPUbooleangpubooleanhelpLineageCacheConfig.LineageCachePolicylinCachePolicybooleanlineagebooleanlineage_debuggerbooleanlineage_dedupbooleanlineage_estimateLineageCacheConfig.ReuseCacheTypelinReuseTypebooleanmemStatsbooleannoFedRuntimeConversionorg.apache.commons.cli.OptionsoptionsintpythonPortStringscriptintseedbooleanstatsintstatsCount
-
Constructor Summary
Constructors Constructor Description DMLOptions(org.apache.commons.cli.Options opts)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DMLOptionsparseCLArguments(String[] args)Parses command line arguments to create aDMLOptionsinstance with the correct optionsStringtoString()
-
-
-
Field Detail
-
options
public final org.apache.commons.cli.Options options
-
configFile
public String configFile
-
clean
public boolean clean
-
stats
public boolean stats
-
statsCount
public int statsCount
-
fedStats
public boolean fedStats
-
fedStatsCount
public int fedStatsCount
-
memStats
public boolean memStats
-
explainType
public Explain.ExplainType explainType
-
execMode
public Types.ExecMode execMode
-
gpu
public boolean gpu
-
forceGPU
public boolean forceGPU
-
debug
public boolean debug
-
filePath
public String filePath
-
script
public String script
-
help
public boolean help
-
lineage
public boolean lineage
-
lineage_dedup
public boolean lineage_dedup
-
linReuseType
public LineageCacheConfig.ReuseCacheType linReuseType
-
linCachePolicy
public LineageCacheConfig.LineageCachePolicy linCachePolicy
-
lineage_estimate
public boolean lineage_estimate
-
lineage_debugger
public boolean lineage_debugger
-
fedWorker
public boolean fedWorker
-
fedWorkerPort
public int fedWorkerPort
-
fedMonitoring
public boolean fedMonitoring
-
fedMonitoringPort
public int fedMonitoringPort
-
pythonPort
public int pythonPort
-
checkPrivacy
public boolean checkPrivacy
-
federatedCompilation
public boolean federatedCompilation
-
noFedRuntimeConversion
public boolean noFedRuntimeConversion
-
seed
public int seed
-
defaultOptions
public static final DMLOptions defaultOptions
-
-
Method Detail
-
parseCLArguments
public static DMLOptions parseCLArguments(String[] args) throws org.apache.commons.cli.ParseException
Parses command line arguments to create aDMLOptionsinstance with the correct options- Parameters:
args- arguments from the command line- Returns:
- an instance of
DMLOptionsthat contain the correctOptions. - Throws:
org.apache.commons.cli.ParseException- if there is an incorrect option specified in the CLI
-
-