Skip to content

Instantly share code, notes, and snippets.

View coppeliaMLA's full-sized avatar

coppelia machine learning and analytics coppeliaMLA

View GitHub Profile
@coppeliaMLA
coppeliaMLA / python_deep_learning.md
Last active July 19, 2024 17:37
Python deep learning packages - a concept map
graph LR
    A((Keras 3)) --is a high level API for --> B((Tensorflow))
    B --was developed by-->H[Google]
    C((Pytorch)) --was developed by-->D[Meta]
    A --is a high level API for --> C
    A --is a high level API for --> F[JAX]
    F --was developed by-->H
    A --implements--> G[Deep neural nets]
 B --implements--> G
@coppeliaMLA
coppeliaMLA / middle_earth_survey.ipynb
Last active July 18, 2024 15:19
middle_earth_survey.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@coppeliaMLA
coppeliaMLA / bayesian_diff_prop.py
Last active May 24, 2024 14:10
Bayesian credible interval for the difference between two proportions
import numpy as np
import scipy.stats as stats
# Number of trials and successes for each group
n_1 = 100
x_1 = 6
n_2 = 125
x_2 = 5
# Parameters for the prior distributions
@coppeliaMLA
coppeliaMLA / bootstrap.ipynb
Last active March 15, 2022 13:08
bootstrap.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#Test imports
import urllib2, ssl, json, time, re
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.support.ui import Select
#Test urllib2
import urllib2
response = urllib2.urlopen('https://en.wikipedia.org/wiki/Test', context=ssl.SSLContext(ssl.PROTOCOL_TLSv1))
<head>
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/4.2.1/d3.min.js"></script>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.16/d3.min.js"></script>
<style> #mapid {
height: 800px;
} </style>
</head>
<body>
@coppeliaMLA
coppeliaMLA / arm.ino
Created July 13, 2016 15:56
Contro MeArm
#include <Servo.h>
Servo middle, left, right, claw ; // creates 4 "servo objects"
//positions 30, 45, 60, 75, 90, 105, 120, 135, 150
void setup()
{
middle.attach(8);
left.attach(10);
<head>
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.16/d3.min.js"></script>
<style> #mapid {
height: 800px;
} </style>
</head>
<body>
<head>
<script src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.16/d3.min.js"></script>
<style> #mapid {
height: 800px;
} </style>
</head>
<body>
@coppeliaMLA
coppeliaMLA / tree.json
Last active August 29, 2015 14:17
Example json for tree visualisations
{
"name": "root",
"visits": "202K",
"children": [
{
"name": "purpledog.com",
"visits": "50K"
},
{
"name": "squishedfish.co.uk",