Name | Price |
---|---|
Men's slippers size 10 | ? |
The Society of Mind - Marvin Minsky | ? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pymc3 as pm | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import seaborn as sns | |
# Create some data | |
n = 100 | |
_b0 = 2 | |
_b1 = 6 | |
x = np.linspace(0, 1, n) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import numpy as np | |
class BatchGradientDescent(): | |
def __init__(self, alpha, model_func=None, deriv_func=None): | |
self._alpha = alpha | |
self._model_func = model_func | |
self._deriv_func = deriv_func |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <libiomp/omp.h> | |
#include <stdio.h> | |
int main() { | |
#pragma omp parallel | |
printf("Hello from thread %d, nthreads %d\n", omp_get_thread_num(), omp_get_num_threads()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scipy.stats as stats | |
import numpy as np | |
import matplotlib.pyplot as plt | |
# create model and obtain posterior | |
n_heads = 6 | |
n = 9 | |
grid_size = 1000 | |
p = np.linspace(0, 1, grid_size) | |
prior = stats.beta.pdf(p, 10, 10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Created by Samuel Jackson on 09/03/2016. | |
// | |
#include <vtkRenderer.h> | |
#include <vtkRenderWindowInteractor.h> | |
#include <vtkRenderWindow.h> | |
#include <vtkSmartPointer.h> | |
#include <vtkPoints.h> | |
#include <vtkVertex.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from skimage import io | |
def load_image(path): | |
img = io.imread(path) | |
io.imshow(img) | |
io.show() | |
if __name__ == "__main__": | |
load_image("/Users/samuel/Downloads/mdb001.pgm") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Searching for ghc in path. | |
Found ghc at /usr/local/bin/ghc | |
("/usr/local/bin/ghc",["--numeric-version"]) | |
/usr/local/bin/ghc is version 7.10.3 | |
looking for tool ghc-pkg near compiler in /usr/local/bin | |
found ghc-pkg in /usr/local/bin/ghc-pkg | |
("/usr/local/bin/ghc-pkg",["--version"]) | |
/usr/local/bin/ghc-pkg is version 7.10.3 | |
("/usr/local/bin/ghc",["--supported-languages"]) | |
("/usr/local/bin/ghc",["--info"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
language: python | |
notifications: | |
email: false | |
python: | |
- "2.7" | |
cache: apt | |
addons: | |
apt: | |
packages: | |
- libatlas-dev |