Package | Description |
---|---|
org.wso2.carbon.ml.core.impl | |
org.wso2.carbon.ml.core.spark.recommendation |
Modifier and Type | Method and Description |
---|---|
void |
MLModelHandler.addStorage(long modelId,
org.wso2.carbon.ml.commons.domain.MLStorage storage) |
org.wso2.carbon.ml.commons.domain.Workflow |
MLModelHandler.buildModel(int tenantId,
String userName,
long modelId)
Build a ML model asynchronously and persist the built model in a given storage.
|
org.wso2.carbon.ml.commons.domain.MLModelData |
MLModelHandler.createModel(org.wso2.carbon.ml.commons.domain.MLModelData model)
Create a new model.
|
void |
MLModelHandler.deleteModel(int tenantId,
String userName,
long modelId) |
List<org.wso2.carbon.ml.commons.domain.MLModelData> |
MLModelHandler.getAllModels(int tenantId,
String userName) |
List<org.wso2.carbon.ml.commons.domain.ClusterPoint> |
MLModelHandler.getClusterPoints(int tenantId,
String userName,
long datasetId,
String featureListString,
int noOfClusters) |
org.wso2.carbon.ml.commons.domain.MLModelData |
MLModelHandler.getModel(int tenantId,
String userName,
long modelId) |
org.wso2.carbon.ml.commons.domain.MLModelData |
MLModelHandler.getModel(int tenantId,
String userName,
String modelName) |
org.wso2.carbon.ml.commons.domain.ModelSummary |
MLModelHandler.getModelSummary(long modelId)
Get the summary of a model
|
List<?> |
MLModelHandler.getProductRecommendations(int tenantId,
String userName,
long modelId,
int userId,
int noOfProducts) |
List<?> |
MLModelHandler.getUserRecommendations(int tenantId,
String userName,
long modelId,
int productId,
int noOfUsers) |
boolean |
MLModelHandler.isValidModelId(int tenantId,
String userName,
long modelId) |
boolean |
MLModelHandler.isValidModelStatus(long modelId,
int tenantId,
String userName) |
List<?> |
Predictor.predict() |
List<?> |
MLModelHandler.predict(int tenantId,
String userName,
long modelId,
List<String[]> data) |
List<?> |
MLModelHandler.predict(int tenantId,
String userName,
long modelId,
List<String[]> data,
double percentile) |
List<?> |
MLModelHandler.predict(int tenantId,
String userName,
long modelId,
String dataFormat,
InputStream dataStream) |
List<?> |
MLModelHandler.predict(int tenantId,
String userName,
long modelId,
String dataFormat,
InputStream dataStream,
double percentile) |
String |
MLModelHandler.publishModel(int tenantId,
String userName,
long modelId,
MLModelHandler.Format mode)
Publish a ML model to registry.
|
org.wso2.carbon.ml.commons.domain.MLModel |
MLModelHandler.retrieveModel(long modelId) |
String |
MLModelHandler.streamingPredict(int tenantId,
String userName,
long modelId,
String dataFormat,
String columnHeader,
InputStream dataStream) |
String |
MLModelHandler.streamingPredict(int tenantId,
String userName,
long modelId,
String dataFormat,
String columnHeader,
InputStream dataStream,
double percentile) |
Modifier and Type | Method and Description |
---|---|
static List<Integer> |
CollaborativeFiltering.recommendProducts(org.apache.spark.mllib.recommendation.MatrixFactorizationModel model,
int userId,
int numberOfProducts)
This method recommends products for a given user.
|
static List<Integer> |
CollaborativeFiltering.recommendUsers(org.apache.spark.mllib.recommendation.MatrixFactorizationModel model,
int productId,
int numberOfUsers)
This method recommends users for a given product.
|
Copyright © 2015 WSO2, Inc.. All Rights Reserved.