Package | Description |
---|---|
org.apache.sysml.api.mlcontext |
Modifier and Type | Field and Description |
---|---|
protected Script |
ScriptExecutor.script |
protected Script |
MLResults.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 |
ScriptExecutor.getScript()
Obtain the Script object associated with this ScriptExecutor
|
Script |
MLResults.getScript()
Obtain the Script object associated with these results.
|
Script |
MLContext.getScriptByName(String name)
Obtain a script that has executed by name.
|
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(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 |
---|---|
Map<String,Script> |
MLContext.getScripts()
Obtain a map of the scripts that have executed.
|
Modifier and Type | Method and Description |
---|---|
static String |
MLContextUtil.createHistoryForScript(Script script,
long when)
Generate a String history entry for a 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.
|
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, and globally sets the script type.
|
Constructor and Description |
---|
MLResults(Script script) |
Copyright © 2017 The Apache Software Foundation. All rights reserved.