Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/a/s/astroML-0.2/astroML/linear_model/linear_regression.py   astroML(Download)
import numpy as np
from astroML.utils import combinations_with_replacement
 
 
class LinearRegression(object):
    def _process_X(self, X):
        X = np.asarray(X, dtype=float)
        X = np.hstack([np.ones((X.shape[0], 1)), X])
 
        ind = np.array(list(combinations_with_replacement(range(X.shape[1]),

src/a/s/astroML-HEAD/astroML/linear_model/linear_regression.py   astroML(Download)
import numpy as np
from astroML.utils import combinations_with_replacement
 
 
class LinearRegression(object):
    def _process_X(self, X):
        X = np.asarray(X, dtype=float)
        X = np.hstack([np.ones((X.shape[0], 1)), X])
 
        ind = np.array(list(combinations_with_replacement(range(X.shape[1]),