R Interface to the Numerai Machine Learning Tournament API

This interface allows download of tournament data, submit predictions, get user information, stake NMR’s and much more. Using the functions from this package end user can write R code to automate the whole procedure related to numerai tournament.

If you encounter a problem or have suggestions, feel free to open an issue.



Automatic submission using this package

1. Install and load the package.

2. Set working directory where data will be downloaded and submission files would be kept.

3. Set Public Key and Secret API key variables.

Get your public key and api key by going to numer.ai and then going to Custom API Keys section under your Account Tab. Select appropriate scopes to generate the key or select all scopes to use the full functionality of this package.

Optional: If we choose not to setup the credentials here the terminal will interactively prompt us to type the values when we make an API call.

4. Download data set for the current tournament and split it into training data and tournament data

5. Generate predictions

A user can put his/her own custom model code to generate the predictions here. For demonstration purposes, we will generate random predictions.

6. Submit predictions and get submission id

7. Check the status of the submission (Wait for a few seconds to get the submission evaluated)

8. Stake submission on submission made above and get transaction hash for it.

Additional functions

1. Get User information

Get user information for the user whose API key and ID are entered, Check out the name of the return object to see what informations are included in the return and than subset the required information

2. Get leaderboard for a round

Get leaderboard information for a given round number (Round 51 & Above).

3. Get current open round

Get closing time and round number for current open round

4. Run Custom GraphQL code from R: