Skip to main content

Real Time Prediction Examples

Steps to create and use an API

  1. Go to OneNine Platform
  2. Click on Real Time Predictions in the sidebar
  3. Find the project to which the API has to be created
  4. Click on Create API button against the desired project in the API Actions column.
  5. A few seconds later, a pop up will appear which will display the API key necessary to access the API. You can use this API key to later integrate this API in your environment. Click on OK to continue.
Caution

This key is important to access the API in future. Hence please do not share it with anyone.

  1. You can now see the status column changing from Offline to Online. Now click on the Use API button.
  2. The Use API button will take you to the API page where you can see the API key and a few important results of the model at the beginning. Below that, you will be able to see two tabs called Predict via API and Predict via Web.

API Page


The Predict via Web displays a simple UI with which you can predict the output of the model for unseen data. The primary advantage of this feature is you do not need a dedicated development team or any knowledge of API integration to use this feature. There are two ways through which you can perform predictions.
  1. Adhoc Predictions
  2. Batch Predictions
The Adhoc predictions lets you perform one prediction at a time. As a user, you will have to enter the values for each of the input column and click on Predict. The prediction result can be seen below

Adhoc PredictionThe Batch predictions lets you perform multiple prediction at once. It lets you upload a set of data points as a CSV file format and predictions can be performed for all the entries in the CSV file as a single batch. While performing batch prediction, Please keep the following in mind
  1. The column names are same as those listed in the Input features section.
  2. The input file is in CSV format.

Batch Prediction