public class Predictors extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Predictors.Constants |
Constructor and Description |
---|
Predictors() |
Modifier and Type | Method and Description |
---|---|
static Iterator<IPredictorInfo> |
getAllPredictors()
See all predictors loaded in the classpath.
|
static Iterator<IPredictorInfo> |
getAllPredictors(ClassLoader classLoader)
Retrieve all predictors from the classloader.
|
static <T extends IPredictorInfo> |
getPredictor()
Retrieve a single DataRobot model, if it is the only one in classpath.
|
static <T extends IPredictorInfo> |
getPredictor(ClassLoader classLoader)
Retrieve a single DataRobot model, if it is the only one in the specified classloader.
|
static <T extends IPredictorInfo> |
getPredictor(String modelId)
Get DataRobot model by modelId.
|
static <T extends IPredictorInfo> |
getPredictor(String modelId,
ClassLoader classLoader)
Get DataRobot model from the classloader by model id.
|
public static <T extends IPredictorInfo> T getPredictor()
T
- Type of the modelpublic static <T extends IPredictorInfo> T getPredictor(ClassLoader classLoader)
T
- type of the model.classLoader
- - classloader where to search for the model.public static <T extends IPredictorInfo> T getPredictor(String modelId)
T
- type of the model.modelId
- model id.public static <T extends IPredictorInfo> T getPredictor(String modelId, ClassLoader classLoader)
T
- type of the model.modelId
- model id.classLoader
- classloader.public static Iterator<IPredictorInfo> getAllPredictors()
public static Iterator<IPredictorInfo> getAllPredictors(ClassLoader classLoader)
classLoader
- classloader with model.Copyright © 2021. All rights reserved.