ŷhat

Tutorial

Create an account

Sign up for Yhat at yhathq.com/signup. You will be redirected to the account page, with your account credentials.

account page

Installation

You install Yhat for Python the same way you do any other open source package. We recommend using pip.

$ pip install --upgrade yhat

If you don't want to use pip, you can always install directly from source.

$ git clone https://github.com/yhat/yhat-client
$ cd yhat-client
$ python setup.py install

Quickstart: A Beer Recommender

For this example, we'll show you how to build a product recommendation API with just a few lines of code.

Download the file

You can download the example here, or run the following command from the terminal.

$ git clone git@github.com:yhat/yhat-examples.git
$ cd beer-recommender

Insert your credentials

Replace "{USERNAME}" and "{APIKEY}" with your username and apikey.

Run the file.

Execute the script and your model will be deployed!

$ python recommender.py
Deploy? (y/N): y
# {"status": "success"}