Skip to content

Instantly share code, notes, and snippets.

@jaquesgrobler
jaquesgrobler / sklearn_param_attrib.py
Created October 29, 2012 12:43
Lists of parameter/attribute frequency and where they are used for sklearn. The script that generates this is attached at the bottom - NOTE: the script is still very messy and dogmatic due to debugging and borrowing lots a data create code from tests. I'm
from __future__ import print_function
import warnings
import numpy as np
import sklearn
from sklearn.utils.testing import all_estimators
from sklearn.utils.testing import assert_greater
from sklearn.base import clone, ClassifierMixin, RegressorMixin, \
TransformerMixin, ClusterMixin
import numpy as np
import warnings
from scipy import linalg
from sklearn.utils import check_random_state
from sklearn.utils.extmath import logsumexp
def sigmoid(value) :
a = np.exp(value)
@jaquesgrobler
jaquesgrobler / scale_c_ridge.py
Created May 2, 2012 14:46
Ridge regression scaled
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
=========================================================
Title
=========================================================
Description
"""
@jaquesgrobler
jaquesgrobler / scale_c.py
Created April 23, 2012 12:37
scale_C compare
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
=========================================================
Title
=========================================================
Description
"""
@jaquesgrobler
jaquesgrobler / nngarotte.py
Created April 13, 2012 13:40 — forked from agramfort/nngarotte.py
Non Negative Garotte
"""
Non-Negative Garotte implementation with the scikit-learn
"""
# Author: Alexandre Gramfort <[email protected]>
# Jaques Grobler (__main__ script) <[email protected]>
#
# License: BSD Style.
import numpy as np