vault backup: 2026-05-21 18:43:20
This commit is contained in:
1 parent
2a46175245
commit
53d29d0d1b
2 files changed
+20
-2
No files matched your search
Vendored
+1
-1
@@ -17,6 +17,6 @@
|
|||||||
"repelStrength": 10,
|
"repelStrength": 10,
|
||||||
"linkStrength": 1,
|
"linkStrength": 1,
|
||||||
"linkDistance": 250,
|
"linkDistance": 250,
|
||||||
"scale": 0.1719770322750558,
|
"scale": 0.18153036664097952,
|
||||||
"close": true
|
"close": true
|
||||||
}
|
}
|
||||||
@@ -12,5 +12,23 @@
|
|||||||
- Assumption is made with bootstrapping that the sample approximates the original population
|
- Assumption is made with bootstrapping that the sample approximates the original population
|
||||||
- bootstrap samples are used as training sets, OOB samples serve as testing sets
|
- bootstrap samples are used as training sets, OOB samples serve as testing sets
|
||||||
```python
|
```python
|
||||||
bootstrap_samples = [resample(df, replace=True, random_state=i) for i in range(5)]
|
bootstrap_samples = [
|
||||||
|
resample(df, replace=True, n_samples=n random_state=i) for i in range(5)
|
||||||
|
]
|
||||||
```
|
```
|
||||||
|
- gets a list of dataframes with sampled data
|
||||||
|
- ensemble models can often greatly improve performance
|
||||||
|
- decision trees are often used as bases
|
||||||
|
- can increase computational complexity
|
||||||
|
- parallel ensembles
|
||||||
|
- base models are trained independently
|
||||||
|
- training is faster
|
||||||
|
- sequential ensembles
|
||||||
|
- models trained iteratively, adjusting for previous errors
|
||||||
|
- bagging
|
||||||
|
- (bootstrap aggregation)
|
||||||
|
- create bootstrap sets, train weak models and then aggregate predictions to get more accurate prediction
|
||||||
|
- decision trees in bagging have low bias but high variance
|
||||||
|
- bagging reduces model variance, not data variance
|
||||||
|
- (how much does model change if data changes slightly)
|
||||||
|
-
|
||||||
Reference in new issue
Block a user