<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kaviya Satheeshkumar</title>
    <description>The latest articles on DEV Community by Kaviya Satheeshkumar (@kaavii).</description>
    <link>https://dev.to/kaavii</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4200192%2F1ae15d16-f469-4963-9223-8f8c656cac81.png</url>
      <title>DEV Community: Kaviya Satheeshkumar</title>
      <link>https://dev.to/kaavii</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kaavii"/>
    <language>en</language>
    <item>
      <title>The Python ML Cheat Sheet Repo You'll Actually Use</title>
      <dc:creator>Kaviya Satheeshkumar</dc:creator>
      <pubDate>Thu, 22 Oct 2026 10:06:47 +0000</pubDate>
      <link>https://dev.to/kaavii/the-python-ml-cheat-sheet-repo-youll-actually-use-335i</link>
      <guid>https://dev.to/kaavii/the-python-ml-cheat-sheet-repo-youll-actually-use-335i</guid>
      <description>&lt;p&gt;Every ML beginner hits the same wall: you know &lt;em&gt;what&lt;/em&gt; you want to do, but you can't remember the exact syntax.&lt;/p&gt;

&lt;p&gt;Is it &lt;code&gt;fit_transform&lt;/code&gt; or &lt;code&gt;transform&lt;/code&gt;? Which scaler do I use for outliers? How do I plot a confusion matrix again?&lt;/p&gt;

&lt;p&gt;I got tired of Googling the same things, so I built a repo that has all of it in one place.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔗 &lt;a href="https://github.com/Kavi274/python-ml-cheatsheets" rel="noopener noreferrer"&gt;github.com/Kavi274/python-ml-cheatsheets&lt;/a&gt;
&lt;/h2&gt;




&lt;h2&gt;
  
  
  What's Inside
&lt;/h2&gt;

&lt;p&gt;9 cheat sheets covering the full ML workflow:&lt;/p&gt;

&lt;h3&gt;
  
  
  1. NumPy
&lt;/h3&gt;

&lt;p&gt;Arrays, indexing, broadcasting, linear algebra — the foundation of everything.&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
python
a = np.array([[1, 2, 3], [4, 5, 6]])
a[a &amp;gt; 3]              # [4, 5, 6]
a.reshape(3, 2)
np.dot(A, B)          # matrix multiplication

2. Pandas

DataFrames, groupby, merge, datetime, string ops.

df.groupby("city").agg({"sales": "sum", "profit": "mean"})
df.isnull().sum()
pd.merge(df1, df2, on="id", how="left")

3. Scikit-learn

Every major model, pipelines, cross-validation, and hyperparameter tuning.

pipe = Pipeline([
    ("scaler", StandardScaler()),
    ("model", RandomForestClassifier())
])
pipe.fit(X_train, y_train)

4. Matplotlib &amp;amp; Seaborn

Every plot type with copy-paste code — histograms, heatmaps, ROC curves, feature importance.

sns.heatmap(df.corr(), annot=True, fmt=".2f", cmap="coolwarm")

5. Data Preprocessing

Missing values, scaling, encoding, class imbalance — the full cleaning pipeline.

num_pipeline = Pipeline([
    ("impute", SimpleImputer(strategy="median")),
    ("scale", StandardScaler())
])

6. Feature Engineering

Datetime features, target encoding, cyclical encoding, PCA, SHAP-based selection.

df["month_sin"] = np.sin(2 * np.pi * df["month"] / 12)
df["month_cos"] = np.cos(2 * np.pi * df["month"] / 12)

7. Model Evaluation

ROC, precision-recall curves, confusion matrix, optimal threshold, SHAP explainability, calibration.

fpr, tpr, _ = roc_curve(y_test, y_prob)
roc_auc = auc(fpr, tpr)

8. Deep Learning (Keras)

CNNs, RNNs, transfer learning, callbacks, tf.data pipelines.

base_model = keras.applications.EfficientNetB0(
    include_top=False, weights="imagenet"
)
base_model.trainable = False

9. Statistics for ML

Distributions, hypothesis tests, A/B testing, Bayes' theorem.

stat, p = stats.ttest_ind(group1, group2, equal_var=False)
print(f"p={p:.4f} — {'Significant' if p &amp;lt; 0.05 else 'Not significant'}")

---
How to Use It

No setup. No notebooks to run. Every cheat sheet is plain Markdown — just open it on GitHub and hit Ctrl+F.

Clone it locally if you want it offline:

git clone https://github.com/Kavi274/python-ml-cheatsheets.git

---
What's Next

Planning to add:
- PyTorch
- XGBoost / LightGBM
- Time Series (Prophet, statsmodels)
- HuggingFace Transformers

PRs are welcome — if you know a topic well, add a cheat sheet!

---
If this saves you even one Google search, consider leaving a ⭐  on GitHub — it helps others find it.

🔗 https://github.com/Kavi274/python-ml-cheatsheets
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>github</category>
      <category>machinelearning</category>
      <category>opensource</category>
      <category>python</category>
    </item>
  </channel>
</rss>
