Skip to content

Instantly share code, notes, and snippets.

Mike Ellertson mellertson

  • Binary Capital
  • Huntington Beach, CA
Block or report user

Report or block mellertson

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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 / 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 / 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 = {
You can’t perform that action at this time.