Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from sklearn.utils import resample
- x = [0.09, 0.15, 0.18, 0.16, 0.23, 0.35, 0.49, 0.68, 0.71, 0.85, 0.96, 0.98, 0.27]
- ##
- ## La función resample permite hacer un muestreo con reemplazo.
- ##
- boot = resample(x, # muestra
- replace=True, # reemplazo?
- n_samples=len(x), # longitud de la nueva muestra
- random_state=None) # generador de aleatorios
- boot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement