Save
...
ML
10. Linear Regression
10.22-23. L2 Ridge
Save
Share
Learn
Content
Leaderboard
Share
Learn
Created by
Дарья Чернова
Visit profile
Cards (12)
Ridge
-регрессия это
метод
регуляризации
, позволяющий снизить вероятность
переобучения
(overfitting) модели на
обучающем
наборе данных
Что делает
ridge?
добавляет штрафующее слагаемое к
ошибке
, с
квадратом значений коэффициентов
Формула
RSS
Σ
i
=
1
n
(
y
i
−
y
i
^
)
2
\Sigma_{i=1}^n (y_i - \hat{y_i})^2
Σ
i
=
1
n
(
y
i
−
y
i
^
)
2
RSS
это
residual sum of squares, сумма квадратов
остатков
Как выглядит параметр альфа в формуле?
λ
Σ
i
=
1
n
β
j
2
\lambda \Sigma_{i=1}^n \beta_j^2
λ
Σ
i
=
1
n
β
j
2
Для метрик кросс-валидация sklearn использует
объект
scorer
По какому
принципу
работает
scorer
?
бОльшие
результирующие значения лучше, чем
меньшие
Откуда импортируем
Ridge
?
sklearn.linear_model
Параметр
ridge
alpha
(он же лямбда из формулы
λ
Σ
i
=
1
n
β
j
2
\lambda \Sigma_{i=1}^n \beta_j^2
λ
Σ
i
=
1
n
β
j
2
)
Создать
ridge_model
ridge_model
=
Ridge
(
alpha
= 10)
Импорт
RidgeCV
откуда?
sklearn.linear_model
Откуда импортируем
SCORERS
?
sklearn.metrics
See similar decks
2.6 Linear Regression Models
AP Statistics > Unit 2: Exploring Two-Variable Data
64 cards
10.2.2 Normalization
AQA A-Level Computer Science > 10.0 Fundamentals of databases > 10.2 Relational databases
113 cards
3. Linear Programming
OCR A-Level Further Mathematics > Optional Papers > Discrete Mathematics
71 cards
2.2 Regression and Correlation
OCR A-Level Further Mathematics > Optional Papers > Statistics > 2. Statistical Inference
103 cards
3.2 Depression
Edexcel GCSE Psychology > Topic 3: Psychological Problems – How would psychological problems affect you?
67 cards
3.2 Depression
OCR GCSE Psychology > Unit 3: Psychological Problems
58 cards
4.1 Linear Momentum
AP Physics C: Mechanics > Unit 4: Linear Momentum
26 cards
4.3 Correlation and Regression
AQA A-Level Further Mathematics > Optional Application 2 – Statistics
179 cards
10.2 Installation Art
AP Art History > Unit 10: Global Contemporary, 1980 CE to Present
149 cards
10.2 Diagnostic ultrasound
2024-25 AQA A-Level Physics > 10. Medical physics (Optional)
82 cards
Unit 4: Linear Momentum
AP Physics 1
161 cards
2.4.2 Depression
AQA GCSE Psychology > Unit 2: Social Context and Behaviour > 2.4 Psychological Problems
82 cards
10.2 Diagnostic ultrasound
AQA A-Level Physics > 10. Medical physics (Optional)
47 cards
10.2 Listening Comprehension Strategies
OCR A-Level French > Exam Preparation
40 cards
2.8 Least Squares Regression
AP Statistics > Unit 2: Exploring Two-Variable Data
35 cards
3.2 Depression
Edexcel GCSE Psychology > Topic 3: Psychological Problems – How would psychological problems affect you?
67 cards
10.2 Relational databases
AQA A-Level Computer Science > 10.0 Fundamentals of databases
143 cards
4.3 Conservation of Linear Momentum
AP Physics C: Mechanics > Unit 4: Linear Momentum
121 cards
10.2 Listening Comprehension Strategies
OCR A-Level French > Exam Preparation
96 cards
10.2 Recursive Data Structures
AP Computer Science A > Unit 10: Recursion
77 cards
10.2 Le Chatelier's Principle
Edexcel A-Level Chemistry > Topic 10: Equilibrium I
26 cards