Guides

Your first ship

A ship is your project, sent to us to score. It counts when it has all four, following Hack Club's shipping rules:

  1. A public GitHub repo with a predict.py we can run, a README that says what your model does and how to run it (not the starter template), and a commit every 30 minutes or so. More than 60 minutes of coding without a commit gets the ship disqualified.
  2. A description: what your model does now, what you tried, what worked.
  3. A screenshot of your project running: your notebook, a chart or your results. A still image, no GIFs or videos. Ship pages are public, so keep anything private out of it.
  4. Your Hackatime projects, with the hours tracked in VS Code (how). Connect Hackatime on the Ship tab, then pick your projects from the list. Hackatime is required: hours it didn't track don't count. Add your Lapse timelapse links too, as a backup. Publish them on Lapse first: we check each link there.

Hours. Your first ship each week needs at least 30 minutes on Hackatime. Ships after it need none. A project (one GitHub repo) counts only with 2 hours across its ships that week.

You don't build a website. Once your ship is scored, it gets its own page where anyone can play detective against your model or try it on their own data, and that page is your playable URL.

What predict.py does

When you ship, we put train.csv and test.csv next to your predict.py, run python predict.py with no internet, and read the predictions.csv it writes. We do this twice: first with 20 public projects as test.csv (those guesses go on your ship's page), then with the hidden projects (those become your score). Just read whatever test.csv you're given:

project_id,hours_spent
3f9a1c0b2e,12.5

One row for every project in test.csv, each run done within 10 minutes, on CPU only. test.csv has the same columns as train.csv minus hours_spent, log_hours and hours_bucket. pandas, scikit-learn, XGBoost, LightGBM and CatBoost are already installed (the Ship tab lists the exact versions); anything else goes in requirements.txt, which we install with internet before your code runs. If you save a model file, save it with the same scikit-learn version or pin yours in requirements.txt. Never upload train.csv to GitHub: add *.csv to your .gitignore.

Step by step

  1. Download train.csv from the Data tab and set up VS Code (setup guide).
  2. Explore the data and train a model in a notebook. Check your score on part of train.csv you held back.
  3. Put your best model in predict.py. To try it, save a few rows of train.csv without the answer columns as test.csv and run python predict.py.
  4. Put the folder on GitHub as a public repo: Git and GitHub in VS Code.
  5. Write your README, take a screenshot, and fill in the Ship tab. We check your repo first and list anything to fix. Push a fix and press Check again, or press Change the form: everything you typed is still there.
  6. Your ship is scored in a few minutes. You'll get a Slack DM when it's done, and its page tells you if anything went wrong.

After your first ship

Ship as often as you like, up to 5 a day. From your second ship on, the form starts from your last one: say what you built or tried since, and what took the time. Once the week closes and every ship is in, a person reviews your projects, and you get coins for the hours they approve.