Machine Learning
41.7K subscribers
3.71K photos
37 videos
50 files
744 links
Real Machine Learning — simple, practical, and built on experience.
Learn step by step with clear explanations and working code.

Admin: @HusseinSheikho || @Hussein_Sheikho
Download Telegram
Normalization vs Standardization 📊
Why they are not the same.

One page: the two formulas side by side, two columns from the same table on incompatible scales, the same 400 values shown raw / min-max / standardized so you can see only the location and scale move while the skew stays, a worked example on five numbers, and a "which one, when" guide.

The bottom line: ask what the next step assumes — a fixed interval means normalize, mean 0 and sd 1 means standardize, and if the model splits on ordering, neither.

#DataScience #MachineLearning #Statistics #Normalization #Standardization #DataPreprocessing

✨ Join Best TG Channels https://xn--r1a.website/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
❤2
📚 "Fundamentals of Computer Vision" is a free online book published by MIT Press, providing a broad introduction to computer vision from the perspectives of image processing and machine learning.

🔍 It covers topics such as image formation, training and backpropagation, image filtering and Fourier analysis, CNNs, RNNs, and transformers, generative models, representation learning, 3D geometry, motion estimation, object recognition, models that work with images and text, and much more.

💡 I particularly appreciate that the entire book is available directly in HTML, with a clear and user-friendly layout, and numerous diagrams and visualizations that help to understand the concepts.

🔗 https://visionbook.mit.edu/

#ComputerVision #MachineLearning #AI #TechBooks #MITPress #Education

✨ Join Best TG Channels https://xn--r1a.website/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
❤7
Tracking experiments and versioning ML models with MLflow. 🤖

Machine learning development requires saving hyperparameters, metrics, and artifacts for each run to compare results. The MLflow platform logs key metrics and registers trained models in a central registry. We will install MLflow, run a script to log parameters, and register the model.

Let's install the
mlflow
and
scikit-learn
libraries to conduct and log a test experiment. 📦

pip install mlflow scikit-learn

The dependencies for managing ML experiments have been successfully installed. ✅

Now, let's create a Python script called
train.py
that will train a simple model, log metrics, and save it to MLflow. 🐍

import mlflow
from sklearn.ensemble import RandomForestClassifier

mlflow.set_experiment("demo_experiment")
with mlflow.start_run():
params = {"n_estimators": 100, "max_depth": 5}
mlflow.log_params(params)
model = RandomForestClassifier(**params)
mlflow.log_metric("accuracy", 0.95)
mlflow.sklearn.log_model(model, "rf_model")

The training script and metric logging are set up and ready to be executed. 🚀

Let's run the training script to capture the results and parameters in the local MLflow storage.

python3 train.py

The experiment has been successfully completed, and the parameters and model artifacts have been saved. 📊

# verification (check for registered runs in MLflow)
mlflow runs list --experiment-name demo_experiment

Expected output:
demo_experiment ... FINISHED


# cleanup (remove the generated directory with artifacts and the script)
rm -rf mlruns train.py

Using MLflow helps avoid chaos when tuning hyperparameters and ensures reproducibility of results. Deploy an MLflow server on a separate host for the entire team to collaborate on the project. 🌐

#MLflow #MachineLearning #Python #DataScience #MLOps #AI

✨ Join Best TG Channels https://xn--r1a.website/addlist/0f6vfFbEMdAwODBk

⭐️ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
❤3👍1💩1