Git Product home page Git Product logo

crunchdao's Introduction

Python API for the Crunchdao machine learning tournament

PyPi version

Interact with the Crunchdao tournament API using Python.

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

Installation

pip install --upgrade crunchdao

Usage

Some actions (like uploading predictions) require an apikey to verify that it is really you interacting with Crunchdao. Keys can be passed to the Python module as a parameter or you can be set via the CRUNCHDAO_API_KEY environment variable

Example usage

import crunchdao
# some API calls do not require logging in
client = crunchdao.Client(apikey="foo")
# download current dataset
client.download_data(directory=".")
# get information about your submissions
submissions = client.submissions()
print(submissions)  # this is a pandas Dataframe
# get configure of the current dataset
client.dataset_config()
# upload predictions
predictions = ....  # pandas DataFrame containing your predictions
submission_id = client.upload(predictions)
# set comment for the submission, to remember which model that is etc
client.set_comment(submission_id, "Great model, learning_rate=0.01")
# Get your resolved targets live score on master dataset
client.get_scores()

crunchdao's People

Contributors

uuazed avatar xaviergilbert avatar supernovalx avatar caceresenzo avatar matteoettam09 avatar

Stargazers

Enda Carroll avatar farhan avatar Francis Chmiel avatar Thomas Wong avatar  avatar  avatar jean herelle avatar Hossein Abedi avatar Suraj Parmar avatar

Watchers

Kostas Georgiou avatar  avatar  avatar jean herelle avatar

crunchdao's Issues

issue with `download_data` methods in `api.py`

download_data methods in api.py throwing error

def download_data(self, directory: str = ".") -> list[str]:

TypeError: 'type' object is not subscriptable

Above issue is fixed by replacing

from -
def download_data(self, directory: str = ".") -> list[str]:
to -
def download_data(self, directory: str = ".") -> List[str]:

Note: I already fixed this in my local. Will raise pull requests for the same if required

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.