Skip to content

Instantly share code, notes, and snippets.

View invegat's full-sized avatar

Mark Oliver invegat

View GitHub Profile
@invegat
invegat / README.md
Created March 23, 2020 18:16 — forked from joyrexus/README.md
The Stable Marriage Problem

My implementation of the Gale/Shapley algorithm in Python. This algorithm is designed to address the Stable Marriage Problem.

Compare this recursive variant with the implementations on Rosetta Code.

Problem description

Given an equal number of men and women to be paired for marriage, each man ranks all the women in order of his preference and each women ranks all the men in order of her preference.

A stable set of engagements for marriage is one where no man prefers a women over the one he is engaged to, where that other woman also prefers that man over the one she is engaged to. I.e. with consulting marriages, there would be no reason for the engagements between the people to change.

@invegat
invegat / twitter-nlp-classifiers.ipynb
Last active February 14, 2020 17:29
Twitter NLP Classifiers.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@invegat
invegat / bayesian-inference-uci-drugs.ipynb
Created February 14, 2020 16:57
Bayesian Inference UCI Drugs.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@invegat
invegat / neural-networks.ipynb
Created February 14, 2020 15:45
Neural Networks.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@invegat
invegat / site_jobs.ipynb
Last active December 15, 2018 19:44
Survey Website to Find Jobs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@invegat
invegat / gist:093098ebc3824de1843c4d217505731f
Created December 2, 2018 02:19
Use Beautiful Soap to scrape websites
## used wikipedia to:
1. ### find list of current mlb teams and the names of their stadiums
2. ### use names of stadiums to navigate to wiki page and extract cooridnates
3. ### use wiki world series site to get all world series teams
#### (used 1958 and after, before 1958 no West Coast teams - so no maximum distance, many teams had different names/cities or don't currently exist