Package | Description |
---|---|
org.wso2.carbon.ml.database | |
org.wso2.carbon.ml.database.internal |
Modifier and Type | Method and Description |
---|---|
void |
DatabaseService.deleteAnalysis(int tenantId,
String userName,
long analysisId)
Delete an analysis.
|
void |
DatabaseService.deleteDataset(long datasetId)
Delete the dataset schema.
|
void |
DatabaseService.deleteDatasetVersion(long datasetVersionId)
Delete the dataset version.
|
void |
DatabaseService.deleteModel(int tenantId,
String userName,
long modelId)
Delete the model from the database.
|
void |
DatabaseService.deleteProject(int tenantId,
String userName,
long projectId)
Delete the project.
|
boolean |
DatabaseService.getABooleanModelConfiguration(long analysisId,
String configKey)
Get a boolean value of model configuration.
|
double |
DatabaseService.getADoubleModelConfiguration(long analysisId,
String configKey)
Get a double value of model configuration.
|
List<org.wso2.carbon.ml.commons.domain.MLAnalysis> |
DatabaseService.getAllAnalyses(int tenantId,
String userName)
Get all the analyses of the given tenant and username.
|
List<org.wso2.carbon.ml.commons.domain.MLAnalysis> |
DatabaseService.getAllAnalysesOfProject(int tenantId,
String userName,
long projectId)
Get all the analyses of a project.
|
List<org.wso2.carbon.ml.commons.domain.MLDataset> |
DatabaseService.getAllDatasets(int tenantId,
String userName)
Get all the dataset schemas of the given tenant and username.
|
List<org.wso2.carbon.ml.commons.domain.MLModelData> |
DatabaseService.getAllModels(int tenantId,
String userName)
Get all models of the given tenant and username.
|
List<org.wso2.carbon.ml.commons.domain.MLModelData> |
DatabaseService.getAllModels(int tenantId,
String userName,
long analysisId)
Get all models of a given analysis.
|
List<org.wso2.carbon.ml.commons.domain.MLProject> |
DatabaseService.getAllProjects(int tenantId,
String userName)
Get all the projects of the given tenant and username.
|
List<org.wso2.carbon.ml.commons.domain.MLDatasetVersion> |
DatabaseService.getAllVersionsetsOfDataset(int tenantId,
String userName,
long datasetId)
Get all the dataset-versions of the given dataset schema.
|
org.wso2.carbon.ml.commons.domain.MLAnalysis |
DatabaseService.getAnalysis(int tenantId,
String userName,
long analysisId)
Get analysis by id.
|
org.wso2.carbon.ml.commons.domain.MLAnalysis |
DatabaseService.getAnalysisOfProject(int tenantId,
String userName,
long projectId,
String analysisName)
Returns an analysis of a given name in a given project.
|
String |
DatabaseService.getAStringModelConfiguration(long analysisId,
String configKey)
Get a string value of model configuration.
|
List<Object> |
DatabaseService.getChartSamplePoints(int tenantId,
String user,
long versionsetId,
String featureListString)
Returns sample data for selected features.
|
List<org.wso2.carbon.ml.commons.domain.MLCustomizedFeature> |
DatabaseService.getCustomizedFeatures(int tenantId,
String userName,
long analysisId,
int startIndex,
int numberOfFeatures)
Returns the customized set of features of an analysis in a given range, from the alphabetically ordered set
of features, of a dataset.
|
org.wso2.carbon.ml.commons.domain.MLDataset |
DatabaseService.getDataset(int tenantId,
String userName,
long datasetId)
Get the dataset schema identified by the given dataset schema id.
|
long |
DatabaseService.getDatasetId(long datasetVersionId)
Get the dataset schema ID of the dataset version.
|
long |
DatabaseService.getDatasetId(String datasetName,
int tenantId,
String userName)
Get the dataset id.
|
long |
DatabaseService.getDatasetSchemaIdFromAnalysisId(long analysisId)
Get the dataset schema ID of a given analysis.
|
String |
DatabaseService.getDatasetUri(long datasetId)
Retrieves the path of the value-set having the given ID, from the
database.
|
long |
DatabaseService.getDatasetVersionIdOfModel(long modelId)
Get the ID of the dataset version used to generate the model.
|
String |
DatabaseService.getDatasetVersionUri(long datasetVersionId)
Retrieves the path of the value-set having the given ID, from the
database.
|
String |
DatabaseService.getDataTypeOfModel(long modelId)
Get the data type of the model.
|
int |
DatabaseService.getFeatureCount(long datasetVersionId)
Returns the number of features of a given data-set version.
|
List<String> |
DatabaseService.getFeatureNames(long datasetId)
Get feature names of a dataset.
|
List<String> |
DatabaseService.getFeatureNames(long datasetId,
String featureType)
Returns the names of the features, belongs to a particular type
(Categorical/Numerical), of a dataset.
|
List<String> |
DatabaseService.getFeatureNames(String analysisId)
Returns all the feature names of an analysis.
|
List<String> |
DatabaseService.getFeatureNames(String analysisId,
String featureType)
Returns the names of the features, belongs to a particular type
(Categorical/Numerical), of the analysis.
|
String |
DatabaseService.getFeatureNamesInOrder(long datasetId,
String columnSeparator)
Get feature names of a dataset ordered by feature index.
|
String |
DatabaseService.getFeatureNamesInOrderUsingDatasetVersion(long datasetVersionId,
String columnSeparator)
Get feature names of a dataset version ordered by feature index.
|
List<org.wso2.carbon.ml.commons.domain.FeatureSummary> |
DatabaseService.getFeatures(int tenantId,
String userName,
long analysisId,
int startIndex,
int numberOfFeatures)
Returns a set of features in a given range, from the alphabetically ordered set
of features, of a dataset.
|
List<org.wso2.carbon.ml.commons.domain.MLHyperParameter> |
DatabaseService.getHyperParametersOfModel(long analysisId,
String algorithmName)
Get the list of Hyper-parameters of the model.
|
Map<String,String> |
DatabaseService.getHyperParametersOfModelAsMap(long modelId)
Get the Hyper-parameters of the model as a Map.
|
org.wso2.carbon.ml.commons.domain.MLModelData |
DatabaseService.getModel(int tenantId,
String userName,
long modelId)
Get the model name identified by the given model id.
|
org.wso2.carbon.ml.commons.domain.MLModelData |
DatabaseService.getModel(int tenantId,
String userName,
String modelName)
Get the Model having the given model name.
|
org.wso2.carbon.ml.commons.domain.MLStorage |
DatabaseService.getModelStorage(long modelId)
Get the Model storage of the model.
|
org.wso2.carbon.ml.commons.domain.ModelSummary |
DatabaseService.getModelSummary(long modelId)
Retrieve summary of the model.
|
org.wso2.carbon.ml.commons.domain.MLProject |
DatabaseService.getProject(int tenantId,
String userName,
long projectId)
Returns project object for a given project ID from the database.
|
org.wso2.carbon.ml.commons.domain.MLProject |
DatabaseService.getProject(int tenantId,
String userName,
String projectName)
Get the project having the given project name.
|
List<org.wso2.carbon.ml.commons.domain.MLModelData> |
DatabaseService.getProjectModels(int tenantId,
String userName,
long projectId)
Get all models of a given project.
|
List<Object> |
DatabaseService.getScatterPlotPoints(org.wso2.carbon.ml.commons.domain.ScatterPlotPoints scatterPlotPoints)
Returns data points of the selected sample as coordinates of three
features, needed for the scatter plot.
|
String |
DatabaseService.getSummaryStats(int tenantId,
String user,
long analysisId,
String featureName)
Retrieve and returns the Summary statistics for a given feature of a
given data-set version, from the database.
|
Map<String,String> |
DatabaseService.getSummaryStats(long datasetVersionId)
Get the summary stats of the dataset version.
|
String |
DatabaseService.getSummaryStats(long datasetId,
String featureName)
Retrieve and returns summary statistics for a given feature of a given dataset.
|
org.wso2.carbon.ml.commons.domain.MLDatasetVersion |
DatabaseService.getVersionset(int tenantId,
String userName,
long datasetVersionId)
Get the dataset-version identified by the given dataset-version id.
|
long |
DatabaseService.getVersionsetId(String datasetVersionName,
int tenantId,
String userName)
Get the dataset-version id.
|
org.wso2.carbon.ml.commons.domain.SamplePoints |
DatabaseService.getVersionsetSample(int tenantId,
String user,
long versionsetId)
Retrieve the SamplePoints object for a given version-set.
|
org.wso2.carbon.ml.commons.domain.MLDatasetVersion |
DatabaseService.getVersionSetWithVersion(long datasetId,
String version,
int tenantId,
String userName)
Get the unique identifier of the dataset version given the dataset schema and the version.
|
org.wso2.carbon.ml.commons.domain.Workflow |
DatabaseService.getWorkflow(long analysisId)
Get the workflow of the analysis.
|
void |
DatabaseService.insertAnalysis(org.wso2.carbon.ml.commons.domain.MLAnalysis analysis)
Insert a new analysis into the database.
|
void |
DatabaseService.insertDatasetSchema(org.wso2.carbon.ml.commons.domain.MLDataset dataset)
Insert a new dataset-schema into the database.
|
void |
DatabaseService.insertDatasetVersion(org.wso2.carbon.ml.commons.domain.MLDatasetVersion datasetVersion)
Insert a new dataset-version into the database.
|
void |
DatabaseService.insertDefaultsIntoFeatureCustomized(long analysisId,
org.wso2.carbon.ml.commons.domain.MLCustomizedFeature customizedValues)
Insert the default feature attributes into the relevant customized feature attributes of a given analysis.
|
void |
DatabaseService.insertFeatureCustomized(long analysisId,
List<org.wso2.carbon.ml.commons.domain.MLCustomizedFeature> customizedFeatures,
int tenantId,
String userName)
Insert a list of Customized-Features into the database.
|
void |
DatabaseService.insertHyperParameters(long analysisId,
List<org.wso2.carbon.ml.commons.domain.MLHyperParameter> hyperParameters,
String algorithmName)
Insert a list of HyperParameters into the database.
|
void |
DatabaseService.insertModel(org.wso2.carbon.ml.commons.domain.MLModelData model)
Insert a new model into the database.
|
void |
DatabaseService.insertModelConfigurations(long analysisId,
List<org.wso2.carbon.ml.commons.domain.MLModelConfiguration> modelConfigs)
Insert a list of ModelConfiguration into the database.
|
void |
DatabaseService.insertProject(org.wso2.carbon.ml.commons.domain.MLProject project)
Insert a new project to the database.
|
boolean |
DatabaseService.isValidModelId(int tenantId,
String userName,
long modelId)
Check whether the given modelId is valid.
|
boolean |
DatabaseService.isValidModelStatus(long modelId,
int tenantId,
String userName)
Check whether the model is in a valid state.
|
void |
DatabaseService.shutdown()
Executes the SHUTDOWN statement.
|
void |
DatabaseService.updateModelError(long modelId,
String error)
Update model error.
|
void |
DatabaseService.updateModelStatus(long modelId,
String status)
Update model status.
|
void |
DatabaseService.updateModelStorage(long modelId,
String storageType,
String location)
Update the storage details of a model.
|
void |
DatabaseService.updateModelSummary(long modelId,
org.wso2.carbon.ml.commons.domain.ModelSummary modelSummary)
Update the model summary of a given model.
|
void |
DatabaseService.updateSamplePoints(long datasetVersionId,
org.wso2.carbon.ml.commons.domain.SamplePoints samplePoints)
Update the database with the sample points of data-set-version.
|
void |
DatabaseService.updateSummaryStatistics(long datasetSchemaId,
long datasetVersionId,
org.wso2.carbon.ml.commons.domain.SummaryStats summaryStats)
Update the database with the summary stats of data-set-version.
|
Modifier and Type | Method and Description |
---|---|
static void |
MLDatabaseUtils.closeDatabaseResources(Connection connection)
Close a given set of database resources.
|
static void |
MLDatabaseUtils.closeDatabaseResources(Connection connection,
PreparedStatement preparedStatement)
Close a given set of database resources.
|
static void |
MLDatabaseUtils.closeDatabaseResources(Connection connection,
PreparedStatement preparedStatement,
ResultSet resultSet)
Close a given set of database resources.
|
static void |
MLDatabaseUtils.closeDatabaseResources(PreparedStatement preparedStatement)
Close a given set of database resources.
|
static void |
MLDatabaseUtils.closeDatabaseResources(PreparedStatement preparedStatement,
ResultSet resultSet)
Close a given set of database resources.
|
void |
MLDatabaseService.deleteAnalysis(int tenantId,
String userName,
long analysisId) |
void |
MLDatabaseService.deleteDataset(long datasetId) |
void |
MLDatabaseService.deleteDatasetVersion(long datasetVersionId) |
void |
MLDatabaseService.deleteModel(int tenantId,
String userName,
long modelId) |
void |
MLDatabaseService.deleteProject(int tenantId,
String userName,
long projectId) |
boolean |
MLDatabaseService.getABooleanModelConfiguration(long analysisId,
String configKey) |
double |
MLDatabaseService.getADoubleModelConfiguration(long analysisId,
String configKey) |
List<org.wso2.carbon.ml.commons.domain.MLAnalysis> |
MLDatabaseService.getAllAnalyses(int tenantId,
String userName) |
List<org.wso2.carbon.ml.commons.domain.MLAnalysis> |
MLDatabaseService.getAllAnalysesOfProject(int tenantId,
String userName,
long projectId) |
List<org.wso2.carbon.ml.commons.domain.MLDataset> |
MLDatabaseService.getAllDatasets(int tenantId,
String userName)
Retrieve all datasets
|
List<org.wso2.carbon.ml.commons.domain.MLModelData> |
MLDatabaseService.getAllModels(int tenantId,
String userName) |
List<org.wso2.carbon.ml.commons.domain.MLModelData> |
MLDatabaseService.getAllModels(int tenantId,
String userName,
long analysisId) |
List<org.wso2.carbon.ml.commons.domain.MLProject> |
MLDatabaseService.getAllProjects(int tenantId,
String userName) |
List<org.wso2.carbon.ml.commons.domain.MLDatasetVersion> |
MLDatabaseService.getAllVersionsetsOfDataset(int tenantId,
String userName,
long datasetId)
Retrieve all versionset of a dataset
|
org.wso2.carbon.ml.commons.domain.MLAnalysis |
MLDatabaseService.getAnalysis(int tenantId,
String userName,
long analysisId) |
org.wso2.carbon.ml.commons.domain.MLAnalysis |
MLDatabaseService.getAnalysisOfProject(int tenantId,
String userName,
long projectId,
String analysisName) |
String |
MLDatabaseService.getAStringModelConfiguration(long analysisId,
String configKey) |
List<Object> |
MLDatabaseService.getChartSamplePoints(int tenantId,
String user,
long versionsetId,
String featureListString)
Returns sample data for selected features
|
List<org.wso2.carbon.ml.commons.domain.MLCustomizedFeature> |
MLDatabaseService.getCustomizedFeatures(int tenantId,
String userName,
long analysisId,
int startIndex,
int numberOfFeatures)
Returns the customized set of features of an analysis in a given range, from the alphabetically ordered set
of features, of a dataset.
|
org.wso2.carbon.ml.commons.domain.MLDataset |
MLDatabaseService.getDataset(int tenantId,
String userName,
long datasetId)
Retrieve a dataset from ID
|
long |
MLDatabaseService.getDatasetId(long datasetVersionId)
Retrieve the datasetID of a given version set
|
long |
MLDatabaseService.getDatasetId(String datasetName,
int tenantId,
String userName) |
long |
MLDatabaseService.getDatasetSchemaIdFromAnalysisId(long analysisId) |
String |
MLDatabaseService.getDatasetUri(long datasetId)
Retrieves the path of the value-set having the given ID, from the database.
|
long |
MLDatabaseService.getDatasetVersionIdOfModel(long modelId) |
String |
MLDatabaseService.getDatasetVersionUri(long datasetVersionId)
Retrieves the path of the value-set having the given ID, from the database.
|
String |
MLDatabaseService.getDataTypeOfModel(long modelId) |
int |
MLDatabaseService.getFeatureCount(long datasetSchemaId)
Returns the number of features of a given data-set version
|
List<String> |
MLDatabaseService.getFeatureNames(long datasetId)
Get feature names of a given dataset using the dataset ID
|
List<String> |
MLDatabaseService.getFeatureNames(long datasetId,
String featureType)
Returns the names of the features, belongs to a particular type
(Categorical/Numerical), of a dataset.
|
List<String> |
MLDatabaseService.getFeatureNames(String analysisId)
Returns all the feature names of an analysis.
|
List<String> |
MLDatabaseService.getFeatureNames(String analysisId,
String featureType)
Returns the names of the features, belongs to a particular type
(Categorical/Numerical), of the analysis.
|
String |
MLDatabaseService.getFeatureNamesInOrder(long datasetId,
String columnSeparator)
Get feature names in order and separated by the given column separator.
|
String |
MLDatabaseService.getFeatureNamesInOrderUsingDatasetVersion(long datasetVersionId,
String columnSeparator)
Get feature names in order and separated by the given column separator.
|
List<org.wso2.carbon.ml.commons.domain.FeatureSummary> |
MLDatabaseService.getFeatures(int tenantId,
String userName,
long analysisId,
int startIndex,
int numberOfFeatures)
Returns a set of features in a given range, from the alphabetically ordered set of features, of a data-set.
|
List<org.wso2.carbon.ml.commons.domain.MLHyperParameter> |
MLDatabaseService.getHyperParametersOfModel(long analysisId,
String algorithmName) |
Map<String,String> |
MLDatabaseService.getHyperParametersOfModelAsMap(long analysisId) |
org.wso2.carbon.ml.commons.domain.MLModelData |
MLDatabaseService.getModel(int tenantId,
String userName,
long modelId) |
org.wso2.carbon.ml.commons.domain.MLModelData |
MLDatabaseService.getModel(int tenantId,
String userName,
String modelName) |
org.wso2.carbon.ml.commons.domain.MLStorage |
MLDatabaseService.getModelStorage(long modelId) |
org.wso2.carbon.ml.commons.domain.ModelSummary |
MLDatabaseService.getModelSummary(long modelId)
Retrieve the model summary
|
org.wso2.carbon.ml.commons.domain.MLProject |
MLDatabaseService.getProject(int tenantId,
String userName,
long projectId)
Returns project object for a given project ID from the database.
|
org.wso2.carbon.ml.commons.domain.MLProject |
MLDatabaseService.getProject(int tenantId,
String userName,
String projectName) |
List<org.wso2.carbon.ml.commons.domain.MLModelData> |
MLDatabaseService.getProjectModels(int tenantId,
String userName,
long projectId)
Get all models of a given project
|
List<Object> |
MLDatabaseService.getScatterPlotPoints(org.wso2.carbon.ml.commons.domain.ScatterPlotPoints scatterPlotPoints)
Returns data points of the selected sample as coordinates of three features, needed for the scatter plot.
|
String |
MLDatabaseService.getSummaryStats(int tenantId,
String user,
long analysisId,
String featureName)
Retrieve and returns the Summary statistics for a given feature of a given data-set version, from the database.
|
Map<String,String> |
MLDatabaseService.getSummaryStats(long datasetVersionId)
Retrieve and returns the Summary statistics for a given feature of a given data-set version, from the database.
|
String |
MLDatabaseService.getSummaryStats(long datasetId,
String featureName)
Retrieve and returns summary statistics for a given feature of a given dataset
|
org.wso2.carbon.ml.commons.domain.MLDatasetVersion |
MLDatabaseService.getVersionset(int tenantId,
String userName,
long datasetVersionId)
Retrieve a Versionset from its ID
|
long |
MLDatabaseService.getVersionsetId(String datasetVersionName,
int tenantId,
String userName) |
org.wso2.carbon.ml.commons.domain.SamplePoints |
MLDatabaseService.getVersionsetSample(int tenantId,
String user,
long versionsetId)
Retrieve the SamplePoints object for a given value-set.
|
org.wso2.carbon.ml.commons.domain.MLDatasetVersion |
MLDatabaseService.getVersionSetWithVersion(long datasetId,
String version,
int tenantId,
String userName) |
org.wso2.carbon.ml.commons.domain.Workflow |
MLDatabaseService.getWorkflow(long analysisId) |
void |
MLDatabaseService.insertAnalysis(org.wso2.carbon.ml.commons.domain.MLAnalysis analysis) |
void |
MLDatabaseService.insertDatasetSchema(org.wso2.carbon.ml.commons.domain.MLDataset dataset) |
void |
MLDatabaseService.insertDatasetVersion(org.wso2.carbon.ml.commons.domain.MLDatasetVersion datasetVersion) |
void |
MLDatabaseService.insertDefaultsIntoFeatureCustomized(long analysisId,
org.wso2.carbon.ml.commons.domain.MLCustomizedFeature customizedValues) |
void |
MLDatabaseService.insertFeatureCustomized(long analysisId,
List<org.wso2.carbon.ml.commons.domain.MLCustomizedFeature> customizedFeatures,
int tenantId,
String userName) |
void |
MLDatabaseService.insertHyperParameters(long analysisId,
List<org.wso2.carbon.ml.commons.domain.MLHyperParameter> hyperParameters,
String algorithmName) |
void |
MLDatabaseService.insertModel(org.wso2.carbon.ml.commons.domain.MLModelData model) |
void |
MLDatabaseService.insertModelConfigurations(long analysisId,
List<org.wso2.carbon.ml.commons.domain.MLModelConfiguration> modelConfigs) |
void |
MLDatabaseService.insertProject(org.wso2.carbon.ml.commons.domain.MLProject project) |
boolean |
MLDatabaseService.isValidModelId(int tenantId,
String userName,
long modelId) |
boolean |
MLDatabaseService.isValidModelStatus(long modelId,
int tenantId,
String userName) |
static void |
MLDatabaseUtils.rollBack(Connection dbConnection)
Roll-backs a connection.
|
void |
MLDatabaseService.shutdown() |
static String |
MLDatabaseUtils.toString(Clob clob)
Get String from Clob
|
void |
MLDatabaseService.updateModelError(long modelId,
String error)
Update the model storage
|
void |
MLDatabaseService.updateModelStatus(long modelId,
String status)
Update the model status
|
void |
MLDatabaseService.updateModelStorage(long modelId,
String storageType,
String location)
Update the model storage
|
void |
MLDatabaseService.updateModelSummary(long modelId,
org.wso2.carbon.ml.commons.domain.ModelSummary modelSummary)
Update the model summary
|
void |
MLDatabaseService.updateSamplePoints(long datasetVersionId,
org.wso2.carbon.ml.commons.domain.SamplePoints samplePoints) |
void |
MLDatabaseService.updateSummaryStatistics(long datasetSchemaId,
long datasetVersionId,
org.wso2.carbon.ml.commons.domain.SummaryStats summaryStats) |
Copyright © 2016 WSO2, Inc.. All Rights Reserved.