Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

Machine-Learning-Collection

> 编程语言
Open source

A resource for learning about Machine learning & Deep Learning

8.5K stars0 likes0 views
WebsiteGitHub

About

A resource for learning about Machine learning & Deep Learning

-------------------------------------------------------------------------------- [](https://opensource.org/licenses/MIT) [logo]: https://github.com/AladdinPerzon/Machine-Learning-Collection/blob/master/ML/others/logo/youtube_logo.png # Machine Learning Collection In this repository you will find tutorials and projects related to Machine Learning. I try to make the code as clear as possible, and the goal is be to used as a learning resource and a way to lookup problems to solve specific problems. For most I have also done video explanations on YouTube if you want a walkthrough for the code. If you got any questions or suggestions for future videos I prefer if you ask it on [YouTube](https://www.youtube.com/c/AladdinPersson). This repository is contribution friendly, so if you feel you want to add something then I'd happily merge a PR :smiley: ## Table Of Contents - [Machine Learning Algorithms](#machine-learning) - [PyTorch Tutorials](#pytorch-tutorials) - [Basics](#basics) - [More Advanced](#more-advanced) - [Object Detection](#Object-Detection) - [Generative Adversarial Networks](#Generative-Adversarial-Networks) - [Architectures](#architectures) - [Lightning](#PyTorch-Lightning) - [TensorFlow Tutorials](#tensorflow-tutorials) - [Beginner Tutorials](#beginner-tutorials) - [Architectures](#CNN-Architectures) ## Machine Learning * [![Youtube Link][logo]](https://youtu.be/pCCUnoes1Po)   [Linear Regression](https://github.com/AladdinPersson/Machine-Learning-Collection/blob/master/ML/algorithms/linearregression/linear_regression_gradient_descent.py) **- With Gradient Descent** :white_check_mark: * [![Youtube Link][logo]](https://youtu.be/DQ6xfe75CDk)   [Linear Regression](https://github.com/AladdinPersson/Machine-Learning-Collection/blob/master/ML/algorithms/linearregression/linear_regression_normal_equation.py) **- With Normal Equation** :white_check_mark: * [![Youtube Link][logo]](https://youtu.be/x1ez9vi611I)   [Logistic Regression](https://github.com/AladdinPersson/Machine-Learning-Collection/blob/master/ML/algorithms/logisticregression/logistic_regression.py) * [![Youtube Link][logo]](https://youtu.be/3trW5Lig7BU)   [Naive Bayes](https://github.com/AladdinPersson/Machine-Learning-Collection/blob/master/ML/algorithms/naivebayes/naivebayes.py) **- Gaussian Naive Bayes** * [![Youtube Link][logo]](https://youtu.be/QzAaRuDskyc)   [K-nearest neighbors](https://github.com/AladdinPersson/Machine-Learning-Collection/blob/master/ML/algorithms/knn/knn.py) * [![Youtube Link][logo]](https://youtu.be/W4fSRHeafMo)   [K-means clustering](https://github.com/AladdinPersson/Machine-Learning-Collection/blob/master/ML/algorithms/kmeans/kmeansclustering.py) * [![Youtube Link][logo]](https://youtu.be/gBTtR0bs-1k)   [Support Vector Machine](https://github.com/AladdinPersson/Machine-Learning-Collection/blob/master/ML/algorithms/svm/svm.py) **- Using CVXOPT** * [![Youtube Link][logo]](https://youtu.be/NJvojeoTnNM)   [Neural Network](https://github.com/AladdinPersson/Machine-Learning-Collection/blob/master/ML/algorithms/neuralnetwork/NN.py) * [Decision Tree](https://github.com/AladdinPersson/Machine-Learning-Collection/blob/master/ML/algorithms/decisiontree/decision_tree.py) ## PyTorch Tutorials If you have any specific video suggestion please make a comment on YouTube :) ### Basics * [![Youtube Link][logo]](https://youtu.be/x9JiIFvlUwk)   [Tensor Basics](https://github.com/AladdinPersson/Machine-Learning-Collection/blob/master/ML/Pytorch/Basics/pytorch_tensorbasics.py) * [![Youtube Link][logo]](https://youtu.be/Jy4wM2X21u0)   [Feedforward Neural Network](https://github.com/aladdinpersson/Machine-Learning-Collection/blob/master/ML/Pytorch/Basics/pytorch_simple_fullynet.py) * [![Youtube Link][logo]](https://youtu.be/wnK3uWv_WkU)   [Convolutional Neural Network](https://github.com/aladdinpersson/Machine-Learning-Collection/blob/master/ML/Pytorch/Basics/pytorch_simple_CNN.py) * [![Youtube Link][logo]](https://youtu.be/Gl2WXLIMvKA)   [Recurrent Neural Network](https://github.com/aladdinpersson/Machine-Learning-Collection/blob/master/ML/Pytorch/Basics/pytorch_rnn_gru_lstm.py) * [![Youtube Link][logo]](https://youtu.be/jGst43P-TJA)   [Bidirectional Recurrent Neural Network](https://github.com/aladdinpersson/Machine-Learning-Collection/blob/master/ML/Pytorch/Basics/pytorch_bidirectional_lstm.py) * [![Youtube Link][logo]](https://youtu.be/g6kQl_EFn84)   [Loading and saving model](https://github.com/aladdinpersson/Machine-Learning-Collection/blob/master/ML/Pytorch/Basics/pytorch_loadsave.py) * [![Youtube Link][logo]](https://youtu.be/ZoZHd0Zm3RY)   [Custom Dataset (Images)](https://github.com/aladdinpersson/Machine-Learning-Collection/tree/master/ML/Pytorch/Basics/custom_dataset) * [![Youtube Link][logo]](https://youtu.be/9sHcLvVXsns)   [Custom Dataset (Text)](https://github.com/aladdinpersson/Machine-Learning-Collection/tree/master/ML/Pytorch/Basics/custom_dataset_txt) * [![Youtube Link][logo]](https://youtu.be/ks3oZ7Va8HU)   [Mixed Precision Training](https://github.com/aladdinpersson/Machine-Learning-Collection/blob/master/ML/Pytorch/Basics/pytorch_mixed_precision_example.py) * [![Youtube Link][logo]](https://youtu.be/4JFVhJyTZ44)   [Imbalanced dataset](https://github.com/aladdinpersson/Machine-Learning-Collection/tree/master/ML/Pytorch/Basics/Imbalanced_classes) * [![Youtube Link][logo]](https://youtu.be/qaDe0qQZ5AQ)   [Transfer Learning and finetuning](https://github.com/aladdinpersson/Machine-Learning-Collection/blob/master/ML/Pytorch/Basics/pytorch_pretrain_finetune.py) * [![Youtube Link][logo]](https://youtu.be/Zvd276j9sZ8)   [Data augmentation using Torchvision](https://github.com/aladdinpersson/Machine-Learning-Collection/blob/master/ML/Pytorch/Basics/pytorch_transforms.py) * [![Youtube Link][logo]](https://youtu.be/rAdLwKJBvPM)   [Data augmentation using Albumentations](https://github.com/aladdinpersson/Machine-Learning-Collection/tree/master/ML/Pytorch/Basics/albumentations_tutorial) * [![Youtube Link][logo]](https://youtu.be/RLqsxWaQdHE)   [TensorBoard Example](https://github.com/aladdinpersson/Machine-Learning-Collection/blob/master/ML/Pytorch/Basics/pytorch_tensorboard_.py) * [![Youtube Link][logo]](https://youtu.be/y6IEcEBRZks)   [Calculate Mean and STD of Images](https://github.com/aladdinpersson/Machine-Learning-Collection/blob/master/ML/Pytorch/Basics/pytorch_std_mean.py) * [![Youtube Link][logo]](https://youtu.be/RKHopFfbPao)   [Simple Progress bar](https://github.com/aladdinpersson/Machine-Learning-Collection/blob/master/ML/Pytorch/Basics/pytorch_progress_bar.py) * [![Youtube Link][logo]](https://youtu.be/1SZocGaCAr8)   [Deterministic Behavior](https://github.com/aladdinpersson/Machine-Learning-Collection/blob/master/ML/Pytorch/Basics/set_deterministic_behavior/pytorch_set_seeds.py) * [![Youtube Link][logo]](https://youtu.be/P31hB37g4Ak)   [Learning Rate Scheduler](https://github.com/aladdinpersson/Machine-Learning-Collection/blob/master/ML/Pytorch/Basics/pytorch_lr_ratescheduler.py) * [![Youtube Link][logo]](https://youtu.be/xWQ-p_o0Uik)   [Initialization of weights](https://github.com/aladdinpersson/Machine-Learning-Collection/blob/master/ML/Pytorch/Basics/pytorch_init_weights.py) ### More Advanced * [![Youtube Link][logo]](https://youtu.be/WujVlF_6h5A)   [Text Generating LSTM](https://github.com/AladdinPersson/Machine-Learning-Collection/blob/master/ML/Projects/text_generation_babynames/generating_names.py) * [![Youtube Link][logo]](https://youtu.be/IHq1t7NxS8k)   [Semantic Segmentation w. U-NET](https://github.com/aladdinpersson/Machine-Learning-Collection/tree/master/ML/Pytorch/image_segmentation/semantic_segmentation_unet) * [![Youtube Link][logo]](https://youtu.be/y2BaTt1fxJU)   [Image Captioning](https://github.com/AladdinPerzon/Machine-Learning-Collection/tree/master/ML/Pytorch/more_advanced/image_captioning) * [![Youtube Link][logo]](https://youtu.be/imX4kSKDY7s)   [Neural Style Transfer](https://github.com/AladdinPerzon/Machine-Learning-Collection/blob/master/ML/Pytorch/more_advanced/neuralstyle/nst.py) * [![Youtube Link][logo]](https://www.youtube.com/playlist?list=PLhhyoLH6IjfzxdlsLrclcCTsS8kIcfWJb)   [Torchtext [1]](https://github.com/AladdinPerzon/Machine-Learning-Collection/blob/master/ML/Pytorch/more_advanced/torchtext/torchtext_tutorial1.py) [Torchtext [2]](https://github.com/AladdinPerzon/Machine-Learning-Collection/blob/master/ML/Pytorch/more_advanced/torchtext/torchtext_tutorial2.py) [Torchtext [3]](https://github.com/AladdinPerzon/Machine-Learning-Collection/blob/master/ML/Pytorch/more_advanced/torchtext/torchtext_tutorial3.py) * [![Youtube Link][logo]](https://youtu.be/EoGUlvhRYpk)   [Seq2Seq](https://github.com/AladdinPerzon/Machine-Learning-Collection/blob/master/ML/Pytorch/more_advanced/Seq2Seq/seq2seq.py) **- Sequence to Sequence (LSTM)** * [![Youtube Link][logo]](https://youtu.be/sQUqQddQtB4)   [Seq2Seq + Attention](https://github.com/AladdinPerzon/Machine-Learning-Collection/blob/master/ML/Pytorch/more_advanced/Seq2Seq_attention/seq2seq_attention.py) **- Sequence to Sequence with Attention (LSTM)** * [![Youtube Link][logo]](https://youtu.be/M6adRGJe5cQ)   [Seq2Seq Transformers](https://github.com/AladdinPerzon/Machine-Learning-Collection/blob/master/ML/Pytorch/more_advanced/seq2seq_transformer/seq2seq_transformer.py) **- Sequence to Sequence with Transformers** * [![Youtube Link][logo]](https://youtu.be/U0s0f995w14)   [Transformers from scratch](https://github.com/AladdinPerzon/Machine-Learning-Collection/blob/master/ML/Pytorch/more_advanced/transformer_from_scratch/transformer_from_scratch.py) **- Attention Is All You Need** ### Object Detection [Object Detection Playlist](https://youtube.com/playlist?list=PLhhyoLH6Ijfw0TpCTVTNk42NN08H6UvNq) * [![Youtube Link][logo]](https://youtu.be/XXYG5ZWtjj0)   [Intersection over Union](https://github.com/aladdinpersson/Machine-Learning-Collection/blob/master/ML/Pytorch/object_detection/metrics/iou.py) * [![Youtube Link][logo]](https://youtu.be/YDkjWEN8jNA)   [Non-Max Suppression](https://github.com/aladdinpersson/Machine-Learning-Collection/blob/master/ML/Pytorch/object_detection/metrics/nms.py) * [![Youtube Link][logo]](https://youtu.be/FppOzcDvaDI)   [Mean Average Precision](https://github.com/aladdinpersson/Machine-Learning-Collection/blob/master/ML/Pytorch/object_detection/metrics/mean_avg_precision.py) * [![Youtube Link][logo]](https://youtu.be/n9_XyCGr-MI)   [YOLOv1 from scratch](https://github.com/aladdinpersson/Machine-Learning-Collection/blob/master/ML/Pytorch/object_detection/YOLO) * [![Youtube Link][logo]](https://youtu.be/Grir6TZbc1M)   [YOLOv3 from scratch](https://github.com/aladdinpersson/Machine-Learning-Collection/tree/master/ML/Pytorch/object_detection/YOLOv3) ### Generative Adversarial Networks [GAN Playlist](https://youtube.com/playlist?list=PLhhyoLH6IjfwIp8bZnzX8QR30TRcHO8Va) * [![Youtube Link][logo]](https://youtu.be/OljTVUVzPpM)   [Simple FC GAN](https://github.com/aladdinpersson/Machine-Learning-Collection/blob/master/ML/Pytorch/GANs/1.%20SimpleGAN/fc_gan.py) * [![Youtube Link][logo]](https://youtu.be/IZtv9s_Wx9I)   [DCGAN](https://github.com/aladdinpersson/Machine-Learning-Collection/tree/master/ML/Pytorch/GANs/2.%20DCGAN) * [![Youtube Link][logo]](https://youtu.be/pG0QZ7OddX4)   [WGAN](https://github.com/aladdinpersson/Machine-Learning-Collection/tree/master/ML/Pytorch/GANs/3.%20WGAN) * [![Youtube Link][logo]](https://youtu.be/pG0QZ7OddX4)   [WGAN-GP](https://github.com/aladdinpersson/Machine-Learning-Collection/tree/master/ML/Pytorch/GANs/4.%20WGAN-GP) * [![Youtube Link][logo]](https://youtu.be/SuddDSqGRzg)   [Pix2Pix](https://github.com/aladdinpersson/Machine-Learning-Collection/tree/master/ML/Pytorch/GANs/Pix2Pix)

Issues· 118 open

View all issuesOpen on GitHub
  • #197

    EfficientNet MBBlock Expansion Error

    Updated Jan 29, 2026
  • #194

    voc_label.py cannot download

    Updated Aug 7, 2025
  • #140

    YOLO ground truth width and length are not relative to image size but to S

    Updated Aug 7, 2025
  • #191

    Incorrect implementation of get_evaluation_bboxes leads to misleadingly high mAP

    Updated Apr 20, 2025
  • #134

    warning: Embedding dir exists, did you set global_step for add_embedding()?

    Updated Jan 28, 2025
  • #188

    Better set shuffle=False for the test_loader

    Updated Dec 10, 2024
  • #187

    No requirements.txt file found in Yolov3 directory

    Updated Oct 14, 2024
  • #185

    YOLOv3 detect function

    Updated Sep 28, 2024
  • #178

    learning rate is no more lr but learnig_rate

    Updated Aug 17, 2024
  • #177

    keras input shape is now an iterate object

    Updated Jun 27, 2024

> Tags

Pythonmachine-learningmachine-learning-algorithmspytorchpytorch-examples

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言