Please note: The code in these repos is sourced from the DataRobot user community and is not owned or maintained by DataRobot, Inc. You may need to make edits or updates for this code to function properly in your environment.
Samples of DataRobot prediction API calls in various programming languages, to help you get started using our APIs.
To run you will require access to DataRobot application.
Before running any scripts you MUST create and populate your environment variable. Each language specific script will look for it in common/.env
.
- Create a file
common/.env
- Populate the file with the following:
PREDICTION_SERVER=YOUR_PREDICTION_SERVER_ENDPOINT
DEPLOYMENT_ID=YOUR_DEPLOYMENT_ID
DATAROBOT_KEY=YOUR_DATAROBOT_KEY
API_KEY=YOUR_API_KEY
You can find these in deployments / integrations tab in your DataRobot application.
This repository contains language-specific examples in python
, node
, ruby
, go
, and java
directories.
Common data is in common
directory.
Follow the steps in Setup, and in each language specific directory's README file.
If you'd like to report an issue or bug, suggest improvements, or contribute code to this project, please refer to CONTRIBUTING.md.
This project has adopted the Contributor Covenant for its Code of Conduct. See CODE_OF_CONDUCT.md to read it in full.
Licensed under the Apache License 2.0. See LICENSE to read it in full.