-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathguide.txt
More file actions
164 lines (108 loc) · 3.35 KB
/
guide.txt
File metadata and controls
164 lines (108 loc) · 3.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
when get data DO THE FOLLOWING THINGS ::
check missing values
check duplicate values
data look mathematically {describe fn } :: helps to detect outliers , only works for numerical col
correlation b/w cols :: helps to remove unrelated col
FINAL TEXT :
----------------------------------------------------------------------------------------
r2 score not applied in classification tasks but used for regression tasks
low bias + high variance models
----------------------------------------------------------------------------------------
General Understanding
1) To reduce overfitting :
- bagging - boosting - regularization
2)feature extraction :
- PCA - LDA(Linear Discriminant Analysis) - T-sne
Charts :
Univariate :
countplot
pieChart
histogram
distplot
boxplot
bubble charts
Bivariate :
scatterplot
BarPlot
Line plot
pair plot
HeatMap
Cluster Map
JointPlot
Multivariate:
3d scatter plot
facetgrids
Pair plots
=> REGRESSION :
Simple Lr : DIRECT FORMULA / Grdaient descent
multiple LR
Polynomial
=> UNSUPERVISED LEARNING :
K means clustering
agglomerative clustering
DBSCAN
FEATURE_ENGINEERING
FEATURE SCALING :
standardization : [ StandardScaler ]
Normalization : [ MinMaxSCaler,Mean Normalization , MaxAbsScaling , RobustScaler]
Encoding data :
Label Encoder
Ordinal Encoder
One hot encoding
pandas dummies
workflow transformations :
ColumnTransformer
Pipeline
Hyperparamter tuning :
Cross Val Score || K-fold
Grid Search CV
Missing Values :
drop them
Simple Imputer
KNN imputer
Missing Indicator
Iterative Imputer
Numerical COLS : [by mean, by median, random,end of distribution]
Categorical COLS : [mode :most frequent , new category : missing]
Gradient Descent - batch , Stochastic , mini-batch GD
PCA 🟢
LINEAR REGRESSION 🟢
-REGULARIZARION: 🟢
|| RIDGE
|| LASSO
|| ELASTIC NET
GRADIENT DESCENT: 🟢
|| MINI BATCH
|| SGD
|| BATCH
LOGISTIC 🟢
DECISION TREES 🟢
VOTING ENSEMBLE 🟢
BAGGING 🟢
RANDOM FOREST 🟢
-BOOSTING:
|| ADABOOST 🟢
|| GRADIENT BOOSTING
|| XGBOOST
STACKING 🟢
KNEIGHBORS 🟢
SVM
K-MEANS 🟢
AGGLOMERATIVE 🟢
DBSCAN 🟢
NAIVE BAYES(+GNB) 🟢
SMOTE 🟢
OPTUNA 🟢
ROC curve 🟢
SVM :
- constraint optimization {convex analysis and optimization theory || lagranges's multipliers || quadratic programming}
- why ||w|| == ||w||^2/2=> just to make it differentiable
- 1/||w|| comes from
stats , vo anova and chi square chod diya hain
Ml : GRADIENT BOOSTING and XGBOOST {superb algo just baad me } {much to explore and experiement} {only campusx videos}{ref}
: SVM {learn constraint optimization theory & lagranges multipliers } + {saved articles and videos}
some other techniques :
=> df.isnull().mean() * 100 => gives the percentage of missing data directly
=> df.dropna().sample() => gives a sample from dataset after dropping null values
=> np.mean(cross_val_score(mode,x,y,cv,scoring="accuracy")) => gives the final acc by fitting to the model "cv" times
=> data[col].skew() => if ~0 then data is normally dist else >0 right skewed <0 left skewed , right skewed => outliers on right side