Skip to content

Instantly share code, notes, and snippets.

Avatar

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
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:
https://gist.github.com/Padarn/72d3c0492b7608c4bd7d
"""
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
@property
def ${1:name}(self):
"""
${2:doc}
"""
${3:pass}
@${1}.setter
def ${1}(self, value):
${4:pass}
You can’t perform that action at this time.