Skip to content

Template repository for Data Science projects deployed to Sagemaker

Notifications You must be signed in to change notification settings

blinkist/blinkist-sagemaker-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<Project Name>

About

<Description>

Commands

Help

  • make: To list all commands

Initial project setup

  1. Open a new Terminal and navigate into this folder
  2. Setup package management, install dependencies, and a Jupyter kernel with: make install

Deploy

  1. Open a new Terminal and navigate into this folder
  2. Deploy project as Docker container to ECR: make deploy tag=<project-tag>

Note that deploying the project will also format and lint your code.

Format code

  • make format: Format code using Black and re-order imports using isort. Formatting is applied to Python files and notebooks inside src/

Linter

  • make lint: Check code using Flake8 to catch logical and stylistic anti-patterns. Linting is applied to Python files and notebooks inside src/

Add dependencies

This project uses Poetry to create a virtualenv and to manage dependencies. The initial project setup install poetry as a command line tool. Adding dependencies is simply done by using poetry add tensorflow, which will add the dependency to the pyproject.toml file and all transient dependencies to poetry.lock to freeze versions.

About

Template repository for Data Science projects deployed to Sagemaker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published