728x90
작업형 2
-
빅분기 작업형 2 모델링 - 회귀모델<자격증>/[빅데이터분석기사] 2021. 12. 3. 16:11
# 9. 회귀 모델 # 9-1. 선형 회귀(릿지/라쏘) from sklearn.linear_model import LinearRegression from sklearn.linear_model import Ridge from sklearn.linear_model import Lasso from sklearn.linear_model import ElasticNet model = ElasticNet() # 9-2. 결정나무 from sklearn.tree import DecisionTreeRegressor model = DecisionTreeRegressor(random_state=0) # 9-3. SVM from sklearn.svm import SVR model = SVR() # 9-4. 랜덤포레스트 fr..