Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. from sklearn.utils import resample
  2.  
  3. 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]
  4.  
  5. ##
  6. ## La función resample permite hacer un muestreo con reemplazo.
  7. ##
  8. boot = resample(x, # muestra
  9. replace=True, # reemplazo?
  10. n_samples=len(x), # longitud de la nueva muestra
  11. random_state=None) # generador de aleatorios
  12. boot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement