Skip to content

Instantly share code, notes, and snippets.


Pierre Barbier de Reuille PierreBdR

  • Google UK Ltd
  • London, UK
View GitHub Profile
View interleave-streams-functional.rkt
(define (interleave-streams . ss)
(define (helper to-process processed)
(λ ()
(if (null? to-process)
((helper (reverse processed) null))
(let* ([next (car to-process)]
[pr (next)])
(cons (car pr) (helper (cdr to-process) (cons (cdr pr) processed)))))))
(helper ss null))
PierreBdR / kde_speed_test
Last active Aug 29, 2015
Speed and accuracy test for KDE -- statsmodels vs. pyqt_fit
View kde_speed_test
This module is based on the existing gist of @Padarn here:
from __future__ import division, print_function
import numpy as np
import statsmodels.api as sm
import statsmodels.nonparametric.bandwidths as bandwidths
from statsmodels.sandbox.nonparametric import kernels
View gist:5662309
def ${1:name}(self):
def ${1}(self, value):
You can’t perform that action at this time.