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
from scipy import stats | |
class GaussianKernelDensityEstimation(object): | |
"""docstring for GaussianKernelDensityEstimation""" | |
def __init__(self): | |
self.gkde = None | |
def fit(self, X): | |
"""docstring for fit""" | |
self.gkde = stats.gaussian_kde(X.T) |
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 -*- | |
"""scipy.stats.kruskal with random permutation p-values | |
Created on Thu Oct 06 16:52:14 2011 | |
Author: scipy developers, Christopher Kuster and edited by Josef Perktold | |
License: Scipy, BSD-3 | |
https://github.com/scipy/scipy/pull/87 | |
""" |
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
''' | |
Author: Adrien Gaidon | |
https://gist.github.com/1509853 | |
BSD on mailing list | |
Josef Perktold for numpy 1.5 compatibility | |
''' |
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 -*- | |
"""Partial Linear Model, with parametric nonlinear part | |
Created on Sat Feb 25 17:03:13 2012 | |
Author: Josef Perktold | |
License: BSD-3 (statsmodels) | |
warning: first draft, not much checked yet, | |
dangerous: example uses same variable names as class |
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 -*- | |
"""Checking numerical Accuracy in Linear Regression | |
Created on Sat Feb 25 20:36:50 2012 | |
Author: Josef Perktold | |
License: BSD-3 | |
""" |
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
''' | |
Author: Skipper | |
https://gist.github.com/2109628 | |
Josef: adjustments to example | |
''' | |
from statsmodels.base.model import LikelihoodModel |
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
#Copyright (c) 2011, Josh Hemann (hemann @ colorado . edu) | |
#All rights reserved. | |
# | |
#Redistribution and use in source and binary forms, with or without | |
#modification, are permitted provided that the following conditions are met: | |
# * Redistributions of source code must retain the above copyright | |
# notice, this list of conditions and the following disclaimer. | |
# * Redistributions in binary form must reproduce the above copyright | |
# notice, this list of conditions and the following disclaimer in the | |
# documentation and/or other materials provided with the distribution. |
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
#Copyright (c) 2011, Josh Hemann (hemann @ colorado . edu) | |
#All rights reserved. | |
# | |
#Redistribution and use in source and binary forms, with or without | |
#modification, are permitted provided that the following conditions are met: | |
# * Redistributions of source code must retain the above copyright | |
# notice, this list of conditions and the following disclaimer. | |
# * Redistributions in binary form must reproduce the above copyright | |
# notice, this list of conditions and the following disclaimer in the | |
# documentation and/or other materials provided with the distribution. |
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 |
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 Fri Jun 15 14:00:29 2012 | |
Author: Josef Perktold | |
License: MIT, BSD-3 (for statsmodels) | |
http://en.wikipedia.org/wiki/Distance_correlation | |
Yaroslav and Satrajit on sklearn mailing list |
OlderNewer