This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@property | |
def ${1:name}(self): | |
""" | |
${2:doc} | |
""" | |
${3:pass} | |
@${1}.setter | |
def ${1}(self, value): | |
${4:pass} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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)) |