Skip to main content

A CLI and SDK for interacting with the Efemarai ML testing platform.

Project description

A CLI and SDK for interacting with the Efemarai ML testing platform.

Setup

Install with

pip install efemarai

then run

$ efemarai

and following the instructions.

Usage

Working with projects:

import efemarai as ef

session = ef.Session()

# List all projects
for project in session.projects:
    print(project.name)

# Create a new project
project = session.project(
    name="Aircraft Detection",
    description="Exmample object detection project",
    problem_type="ObjectDetection",
)

# Load an existing one
project = session.project("Aircraft Detection)

# List project models
for model in project.models:
    print(model.name)

Working with stress tests:

# Create a new stress test
test = project.stress_test(
    name="Test via SDK",
    model=project.model("COCO YOLOR-P6"),
    domain=project.domain("Aircraft Domain"),
    dataset="Aircraft Detection - Train", # Just a name also works
)

# Load an existing stress test
test = project.stress_test("Test via SDK")

# Download dataset with discovered vulnerabilities
dataset_filepath = test.vulnerabilities_dataset()

Models, domains and datasets can be easily created programatically, but they require quite a few configuration paramaters to be provided. That's why the most convenient way to create a project with multiple models, domains and datasets is to put everything into a config file (see e.g. examples/aircraft_project.yaml) and then just load it with:

result = ef.Session().load("examples/aircraft_project.yaml")

# access the created entities
project = result["project"]
models = result["models"]
domains = result["domains"]
datasets = result["datasets"]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

efemarai-0.0.5.tar.gz (9.5 kB view hashes)

Uploaded Source

Built Distribution

efemarai-0.0.5-py3-none-any.whl (11.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page