| 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) |
void |
DatabaseService.deleteAnalysis(int tenantId,
String userName,
String analysisName)
Delete the 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,
String projectName)
Delete the project
|
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.MLModelNew> |
DatabaseService.getAllModels(int tenantId,
String userName)
Get all models of the given tenant and username
|
List<org.wso2.carbon.ml.commons.domain.MLModelNew> |
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) |
org.wso2.carbon.ml.commons.domain.MLAnalysis |
DatabaseService.getAnalysis(int tenantId,
String userName,
String analysisName)
Get the Analysis having the given analysis name
|
long |
DatabaseService.getAnalysisId(int tenantId,
String userName,
String analysisName)
Get the analysis Id of a given tenant id, username, analysis combination
|
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
|
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) |
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.getDatasetVersionId(long datasetId,
String datasetVersion) |
long |
DatabaseService.getDatasetVersionId(long datasetId,
String version,
int tenantId,
String userName)
Get the unique identifier of the dataset version given the dataset schema and the version
|
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
|
List<org.wso2.carbon.ml.commons.domain.FeatureSummary> |
DatabaseService.getDefaultFeatures(long datasetVersionId,
int startIndex,
int numberOfFeatures)
This method extracts and retures default features available in a given dataset version
|
int |
DatabaseService.getFeatureCount(long datasetVersionId)
Returns the number of features of a given data-set version
|
List<String> |
DatabaseService.getFeatureNames(long modelId)
Returns the names of the features, belongs to a particular data-type
(Categorical/Numerical), of the work-flow.
|
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) |
String |
DatabaseService.getFeatureNamesInOrderUsingDatasetVersion(long datasetVersionId,
String columnSeparator) |
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 data-set.
|
String |
DatabaseService.getFeatureType(long modelId,
String featureName)
Retrieves the type of a feature.
|
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.MLModelNew |
DatabaseService.getModel(int tenantId,
String userName,
long modelId)
Get the model name identified by the given model id
|
org.wso2.carbon.ml.commons.domain.MLModelNew |
DatabaseService.getModel(int tenantId,
String userName,
String modelName)
Get the Model having the given model name
|
String |
DatabaseService.getModelConfigurationValue(long modelId,
String name) |
long |
DatabaseService.getModelId(int tenantId,
String userName,
String modelName)
Get the Id of the model
|
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,
String projectName)
Get the project having the given project name
|
long |
DatabaseService.getProjectId(int tenantId,
String userName,
String projectName)
Get the unique Id of the 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
|
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)
Get the dataset-version id
|
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.insertDataSource(long datasetVersionId,
int tenantId,
String username,
String key,
String value)
Insert data source to 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.insertFeatureCustomized(long analysisId,
org.wso2.carbon.ml.commons.domain.MLCustomizedFeature customizedFeature)
Insert cutomized feature to 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.MLModelNew 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.isDatasetNameExist(int tenantId,
String userName,
String datasetName)
Check whether the given database name exists in the given tenantId
|
boolean |
DatabaseService.isDatasetVersionExist(int tenantId,
String datasetName,
String datasetVersion)
Check whether the given database version exists for the given data-set name and tenant ID
|
boolean |
DatabaseService.isValidModelId(int tenantId,
String userName,
long modelId)
Check whether the given modelId is valid
|
void |
DatabaseService.updateDataType(String featureName,
long modelId,
String featureType)
Update the data type of a given feature.
|
void |
DatabaseService.updateFeatureInclusion(String featureName,
long modelId,
boolean isInput)
Change whether a feature should be included as an input or not
|
void |
DatabaseService.updateImputeOption(String featureName,
long modelId,
String imputeOption)
Update the impute method option of a given feature.
|
void |
DatabaseService.updateModelError(long modelId,
String error) |
void |
DatabaseService.updateModelStatus(long modelId,
String 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.updateSummaryStatistics(long datasetSchemaId,
long datasetVersionId,
org.wso2.carbon.ml.commons.domain.SummaryStats summaryStats)
Update the database with the summary stats of data-set-version
|
void |
DatabaseService.updateVersionsetSample(long datasetVesionId,
org.wso2.carbon.ml.commons.domain.SamplePoints valueSetSample)
Update the value-set table with a data-set sample.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MLDatabaseService.addTenantToProject(int tenantID,
String projectID)
Assign a tenant to a given project.
|
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.deleteAnalysis(int tenantId,
String userName,
String analysisName) |
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,
String projectName) |
static void |
MLDatabaseUtils.enableAutoCommit(Connection dbConnection)
Enables the auto-commit of a connection.
|
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.MLModelNew> |
MLDatabaseService.getAllModels(int tenantId,
String userName) |
List<org.wso2.carbon.ml.commons.domain.MLModelNew> |
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.getAnalysis(int tenantId,
String userName,
String analysisName) |
long |
MLDatabaseService.getAnalysisId(int tenantId,
String userName,
String analysisName) |
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
|
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.getDatasetVersionId(long datasetId,
String datasetVersion) |
long |
MLDatabaseService.getDatasetVersionId(long datasetId,
String version,
int tenantId,
String userName) |
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) |
List<org.wso2.carbon.ml.commons.domain.FeatureSummary> |
MLDatabaseService.getDefaultFeatures(long datasetVersionId,
int startIndex,
int numberOfFeatures)
This method extracts and returns default features available in a given dataset version
|
int |
MLDatabaseService.getFeatureCount(long datasetSchemaId)
Returns the number of features of a given data-set version
|
List<String> |
MLDatabaseService.getFeatureNames(long modelId)
Returns the names of the features of the model
|
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.
|
String |
MLDatabaseService.getFeatureType(long modelId,
String featureName)
Retrieves the type of a feature.
|
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.MLModelNew |
MLDatabaseService.getModel(int tenantId,
String userName,
long modelId) |
org.wso2.carbon.ml.commons.domain.MLModelNew |
MLDatabaseService.getModel(int tenantId,
String userName,
String modelName) |
String |
MLDatabaseService.getModelConfigurationValue(long modelId,
String name)
retrieve a model configuration
|
long |
MLDatabaseService.getModelId(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,
String projectName) |
long |
MLDatabaseService.getProjectId(int tenantId,
String userName,
String projectName) |
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.
|
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) |
org.wso2.carbon.ml.commons.domain.Workflow |
MLDatabaseService.getWorkflow(long analysisId) |
void |
MLDatabaseService.insertAnalysis(org.wso2.carbon.ml.commons.domain.MLAnalysis analysis) |
void |
MLDatabaseService.insertDatasetDetails(String name,
int tenantID,
String username,
String comments,
String sourceType,
String targetType,
String dataType) |
void |
MLDatabaseService.insertDatasetSchema(org.wso2.carbon.ml.commons.domain.MLDataset dataset) |
void |
MLDatabaseService.insertDatasetVersion(org.wso2.carbon.ml.commons.domain.MLDatasetVersion datasetVersion) |
void |
MLDatabaseService.insertDataSource(long datasetVersionId,
int tenantId,
String username,
String key,
String value) |
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.insertFeatureCustomized(long analysisId,
org.wso2.carbon.ml.commons.domain.MLCustomizedFeature customizedFeature) |
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.MLModelNew 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.isDatasetNameExist(int tenantId,
String userName,
String datasetName) |
boolean |
MLDatabaseService.isDatasetVersionExist(int tenantId,
String datasetName,
String datasetVersion) |
boolean |
MLDatabaseService.isValidModelId(int tenantId,
String userName,
long modelId) |
static void |
MLDatabaseUtils.rollBack(Connection dbConnection)
Roll-backs a connection.
|
static String |
MLDatabaseUtils.toString(Clob clob) |
void |
MLDatabaseService.updateDataType(String featureName,
long modelId,
String featureType)
Update the data type of a given feature.
|
void |
MLDatabaseService.updateFeatureInclusion(String featureName,
long modelId,
boolean isInput)
Change whether a feature should be included as an input or not.
|
void |
MLDatabaseService.updateImputeOption(String featureName,
long modelId,
String imputeOption)
Update the impute method option of a given feature.
|
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.updateSummaryStatistics(long datasetSchemaId,
long datasetVersionId,
org.wso2.carbon.ml.commons.domain.SummaryStats summaryStats) |
void |
MLDatabaseService.updateVersionsetSample(long datasetVesionId,
org.wso2.carbon.ml.commons.domain.SamplePoints valueSetSample)
Update the dataset version table with a sample points
|
Copyright © 2015 WSO2, Inc.. All rights reserved.