Skip to content

Instantly share code, notes, and snippets.

View drmingle's full-sized avatar

Damian Mingle drmingle

View GitHub Profile
title author date
Add Padding Around String
Damian Mingle
05/04/2018

Generate Text

text = 'Data Science is important stuff!'
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Error in user YAML: (<unknown>): did not find expected key while parsing a block mapping at line 1 column 1
---
title: "Perceptron In SciKit-Learn
author: "Damian Mingle"
date: 04/30/2018
---

The perceptron is a supervised learning algorithm which uses a set of function to learn from inputs to determine if they belong to some class or not. It was one of the earliest machine learning techniques used and still is at the center of many modern neural networks.

Preliminaries

@drmingle
drmingle / saving machine learning models.md
Created April 30, 2018 23:49
two conventional ways to save models using scikit-learn
title author date
Saving Machine Learning Models
Damian Mingle
04/30/2018

Let's take a look at two conventional ways to save models using scikit-learn

  1. a pickle string
  2. a pickled model as a file.

Preliminaries

title author date
Loading scikit-learn's Boston Housing Dataset
Damian Mingle
04/30/2018

Preliminaries

# Load library
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@drmingle
drmingle / Loading Features from Dictionaries.md
Last active April 30, 2018 06:39
This transformer turns lists of mappings (dict-like objects) of feature names to feature values into Numpy arrays or scipy.sparse matrices for use with scikit-learn estimators.
title author date
Loading Features From Dictionaries
Damian Mingle
04/30/2018

Preliminaries

from sklearn.feature_extraction import DictVectorizer