scikit-learn ridge1 Scikit-Learn(사이킷런) 코드 완벽 분석 - Linear Regression Ridge # Author: Fabian Pedregosa -- # License: BSD 3 clause 코드 소스와 저작권은 위와 같음을 밝힙니다 import numpy as np import matplotlib.pyplot as plt from sklearn import linear_model %matplotlib inline 필요한 모듈을 가져옵니다. # X is the 10x10 Hilbert matrix X = 1. / (np.arange(1, 11) + np.arange(0, 10)[:, np.newaxis]) y = np.ones(10) 힐버트 행렬을 만들어줍니다. 힐버트 행렬은 다음과 같습니다. $H_{ij} = \frac {1}{i + j - 1}$ np.arange(1, 11) np.arrang.. 2019. 10. 16. 이전 1 다음