Skip to content

Instantly share code, notes, and snippets.

View tmaslen's full-sized avatar

Tom Maslen tmaslen

View GitHub Profile
@tmaslen
tmaslen / gist:783fec2d777810da8b519952bac73ebb
Last active June 4, 2023 19:39
Machine Learning Project Checklist

Machine Learning Project Checklist

This checklist can guide you through your Machine Learning projects. There are eight main steps:

  1. Frame the problem and look at the big picture.
  2. Get the data.
  3. Explore the data to gain insights.
  4. Prepare the data to better expose the underlying data patterns to Machine Learning algorithms.
  5. Explore many different models and shortlist the best ones.
  6. Fine-tune your models and combine them into a great solution.
'use strict'
/**
* @module serverless-plugin-optimize
*
* @see {@link https://serverless.com/framework/docs/providers/aws/guide/plugins/}
*
* @requires 'babelify'
* @requires 'browserify'
* @requires 'bluebird'
git fetch origin
git rebase origin/master
git status
git add .
git status
git rebase --continue
git status
git add .
git status
git rebase --continue

Project Title

One Paragraph of project description goes here

Overview

Top 5 things about this project

  • List of them
@tmaslen
tmaslen / policy.json
Last active May 24, 2019 11:01
AWS IAM Profile with all the required permissions for deploying a Lambda + API Gateway via Cloudformation
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:CreateMultipartUpload",
"s3:AbortMultipartUpload"
/Applications/IntelliJ\ IDEA.app/Contents/MacOS/idea
@tmaslen
tmaslen / mocha.d.ts
Created November 23, 2017 15:50
Minimum Typescript definitions for mocha.js
type Callback = () => void;
export function describe(description: string, callback: Callback);
export function it(description: string, callback: Callback);
#!/bin/bash
# Adapted from...
# https://stackoverflow.com/questions/26423515/how-to-automatically-update-your-docker-containers-if-base-images-are-updated
DATAPATH='./data/docker/updater/data'
UNAME="<DOCKER_HUB_USERNAME>"
UPASS="<DOCKER_HUB_PASSWORD>"
@tmaslen
tmaslen / serverless-creation-iam-policy.json
Last active March 16, 2017 17:02
example IAM policy for creating serverless services from the CLI
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"iam:CreateRole",
"iam:CreatePolicy",
"iam:AttachRolePolicy",
"iam:PassRole",
"lambda:GetFunction",
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "AWS CloudFormation sample template that contains a single Lambda function behind an API Gateway",
"Resources": {
"GreetingLambda": {
"Type": "AWS::Lambda::Function",
"Properties": {