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
az extension add -n azure-cli-ml |
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 time | |
class Bucket(object): | |
def __init__(self, max_amount, refill_time, refill_amount): | |
self.max_amount = max_amount | |
self.refill_time = refill_time | |
self.refill_amount = refill_amount | |
self.reset() | |
def _refill_count(self): |
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
# Ryan Peach 3/1/2016 | |
# References Used for this Implementation | |
# https://en.wikipedia.org/wiki/Hungarian_algorithm | |
# https://github.com/bmc/munkres/blob/master/munkres.py | |
# http://csclab.murraystate.edu/bob.pilgrim/445/munkres.html | |
# --- | |
# No copying and pasting of online code was performed, though some code may turn out to be similar due to the standardized nature of this algorithm. | |
# This is a very different implementation due to the fact that it heavily uses numpy, vastly simplifies many poorly pythonized coding elements | |
# removes the "class" approach for a function based one. Etc. | |
# Improvements that need to be made is to require the matrix class, and to vectorize iterations through the matrix. |