Package | Description |
---|---|
org.datavec.python | |
org.datavec.python.keras |
Modifier and Type | Method and Description |
---|---|
void |
PythonVariables.add(String name,
PythonType type,
Object value) |
static void |
PythonContextManager.addContext(String contextName) |
T |
PythonType.convert(Object object)
Since multiple java types can map to the same python type,
this method "normalizes" all supported incoming objects to T
|
static void |
Python.deleteContext(String context) |
static void |
PythonContextManager.deleteContext(String contextName) |
static void |
Python.exec(String code) |
static void |
PythonExecutioner.exec(String code) |
static void |
Python.exec(String code,
PythonVariables inputs,
PythonVariables outputs) |
static void |
PythonExecutioner.exec(String code,
PythonVariables inputVariables,
PythonVariables outputVariables) |
static PythonVariables |
PythonExecutioner.execAndReturnAllVariables(String code) |
static PythonVariables |
PythonExecutioner.getAllVariables() |
static String |
PythonProcess.getPackageVersion(String packageName) |
static <T> T |
PythonExecutioner.getVariable(String varName,
PythonType<T> varType) |
static void |
PythonExecutioner.getVariables(PythonVariables pyVars) |
static PythonObject |
Python.importModule(String moduleName)
Imports a python module, similar to python import statement.
|
static boolean |
PythonProcess.isPackageInstalled(String packageName) |
static void |
PythonProcess.pipInstall(String packageName) |
static void |
PythonProcess.pipInstall(String packageName,
String version) |
static void |
PythonProcess.pipInstallFromGit(String gitRepoUrl) |
static void |
PythonProcess.pipInstallFromRequirementsTxt(String path) |
static void |
PythonProcess.pipInstallFromSetupScript(String path,
boolean inplace) |
static void |
PythonProcess.pipUninstall(String packageName) |
static void |
Python.setContext(String context) |
static void |
PythonContextManager.setContext(String contextName) |
void |
PythonVariables.setValue(String name,
Object value) |
static void |
PythonExecutioner.setVariable(String varName,
PythonObject pythonObject)
Sets a variable in the global scope of the current context (See @PythonContextManager).
|
static <T> void |
PythonExecutioner.setVariable(String varName,
PythonType varType,
Object value) |
static void |
PythonExecutioner.setVariables(PythonVariables pyVars) |
org.bytedeco.javacpp.BytePointer |
PythonObject.toBytePointer() |
abstract T |
PythonType.toJava(PythonObject pythonObject) |
org.json.JSONArray |
PythonObject.toJSONArray() |
org.json.JSONObject |
PythonObject.toJSONObject() |
List |
PythonObject.toList() |
Map |
PythonObject.toMap() |
NumpyArray |
PythonObject.toNumpy() |
static PythonType |
PythonType.valueOf(String typeName) |
Modifier and Type | Method and Description |
---|---|
INDArray[] |
Model.predict(INDArray... inputs) |
Constructor and Description |
---|
Model(String path) |
Copyright © 2020. All rights reserved.