On Premise API

Step-by-step guide on how to set up Ensemble's on premise API.

1. Sign Up

If you don't have an account yet, sign up!

2. Login to Ensemble's User Portal

Login to your Ensemble account at https://app.ensemblecore.ai.

Login to Ensemble

3. Download Ensemble Core

Once logged into your Ensemble account, copy the pip install command presented on the landing page and paste it into your command line interface. Then execute the pip install command.

pip install command.
Paste and execute in command line.

Make note of the API token included in your populated pip install command. It is a unique token required to download and utilize the on premise API.

API token highlighted in yellow.

4. Start Using Ensemble Core

Run the following example python file and see displayed output to verify that everything is working properly.

# example.py | Example Python File

import numpy as np
import ensemble_core as ec

# Login
user = ec.User()
user.login(username='YOUR_USERNAME', password='YOUR_PASSWORD', token='NTI4MTg3MTc')

# Example data
X = np.array([[1, 1], [1, 2], [2, 2], [2, 3]])
y = np.dot(X, np.array([1, 2])) + 3

# Initialize generator with your desired specifications
generator = ec.Generator(in_size=2, out_size=1, n_features=5)

# Run Feature Enhancement
generator.fit(X, y)           

# Generate new and enhanced features
enhanced_X = generator.generate(X)  

That's it!

Now that you've properly set up Ensemble's on premise API:

Last updated