Skip to content

Instantly share code, notes, and snippets.

@fbparis
fbparis / RandomUpperConfidenceInterval.py
Created July 10, 2020 06:44
Very good multi K-Armed Bandits solver, no need parameter!
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)
@fbparis
fbparis / floot.py
Last active November 28, 2020 16:34
Remplace les visages par des anus
"""
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