Skip to content

Instantly share code, notes, and snippets.

View jcausey-astate's full-sized avatar

Jason L Causey jcausey-astate

  • Arkansas State University
  • Jonesboro, AR
View GitHub Profile
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.
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.

The following animation shows the first four iterations of sliding a 2D convolutional filter across an image, where the white pixels are encoded as 1 and the black pixels are encoded as -1.

@jcausey-astate
jcausey-astate / vehicle.txt
Last active February 21, 2019 17:30
This is the combined dataset from the "Statlog (Vehicle Silhouettes) Data Set" available from UCI ML repo at https://archive.ics.uci.edu/ml/datasets/Statlog+%28Vehicle+Silhouettes%29
95 48 83 178 72 10 162 42 20 159 176 379 184 70 6 16 187 197 van
91 41 84 141 57 9 149 45 19 143 170 330 158 72 9 14 189 199 van
104 50 106 209 66 10 207 32 23 158 223 635 220 73 14 9 188 196 saab
93 41 82 159 63 9 144 46 19 143 160 309 127 63 6 10 199 207 van
85 44 70 205 103 52 149 45 19 144 241 325 188 127 9 11 180 183 bus
107 57 106 172 50 6 255 26 28 169 280 957 264 85 5 9 181 183 bus
97 43 73 173 65 6 153 42 19 143 176 361 172 66 13 1 200 204 bus
90 43 66 157 65 9 137 48 18 146 162 281 164 67 3 3 193 202 van
86 34 62 140 61 7 122 54 17 127 141 223 112 64 2 14 200 208 van
93 44 98 197 62 11 183 36 22 146 202 505 152 64 4 14 195 204 saab
"""
Adapts C implementation shown at
https://en.wikipedia.org/wiki/Hilbert_curve
(2018-12-19)
into Python.
"""
import sys
import numpy as np
"""
Encodes SNP format (TSV) into a numeric matrix (CSV) format.
See docstring in `main()` for more info, or run with --help.
"""
import click
import sys, os, csv, json
@click.command()
@click.argument("input_file", type=click.File("r"))
@jcausey-astate
jcausey-astate / neural_network_example.ipynb
Created October 20, 2018 18:20
An example one- and two-layer neural network from scratch in Python, with helpful references and example links.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Data Analysis Tools You (may) Already Have

This example will use the text of Grimms' Fairy Tales available from Project Gutenberg.

grep - Search in text!

The grep tool is installed by default on most Linux and UNIX-like systems.

Documentation is available at: