API Documentation
For the full Python API documentation, please go to https://api-docs.seclea.com.
If you just want to get straight into though, we have the basics here just for you!
Installation
To install the seclea_ai package, run the following command:
pip install seclea_aiInitialisation
To use the seclea_ai API, first import the SecleaAI class and create an instance with your project and organisation details:
from seclea_ai import SecleaAI
# NOTE - use the organisation name provided to you from which you received credentials.
seclea = SecleaAI(project_name="Your AI Project Name", organization='')Uploading Datasets
To upload a dataset to the Seclea Platform, use the upload_dataset() method, providing the dataset, dataset name, and metadata:
import pandas as pd
# Load the data
data = pd.read_csv('your_data.csv', index_col="index_column")
# Define the metadata for the dataset.
dataset_metadata = {
# ...
}
seclea.upload_dataset(dataset=data, dataset_name="Your Dataset Name", metadata=dataset_metadata)Uploading Datasets - as separate samples and labels
To upload dataset that is split into samples and labels, use the upload_dataset_split() method:
Applying Dataset Transformations
To apply and record dataset transformations, use the DatasetTransformation class from the seclea_ai.transformations module:
Training and Uploading Models
To upload a model using the seclea_ai API, follow these steps:
Note that this uses the upload_training_run_split function that takes datasets as samples and labels. If you prefer to reference a dataset that isn't split in this way you can use the upload_training_run function instead.
Conclusion
By following the steps outlined in this documentation, you can efficiently integrate the seclea_ai API into your AI project, enabling seamless data and model management, as well as regulatory compliance and risk management through the Seclea Platform.
Last updated