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
#!/usr/bin/env python | |
from __future__ import division, print_function, absolute_import | |
import numpy as np | |
import pandas as pd | |
from itertools import product | |
from multiprocessing import Pool | |
def GetStudents(mu, q, n, threshold = 0.80): | |
studentability = np.random.binomial(q, mu, size=n) | |
StudentClass = [] |
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
#!/usr/bin/env python | |
import pandas as pd | |
from progress.bar import Bar | |
from multiprocessing import Pool | |
def createSample(data, n, fields): | |
dataSample = data.sample(n=n) | |
d = {} | |
d['ids'] = dataSample['ID'].tolist() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.