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
class RandomUCI(): | |
"""Random Upper Confidence Interval | |
""" | |
def __init__(self, bandit): | |
self.bandit = bandit | |
self.arm_count = bandit.arm_count | |
self.mean = np.ones(self.arm_count) / 2 | |
self.variance = np.ones(self.arm_count) / 4 | |
self.N = np.ones(self.arm_count) |
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
""" | |
Librement inspiré de https://twitter.com/IllumiReptilien/status/1325009440026877953 | |
anus.png peut être récupéré ici : https://github.com/fbparis/floot/blob/main/anus.png | |
""" | |
# uncomment in colab | |
# !pip install mtcnn | |
import cv2 | |
import mtcnn |
OlderNewer