Targets

Targets are products of Luigi tasks. These targets are checked for existance prior to running a tasks. This task is only run if any of the targets does not exist. A task also cannot exit with success when the target isn’t created after the task was run.

class targets.numerai_submission.SubmissionTarget(path, public_id, secret)[source]

Implements a submission target to “output” predictions from luigi tasks on the numer.ai servers.

__init__(path, public_id, secret)[source]

Creates a new SubmissionTarget.

Param:path (str): local path to the predictions csv file
Param:public_id (str): public_id as reported by the numer.ai website when creating API credentials
Param:secret (str): secret as reported by the numer.ai website when creating API credentials
exists()[source]

Checks if a submission for the file named path was uploaded.

NB: the filename as reported by the server is appended by a random string (before the file extension), and we can just access the file that was submitted last. This might result in double uploads for the same file.

submit()[source]

Submits the predictions to the numer.ai servers and tries to report back the status.