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
# -*- coding: utf-8 -*- | |
"""Random variable by subclassing distribution | |
Created on Sun Jun 03 10:43:04 2012 | |
Author: Josef Perktold | |
adjusted example from mailing list | |
generic random number generation given only the pdf is slooooow |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# -*- coding: utf-8 -*- | |
"""Avoid Pickle problems with an instance method | |
Created on Tue Dec 18 15:22:19 2012 | |
Author: Josef Perktold | |
""" | |
import pickle |
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
# -*- coding: utf-8 -*- | |
"""scoreatpercentiles vectorized | |
Created on Mon Dec 24 09:29:31 2012 | |
Author: Josef Perktold | |
""" | |
import numpy as np |
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
""" | |
========================================================= | |
circular data analysis functions | |
========================================================= | |
""" | |
# Authors : Anne Kosem and Alexandre Gramfort | |
# License : Simplified BSD |
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
# -*- coding: utf-8 -*- | |
"""script to try out Censored kernel regression | |
Created on Wed Jan 02 13:43:44 2013 | |
Author: Josef Perktold | |
""" | |
import numpy as np | |
import statsmodels.nonparametric.api as nparam |
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
# Worker Machine score | |
ss = '''\ | |
1 1 A 52.0 | |
2 1 A 52.8 | |
3 1 A 53.1 | |
4 2 A 51.8 | |
5 2 A 52.8 |
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
# Worker Machine score | |
ss = '''\ | |
1 1 A 52.0 | |
2 1 A 52.8 | |
3 1 A 53.1 | |
4 2 A 51.8 | |
5 2 A 52.8 |
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
import numpy as np | |
from numpy import asarray, add, rollaxis, sort, arange | |
def percentile(a, q, limit=None, interpolation='linear', axis=None, | |
out=None, overwrite_input=False): | |
""" | |
Compute the qth percentile of the data along the specified axis. | |
Returns the qth percentile of the array elements. |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Sat Feb 16 20:52:22 2013 | |
Author: Josef Perktold | |
""" | |
import numpy as np | |
from scipy import stats |