Package | Description |
---|---|
org.apache.sysml.api.mlcontext |
Modifier and Type | Field and Description |
---|---|
protected Script |
MLResults.script |
protected Script |
ScriptExecutor.script |
Modifier and Type | Method and Description |
---|---|
static Script |
ScriptFactory.dml(String scriptString)
Create a DML Script object based on a string.
|
static Script |
ScriptFactory.dmlFromFile(String scriptFilePath)
Create a DML Script object based on a string path to a file.
|
static Script |
ScriptFactory.dmlFromInputStream(InputStream inputStream)
Create a DML Script object based on an input stream.
|
static Script |
ScriptFactory.dmlFromLocalFile(File localScriptFile)
Creates a DML Script object based on a file in the local file system.
|
static Script |
ScriptFactory.dmlFromResource(String resourcePath)
Create a DML Script object based on a resource path.
|
static Script |
ScriptFactory.dmlFromString(String scriptString)
Create a DML Script object based on a string.
|
static Script |
ScriptFactory.dmlFromUrl(String scriptUrlPath)
Create a DML Script object based on a URL path.
|
static Script |
ScriptFactory.dmlFromUrl(URL scriptUrl)
Create a DML Script object based on a URL.
|
Script |
MLResults.getScript()
Obtain the Script object associated with these results.
|
Script |
ScriptExecutor.getScript()
Obtain the Script object associated with this ScriptExecutor
|
Script |
Script.in(scala.collection.Map<String,?> inputs)
Pass a Scala Map of inputs to the script.
|
Script |
Script.in(Map<String,Object> inputs)
Pass a map of inputs to the script.
|
Script |
Script.in(scala.collection.Seq<Object> inputs)
Pass a Scala Seq of inputs to the script.
|
Script |
Script.in(String name,
Object value)
Register an input (parameter ($) or variable).
|
Script |
Script.in(String name,
Object value,
Metadata metadata)
Register an input (parameter ($) or variable) with optional matrix
metadata.
|
Script |
Script.out(List<String> outputNames)
Register output variables.
|
Script |
Script.out(scala.collection.Seq<String> outputNames)
Register output variables.
|
Script |
Script.out(String... outputNames)
Register output variables.
|
Script |
Script.out(String outputName)
Register an output variable.
|
static Script |
ScriptFactory.pydml(String scriptString)
Create a PYDML script object based on a string.
|
static Script |
ScriptFactory.pydmlFromFile(String scriptFilePath)
Create a PYDML Script object based on a string path to a file.
|
static Script |
ScriptFactory.pydmlFromInputStream(InputStream inputStream)
Create a PYDML Script object based on an input stream.
|
static Script |
ScriptFactory.pydmlFromLocalFile(File localScriptFile)
Creates a PYDML Script object based on a file in the local file system.
|
static Script |
ScriptFactory.pydmlFromResource(String resourcePath)
Create a PYDML Script object based on a resource path.
|
static Script |
ScriptFactory.pydmlFromString(String scriptString)
Create a PYDML Script object based on a string.
|
static Script |
ScriptFactory.pydmlFromUrl(String scriptUrlPath)
Creat a PYDML Script object based on a URL path.
|
static Script |
ScriptFactory.pydmlFromUrl(URL scriptUrl)
Create a PYDML Script object based on a URL.
|
Script |
Script.setName(String name)
Set the script name.
|
Script |
Script.setScriptString(String scriptString)
Set the script string.
|
Modifier and Type | Method and Description |
---|---|
void |
ScriptExecutor.compile(Script script) |
void |
ScriptExecutor.compile(Script script,
boolean performHOPRewrites)
Compile a DML or PYDML script.
|
MLResults |
ScriptExecutor.execute(Script script)
Execute a DML or PYDML script.
|
MLResults |
MLContext.execute(Script script)
Execute a DML or PYDML Script.
|
MLResults |
MLContext.execute(Script script,
ScriptExecutor scriptExecutor)
Execute a DML or PYDML Script object using a ScriptExecutor.
|
static String |
MLContextUtil.getHopDAG(MLContext mlCtx,
Script script,
ArrayList<Integer> lines,
boolean performHOPRewrites,
boolean withSubgraph)
Get HOP DAG in dot format for a DML or PYDML Script.
|
static String |
MLContextUtil.getHopDAG(MLContext mlCtx,
Script script,
ArrayList<Integer> lines,
org.apache.spark.SparkConf newConf,
boolean performHOPRewrites,
boolean withSubgraph)
Get HOP DAG in dot format for a DML or PYDML Script.
|
void |
MLContext.setExecutionScript(Script executionScript)
Sets the script that is being executed
|
protected void |
ScriptExecutor.setup(Script script)
Sets the script in the ScriptExecutor, checks that the script has a type
and string, sets the ScriptExecutor in the script, sets the script string
in the Spark Monitor, globally sets the script type, sets global flags,
and resets statistics if needed.
|
Constructor and Description |
---|
MLResults(Script script) |
Copyright © 2017 The Apache Software Foundation. All rights reserved.