Quickstart
This guide will help you get started quickly with installing the View AI Client and training your first interpretable model.
Last updated
Was this helpful?
This guide will help you get started quickly with installing the View AI Client and training your first interpretable model.
Last updated
Was this helpful?
View AI Client is a Python library that provides an interface to interact with the View AI API. It offers functionalities for model training, deployment, prediction, and explanations. This documentation will guide you through the setup process, and usage of the View AI Client.
View the current API
If you already have your own model, View AI supports explaining blackbox models or even pipelines. Alternatively, if you are looking to build new models, View AI trains interpretable models tailored to your specific needs.
Install the View AI Client using pip:
To use the View AI Client, you'll need an API key. Follow these steps to set up your account and obtain your API key:
Create an Account: Sign up for an account on the .
Generate an API Key: Navigate to the API key page in your account settings and click on "Create new secret key". Make sure to save this key securely.
To use the View AI Python library, ensure you have Python installed.
Install Python
Set up a Virtual Environment (Optional)
Creating a virtual environment can help manage dependencies:
Install the View AI Python Library
Install the View AI Client using pip:
Set up Your API Key for All Projects (Recommended)
Create a .env
file in your project directory with your API key:
Set up Your API Key for a Single Project
Alternatively, set the API key directly in your script:
Making an API Request
Follow these steps to send your first API request using the View AI Client.
Load your dataset into a pandas DataFrame:
Import and initialize the ViewAI Client:
Use the train
method to train a model with your dataset and target column:
Download and install Python from the . You need at least Python 3.7.1 or newer.
Once the model is trained, you can use the predict
method to make predictions or explore the dashboard at to understand the model's behaviour and insights.
↪ Questions? Chat with an AI or talk to a .