cancel
Showing results for 
Search instead for 
Did you mean: 

DATAROBOT_KEY : for newer versions of DataRobot

iMahadev
Image Sensor

Hi there,

While I was exploring some tutorials (movie sentiment) I was going through some codes related to predictions, where the code was asking for DATAROBOT_KEY. However, I found that in the newer deployments, there is no mention of DATAROBOT_KEY in the Integrations tab.

Where do I find that and how the rest of the code be refactored? 

Please guide.

Thanks,

Santosh KV

4 Replies
doyouevendata
DataRobot Employee
DataRobot Employee

Hi Santosh - 

The DATAROBOT_KEY is the token that allows you to leverage your licensed prediction hardware on the cloud when submitting a scoring request to a model deployed and hosted on DataRobot SaaS.  These are typically real-time scoring requests to the Prediction API endpoint on a Dedicated Prediction Engine (DPE) - our hosting servers.  There are two reasons why you may not find it in some code examples you encounter.

  1. The key only exists on the cloud - customers with their own installation of DataRobot do not have or require this key.
  2. You may be looking at code that is using the Batch Prediction API - this code actually hits the application server, not the DPE directly.  The Batch Prediction API wraps the Prediction API and takes care of the DATAROBOT_KEY part of the requests for you.

In this article you can see examples of using the batch scoring CLI script which calls the Batch Prediction API - note the application server is all that is specified.  (https://app.datarobot.com)

Conversely, this article has some examples of hitting the Prediction API and the scoring resource (DPE) directly.  DATAROBOT_KEY is sent over as a header item.

0 Kudos
lhaviland
Community Team
Community Team

Hi @iMahadev - can you try navigating to this page:

lhaviland_0-1618413199637.png

and look for the key in the code snippet:

lhaviland_2-1618413373703.png

 

please let us know if this works for you

- Linda

0 Kudos
iMahadev
Image Sensor

Hi @lhaviland @doyouevendata ,

Thank you for your responses.

I have already checked that Predictions API tab and didn't find DATAROBOT_KEY in the code, but I could see API_KEY and API_URL only. I am sorry about mentioning 'Integrations' tab, I happened to look at Predictions API tab only.

https://api-docs.datarobot.com/docs/tutorial-movie-review-classifier#implementing-the-app

Here, they are mentioning about DATAROBOT_KEY (looks like earlier version of DR) which I was not able to find out, so I asked here. Can I ignore that parameter? Will that still hold good for my predictions? 

If not, what value should I be using for the DATAROBOT_KEY ? As you all know I am still evaluating trial version and mostly dependent on the DataRobot's servers for everything. Please let me know if I am missing anything.

 

Regards,

Santosh 

 

0 Kudos
doyouevendata
DataRobot Employee
DataRobot Employee

Santosh, per @lhaviland 's screenshots and you being on the AI Trial (app2 host) - I think there is a 3rd case where this would be encountered.  It looks like the AI Trial does not use these keys.  This makes sense in that the SaaS cloud offering provides dedicated hardware for each customer to score on, however the AI Trial is a shared resource.  So you can safely ignore the references to DATAROBOT_KEY. 

0 Kudos