regression3 다항식 회귀 (Polynomial Regression)이란 다항식 회귀 (Polynomial Regression)이란 다항식 회귀 분석은 관계를 n차 다항식으로 추정하는 다중 선형 회귀 분석의 특수한 경우로 알려진 선형 회귀 분석의 한 형태입니다. 다항식 회귀 분석에서는 특이치에 민감하므로 하나 또는 두 개의 특이치가 있는 경우에도 성능에 좋지 않은 영향을 미칠 수 있습니다. Linear Regression 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 import numpy as np import matplotlib.pyplot as plt from sklearn.linear_model import LinearRegression X = np.random.rand(100, 1) y = 4 + 5 * X + np.random.randn(10.. 2022. 3. 19. Data Science Week 10 Data Science Week 10 Using continuous variable as input variable - Now we take a continuous variable "age" as predictor (input variable) to make prediction - To use 'age' variable for prediction, we convert it into range variable 'age_group', which contains under 20, 20s, 30s, 40s, 50s, over60 summary(adult$age) adult.train$age_group 2021. 5. 3. Data Science Week 09 Data Science Week 09 Memorization Method Classification and Regression Classification is a task that predicts discrete event (class) - is a e-mail spam or not (binary) - does a patient have breast cancer or not (binary) - predict letter grade a student expected to get for this class (multi-class, A, B, C, D, F) Regressoin is a task that predicts continuous value (score) - expected housing price .. 2021. 5. 3. 이전 1 다음