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
# A Python Netwide Assembley Utility | |
# makes 32bit assembly compatible with 64bit Os | |
# tweaks basic 32bit assembly (not all) to native 64bit assembly | |
# | |
# License GPLv3 | |
# code author: James Rubino | |
from subprocess import check_call | |
import sys |
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 urllib2 | |
# todo | |
# stablize work flow | |
# slqlitedb integration | |
# salary estimation | |
# language market share | |
# local search | |
# reporting |
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
class OnlineLearner(object): | |
def __init__(self, **kwargs): | |
self.last_misses = 0. | |
self.iratio = 0. | |
self.it = 1. | |
self.l = kwargs["l"] | |
self.max_ratio = -np.inf | |
self.threshold = 500. | |
def hinge_loss(self, vector, cls, weight): |
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
""" | |
Code for training RBMs with contrastive divergence. Tries to be as | |
quick and memory-efficient as possible while utilizing only pure Python | |
and NumPy. | |
""" | |
# Copyright (c) 2009, David Warde-Farley | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without |
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
# coding: utf-8 | |
"""Online learning.""" | |
import numpy as np | |
from numpy import sign | |
import itertools as it | |
from numpy import array as A, zeros as Z | |
import math |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import with_statement | |
import collections, operator, math, random, pprint | |
class Classifier(object): | |
AttrsToDump = ["value_counts", "class_counts", "features", "feature_counts"] | |
def __init__(self, features={}, verbose=False): |
rest
Welcome to Crime Crunchers! ======================== Time to Crunch Crime!
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
I got the crazy idea that the project could be released as a Puppy / DSL linux or #! Linux distro | |
A debian or ubuntu compatible distro would be ideal, a tiny linux is very seductive. | |
1) Code Updates could be pushed to the nodes | |
2) A compute engine can be installed and used for grid operations (There goes the dream of tiny) | |
MOsix, OpenMosix, Rocks are all compute engines | |
SaltStack might be ideal, hacking a new setup with zeromq might be worth the effort. | |
3) Volunteers can run the distro in a vm maintaining their own computers and volunteering compute time. | |
I spent today looking into GIS shapefile utils |
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
This is a project to provide police event mapping and statistics for the citizens of San Antonio. | |
This project is meant to provide citizens with data to enable them to better watch their neighborhoods. | |
It was created after reading national best places to live rankings for cities. San Antonio was hindered by a nationally high ranking property theft rate. | |
Project Name Ideas: | |
* Nicolas | |
* Means "Victory of the People" | |
* Refers to: St Nicolas of Myra; protector from theft and more generally protector of the innocent |