Skip to content

Instantly share code, notes, and snippets.

Mike Ellertson mellertson

  • Binary Capital
  • Huntington Beach, CA
View GitHub Profile
@mellertson
mellertson / htm-predictions-using-multiple-inputs.py
Last active Feb 3, 2017
Using HTM for time-series predictions using multiple inputs
View htm-predictions-using-multiple-inputs.py
import pandas as pd
# TODO insert other necessary imports here
input_file_name = "/tmp/input.csv"
input_file_index = 3
input_file_num_rows = len(stored_input_file)
output_column = "col2"
cpu_count = 4 # change this to the number of cpu cores on your system
SWARM_CONFIG = {
@mellertson
mellertson / model_params.py
Last active Feb 4, 2017
model parameters after swarming over 46 data sets, attempting to predict 'set36'
View model_params.py
MODEL_PARAMS = {'aggregationInfo': {'days': 0,
'fields': [],
'hours': 0,
'microseconds': 0,
'milliseconds': 0,
'minutes': 0,
'months': 0,
'seconds': 0,
'weeks': 0,
'years': 0},
@mellertson
mellertson / login.html
Last active Jan 2, 2019
Login Template for Django 2.x
View login.html
<!-- This file should be saved as: templates/registration/login.html
This file was copied from the Django documentation here:
https://docs.djangoproject.com/en/2.1/topics/auth/default/#module-django.contrib.auth.views
-->
{% extends "base.html" %}
{% block content %}
@mellertson
mellertson / findgrep
Last active Jun 10, 2020
findgrep - finds files matching a file pattern and then grep found files using a regex pattern
View findgrep
#!/bin/bash
RED="\e[31m"
GREEN="\e[32m"
BOLD="\e[1m"
ITALIC="\e[3m"
UNDERLINE="\e[4m"
END="\e[0m"
function usage {
You can’t perform that action at this time.