This file contains hidden or 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 logging | |
from colorama import init, Fore, Back | |
init(autoreset=True) | |
class ColorFormatter(logging.Formatter): | |
# Change this dictionary to suit your coloring needs! | |
COLORS = { | |
"WARNING": Fore.RED, |
This file contains hidden or 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
# Demonstrating the Central Limit Theorem for MITs Probabilistic Systems course | |
import numpy as np | |
import matplotlib.pyplot as plt | |
def genTest(distribution,**kwargs): | |
"""Returns a score generating function from the given distribution""" | |
def test(num_students): | |
kwargs['size'] = num_students |