Skip to main content

ExplainaBoard Client

Project description

ExplainaBoard Client

This is a command line and API client that makes it easy for you to evaluate systems using ExplainaBoard.

Preparation

Install: First, install the client.

pip install explainaboard_client

Acquiring a Login and API Key: Create an account at the ExplainaBoard site and log in. Once you are logged in, you can click on the upper-right corner of the screen, and it will display your email and API key, which you can copy-paste.

You can save these into environmental variables for convenient use in the commands below:

export EB_USERNAME="[your username]"
export EB_API_KEY="[your API key]"

Use in Python

The most common usage of this client will probably be to evaluate systems on the ExplainaBoard server. Below is an example of how you can do this in Python.

import os
import explainaboard_client

# Set up your environment
explainaboard_client.username = os.environ['EB_USERNAME']
explainaboard_client.api_key = os.environ['EB_API_KEY']
client = explainaboard_client.ExplainaboardClient()

# Do the evaluation
evaluation_result = client.evaluate_system_file(
    task='text-classification',
    system_name='text-classification-test',
    system_output_file='example/data/sst2-lstm-output.txt',
    system_output_file_type='text',
    dataset='sst2',
    split='test',
    source_language='en',
)

For more details on precisely how to specify all the variables, as well as how to do other things such as search for and delete systems, see the documentation of the Python API.

Use from the Command Line

You can also evaluate systems from the command line like this.

python -m explainaboard_client.cli.evaluate_system \
  --task text-classification \
  --system-name text-classification-test \
  --system-output-file example/data/sst2-lstm-output.txt \
  --system-output-file-type text \
  --dataset sst2 \
  --split test \
  --source-language 'en'

For more details, see the command line documentation.

Having Trouble?

Please open an issue on the issues page and we'll be happy to help!

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

explainaboard_client-0.1.0.tar.gz (18.7 kB view details)

Uploaded Source

Built Distribution

explainaboard_client-0.1.0-py2.py3-none-any.whl (26.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file explainaboard_client-0.1.0.tar.gz.

File metadata

  • Download URL: explainaboard_client-0.1.0.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.15

File hashes

Hashes for explainaboard_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9b6606152e67246b18f27d9d2d1c4ee3fe6ace40825c3c581289b1f82a6f2376
MD5 cee2d44262e5f950e2604d27aec1bcb3
BLAKE2b-256 eaf2afee948f175f43496695cde311d21e2ad3b5ca7a05b56638c9f6a4b95d3e

See more details on using hashes here.

File details

Details for the file explainaboard_client-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for explainaboard_client-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b1d33bf48f219fc6b5437d21cab2b98a0e60fa48a6891bd443abc039dbf937f8
MD5 fd66125b8dca262367e138fb2463532f
BLAKE2b-256 707fb6819200f2b57b49d38231227f92e9131e7c1bf74d221650198dd5882f46

See more details on using hashes here.

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