Skip to content

Instantly share code, notes, and snippets.

View xzpjerry's full-sized avatar
💭
graduating

Jerry xzpjerry

💭
graduating
  • Oregon
View GitHub Profile
@xzpjerry
xzpjerry / C4.5.py
Last active August 10, 2019 22:02
C4.5
from collections import Counter
from math import log
# SAMPLE_FILE_NAME = "waiting.csv"
# SAMPLE_FILE_NAME = "golf.csv"
SAMPLE_FILE_NAME = "home_inSF.csv"
class STD_INPUT:
def __init__(self, labels, attributes, data, curr_best_attri=None, curr_best_threshold=None):