Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 2.01 KB

refactoring-exercise.md

File metadata and controls

39 lines (26 loc) · 2.01 KB

clean-code-ml refactoring exercise setup

Prerequisites

Please ensure you have the following:

Getting started

  1. Fork repo
  2. Clone repository: git clone https://github.com/YOUR_USERNAME/clean-code-ml
  3. Project setup. You can either use docker or conda. Choose whichever you prefer:

If you encounter any errors, please refer to FAQs for a list of common errors and how to fix them.

IDE configuration

Configure your IDE to use ~/miniconda3/envs/clean-code-ml/bin/python as the Python interpreter. Here are the instructions on how to do that in VS Code and PyCharm.

Once you've done that, you should be able to:

  1. Get helpful auto-complete suggestions in your IDE as you type. If somehow that's not showing up, try restarting your code editor.
  2. Let your IDE auto-format your code in a file. We've installed autopep8 using conda, and now your IDE can help you with the auto-formatting)
    • To do this in VS Code, hit Shift + + F
  3. Use other tools provided by your IDE.
    • For VS Code, hit F1 and type 'Python Refactor' and you can experiment with any of these commands (e.g. 'Sort Imports')

Attributions

The notebook which we use for the starting point of our refactoring exercise was adapted/modified from a Kaggle submission for the titanic competition.