TshepoMK / testing-zindi-package

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zindi-package

Description

A user-friendly ZINDI package which allow Zindians to achieve all available tasks on ZINDI Platform using this package.

Installation

Copy and Paste the instruction below in a Terminal or Jupyter Notebook.

pip install git+https://github.com/eaedk/testing-zindi-package.git

Usage

You can check the colab notebook here

# create a user object
from zindi.user import Zindian

my_username = "I_am_Zeus_AI"
user = Zindian(username = my_username)

#desired output
[ 🟒 ] πŸ‘‹πŸΎπŸ‘‹πŸΎ Welcome I_am_Zeus_AI πŸ‘‹πŸΎπŸ‘‹πŸΎ


user.select_a_challenge()                               # Select a Zindi challenge

user.which_challenge                                    # Get information about the selected challenge

user.leaderboard()                              # Show the Leaderboard of the selected challenge

user.my_rank                                    # Get the user's leaderboard rank

user.remaining_subimissions                         # Get information about how many submission you can still push now to Zindi

user.submission_board()                         # Show the user's Submission-board of the selected challenge

user.download_dataset(destination="tests/dataset") # Download the dataset of the selected challenge

"""Can you add the following code to Colab notebook

train = pd.read_csv("./dataset/Train.csv")                      # View Training data location
test = pd.read_csv("./dataset/Test.csv")                        # View Test data location
sample_sub = pd.read_csv("./dataset/SampleSubmission.csv")

prediction = model.predict(Test_data)                       # Create Predictions from test data
results = {"ID": test.ID, "Label": prediction}              # Store Predictions in a dictionary
results = pd.DataFrame(results)                             # store Predictions as a DataFrame
results.to_csv("Submition.csv", index=False)                # Create a submission file

"""

user.submit(filepaths=['tests/dataset/SampleSubmission.csv'], comments=['initial submission']) # Push a submission to Zindi : the SampleSubmission file

user.remaining_subimissions                             # Get information about how many submission you can still push now to Zindi

user.submission_board()                             # Show the Submission-board of the selected challenge

user.create_team(team_name="New Team")             # Create a team for the selected challenge

Status

In progress 🚧 . All listed functions in Usage part are working, but please share issues with use and request features that you need.

Documentation

We will update this table soon ... Now you can refer to the notebook and Usage section.

Contributers

Africa's biggest inter-university machine learning hackathon is back for Round 2!! πŸŽ‰πŸ˜ #UmojaHackAfrica2021 is set to kick off on 27 March! So get your teams together and apply today! 🌈🌍 #BuildingAITogether #ZindiHack
APPLY NOWπŸ‘‰https://t.co/bNqx0d5Odc pic.twitter.com/Tgd4vZw9pb

β€” Zindi (@ZindiAfrica) February 10, 2021

About

License:MIT License


Languages

Language:Python 100.0%