Skip to content

Getting Started

Install

pip

pip install driverlessai
Conda
conda install -c h2oai driverlessai

Upgrade

pip

pip install --upgrade driverlessai
Conda
conda update -c h2oai driverlessai

Usage

Connecting to H2O Driverless AI

import driverlessai

client = driverlessai.Client(address="http://localhost:12345", username="py", password="py")

Create a dataset

dataset = client.datasets.create(
    data="s3://h2o-public-test-data/smalldata/iris/iris.csv", 
    data_source="s3", 
    name="iris.csv",
)

Create an experiment

experiment = client.experiments.preview(
    train_dataset=dataset,
    target_column="C5",
    task="classification",
    name="iris-experiment",
)
Explore the API reference for more information.