Observed since 20 Oct, 17:55 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
The SDK helps Data organizations track their ML models, data that deliver business value.
Driven through Acceldata Cloud Platform
Driven through Acceldata Cloud Platform
Driven through Acceldata ML Observability UI
export CLOUD_ACCESS_KEY=XXXX0000
export CLOUD_SECRET_KEY=XXXX0000
export ACCELO_API_ACCESS_KEY=XXXX0000
export ACCELO_API_SECRET_KEY=XXXX0000
export ACCELO_API_ENDPOINT=https://some_acceldata_endpoint
pip install accelo
Set Go!
Before we delve into code, let's just see an example of a pattern in which you can use the SDK.
The actuals for any features may arrive at a later point and the API provides 2 ways to log the actuals.
Note: Please refer to the API documentation for more information.
Finally, let's see how you can annotate the SDK into your production code pipelines. Below are some examples of how a Data Scientist or ML Engineer can annotate the SDK into the existing ML code and observe them using Acceldata ML Observability platform.
from accelo_mlops import AcceloClient
The workspace is the top level name that you would want to associate your organization with. This can also be thought of like a tenant name.
client = AcceloClient(workspace='your_organization_name')
Now, when it comes to code, the atomic unit is a Project. The project name can be a team name, domain name within
a company or any other logical separation Data Science groups.
client.create_project(name='marketing-team',
description='All models related to the marketing team reside here. '
)
Now, assuming that you have developed a model that you want to observe using the Acceldata ML Observability platform.
The model object is called classifier.
model_metadata = {
'frequency': 'DAILY',
'model_type': 'binary_classification',
'performance_metric': 'f1_score',
'model_obj': classifier
}
additional_params = {
'owner': 'research@preview.com',
'last_trained': '2021-08-01',
'training_job_name': 'click_prediction_ml_pipeline',
'label': 'flower_type',
'total_consumers': 2
}
client.register_model(project_id=12,
model_name='click_prediction_model',
model_version='v1',
model_metadata=model_metadata,
**additional_params
)
Let's see what above variables mean.
Now, it's time to log the data that was used in model.
client.log_baseline(
model_id=client.model_id,
model_version='v1',
baseline_data=X_train,
labels=y_train,
label_name='click',
id_cols=['campaign_id'],
publish_date='2021-08-02'
)
This API call logs your baseline data to Acceldata data store and will be further used for analysis that you sign up for.
ids = client.log_predictions(
model_id=client.model_id,
model_version='v1',
feature_data=feature_data,
predictions=preds,
publish_date='2021-06-02'
)
Note: As of now, we support batch predictions only but soon enough, will be able to support logging online predictions.
At a later time, when actuals arrive, you'd be able to log them using below API.
client.log_actuals(
model_id=client.model_id,
model_version='v1',
id_cols_df=id_columns_frane,
actuals=y_test,
publish_date='2021-06-03'
)
You are now done logging both metadata and the data itself.
Detailed activity logs can be viewed in the ad-mlops.log file in the directory where your code file exists, however, location of the log file is configurable.
The model and the other metadata are now part of Acceldata ML Catalog and can be viewed on the UI.
The baseline, prediction, actual data are logged into the Acceldata Store. This data will be used for further analysis.
You will be able to track model performance, data drifts, etc by visiting this dashboard.
You can set alerts on charts, generate reports, etc using the dashboard or the catalog.
Please get in touch with us at contact@acceldata.io for access to Acceldata catalog, dashboard, and assistance with bringing ML Observability into your organization.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.0.1 | 3 Aug 2021 | 10 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 17:55 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:0a821a4ae26efd5819031cb07e8b6a91900f29fb3295fbaaf864c7131e557748