<filename>numerai/numerox_example.py
#!/usr/bin/env python

import numerox as nx


def numerox_example():
    """
    Example of how to prepare a submission for the Numerai tournament.
    It uses Numerox which you can install with: pip install numerox
    For more information see: https://github.com/kwgoodman/numerox
    """

    # download dataset from numerai, save it and then load it
    data = nx.download('numerai_dataset.zip')

    # we will use logistic regression; you will want to write your own model
    model = nx.logistic()

    # fit model with train data and make predictions for tournament data
    prediction = nx.production(model, data, tournament='bernie')

    # save predictions to csv file
    prediction.to_csv('logistic.csv', verbose=True)

    # upload predictions to Numerai to enter the tournament
    # create the public_id and secret_key on the Numerai website
    #
    # nx.upload('logistic.csv', tournament='bernie', public_id, secret_key)


if __name__ == '__main__':
    numerox_example()

<filename>numerai/numerox_example.py
#!/usr/bin/env python

import numerox as nx


def numerox_example():
    """
    Example of how to prepare a submission for the Numerai tournament.
    It uses Numerox which you can install with: pip install numerox
    For more information see: https://github.com/kwgoodman/numerox
    """

    # download dataset from numerai, save it and then load it
    data = nx.download('numerai_dataset.zip')

    # we will use logistic regression; you will want to write your own model
    model = nx.logistic()

    # fit model with train data and make predictions for tournament data
    prediction = nx.production(model, data, tournament='bernie')

    # save predictions to csv file
    prediction.to_csv('logistic.csv', verbose=True)

    # upload predictions to Numerai to enter the tournament
    # create the public_id and secret_key on the Numerai website
    #
    # nx.upload('logistic.csv', tournament='bernie', public_id, secret_key)


if __name__ == '__main__':
    numerox_example()

#!/usr/bin/env python Example of how to prepare a submission for the Numerai tournament.     It uses Numerox which you can install with: pip install numerox     For more information see: https://github.com/kwgoodman/numerox # download dataset from numerai, save it and then load it # we will use logistic regression; you will want to write your own model # fit model with train data and make predictions for tournament data # save predictions to csv file # upload predictions to Numerai to enter the tournament # create the public_id and secret_key on the Numerai website # # nx.upload('logistic.csv', tournament='bernie', public_id, secret_key)