Machine Learning
41K subscribers
3.67K photos
34 videos
48 files
697 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
πŸ‘10
Media is too big
VIEW IN TELEGRAM
πŸ”₯ MIT has updated its famous course 6.S191: Introduction to Deep Learning.

The program covers topics of #NLP, #CV, #LLM and the use of technology in medicine, offering a full cycle of training - from theory to practical classes using current versions of libraries.

The course is designed even for beginners: if you know how to take derivatives and multiply matrices, everything else will be explained in the process.

The lectures are released for free on YouTube and the #MIT platform on Mondays, with the first one already available

.

All slides, #code and additional materials can be found at the link provided.

πŸ“Œ Fresh lecture : https://youtu.be/alfdI7S6wCY?si=6682DD2LlFwmghew

#DataAnalytics #Python #SQL #RProgramming #DataScience #MachineLearning #DeepLearning #Statistics #DataVisualization #PowerBI #Tableau #LinearRegression #Probability #DataWrangling #Excel #AI #ArtificialIntelligence #BigData #DataAnalysis #NeuralNetworks #GAN #LearnDataScience #LLM #RAG #Mathematics #PythonProgramming  #Keras

https://xn--r1a.website/CodeProgrammer βœ…
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘10
πŸš€ Master the Transformer Architecture with PyTorch! 🧠

Dive deep into the world of Transformers with this comprehensive PyTorch implementation guide. Whether you're a seasoned ML engineer or just starting out, this resource breaks down the complexities of the Transformer model, inspired by the groundbreaking paper "Attention Is All You Need".

πŸ”— Check it out here:
https://www.k-a.in/pyt-transformer.html

This guide offers:

🌟 Detailed explanations of each component of the Transformer architecture.

🌟 Step-by-step code implementations in PyTorch.

🌟 Insights into the self-attention mechanism and positional encoding.

By following along, you'll gain a solid understanding of how Transformers work and how to implement them from scratch.

#MachineLearning #DeepLearning #PyTorch #Transformer #AI #NLP #AttentionIsAllYouNeed #Coding #DataScience #NeuralNetworks
ο»Ώ

πŸ’― BEST DATA SCIENCE CHANNELS ON TELEGRAM 🌟

πŸ§ πŸ’»πŸ“Š
Please open Telegram to view this post
VIEW IN TELEGRAM
πŸ‘3πŸ”₯1
Full PyTorch Implementation of Transformer-XL

If you're looking to understand and experiment with Transformer-XL using PyTorch, this resource provides a clean and complete implementation. Transformer-XL is a powerful model that extends the Transformer architecture with recurrence, enabling learning dependencies beyond fixed-length segments.

The implementation is ideal for researchers, students, and developers aiming to dive deeper into advanced language modeling techniques.

Explore the code and start building:
https://www.k-a.in/pyt-transformerXL.html

#TransformerXL #PyTorch #DeepLearning #NLP #LanguageModeling #AI #MachineLearning #OpenSource #ResearchTools

https://xn--r1a.website/CodeProgrammer
πŸ‘3
This media is not supported in your browser
VIEW IN TELEGRAM
A new interactive sentiment visualization project has been developed, featuring a dynamic smiley face that reflects sentiment analysis results in real time. Using a natural language processing model, the system evaluates input text and adjusts the smiley face expression accordingly:

πŸ™‚ Positive sentiment

☹️ Negative sentiment

The visualization offers an intuitive and engaging way to observe sentiment dynamics as they happen.

πŸ”— GitHub: https://lnkd.in/e_gk3hfe
πŸ“° Article: https://lnkd.in/e_baNJd2

#AI #SentimentAnalysis #DataVisualization #InteractiveDesign #NLP #MachineLearning #Python #GitHubProjects #TowardsDataScience

πŸ”— Our Telegram channels: https://xn--r1a.website/addlist/0f6vfFbEMdAwODBk

πŸ“± Our WhatsApp channel: https://whatsapp.com/channel/0029VaC7Weq29753hpcggW2A
Please open Telegram to view this post
VIEW IN TELEGRAM
❀3πŸ‘1
Topic: RNN (Recurrent Neural Networks) – Part 1 of 4: Introduction and Core Concepts

---

1. What is an RNN?

β€’ A Recurrent Neural Network (RNN) is a type of neural network designed to process sequential data, such as time series, text, or speech.

β€’ Unlike feedforward networks, RNNs maintain a memory of previous inputs using hidden states, which makes them powerful for tasks with temporal dependencies.

---

2. How RNNs Work

β€’ RNNs process one element of the sequence at a time while maintaining an internal hidden state.

β€’ The hidden state is updated at each time step and used along with the current input to predict the next output.

$$
h_t = \tanh(W_h h_{t-1} + W_x x_t + b)
$$

Where:

β€’ $x_t$ = input at time step t
β€’ $h_t$ = hidden state at time t
β€’ $W_h, W_x$ = weight matrices
β€’ $b$ = bias

---

3. Applications of RNNs

β€’ Text classification
β€’ Language modeling
β€’ Sentiment analysis
β€’ Time-series prediction
β€’ Speech recognition
β€’ Machine translation

---

4. Basic RNN Architecture

β€’ Input layer: Sequence of data (e.g., words or time points)

β€’ Recurrent layer: Applies the same weights across all time steps

β€’ Output layer: Generates prediction (either per time step or overall)

---

5. Simple RNN Example in PyTorch

import torch
import torch.nn as nn

class BasicRNN(nn.Module):
def __init__(self, input_size, hidden_size, output_size):
super(BasicRNN, self).__init__()
self.rnn = nn.RNN(input_size, hidden_size, batch_first=True)
self.fc = nn.Linear(hidden_size, output_size)

def forward(self, x):
out, _ = self.rnn(x) # out: [batch, seq_len, hidden]
out = self.fc(out[:, -1, :]) # Take the output from last time step
return out


---

6. Summary

β€’ RNNs are effective for sequential data due to their internal memory.

β€’ Unlike CNNs or FFNs, RNNs take time dependency into account.

β€’ PyTorch offers built-in RNN modules for easy implementation.

---

Exercise

β€’ Build an RNN to predict the next character in a short string of text (e.g., β€œhello”).

---

#RNN #DeepLearning #SequentialData #TimeSeries #NLP

https://xn--r1a.website/DataScienceM
❀7
Topic: RNN (Recurrent Neural Networks) – Part 2 of 4: Types of RNNs and Architectural Variants

---

1. Vanilla RNN – Limitations

β€’ Standard (vanilla) RNNs suffer from vanishing gradients and short-term memory.

β€’ As sequences get longer, it becomes difficult for the model to retain long-term dependencies.

---

2. Types of RNN Architectures

β€’ One-to-One
Example: Image Classification
A single input and a single output.

β€’ One-to-Many
Example: Image Captioning
A single input leads to a sequence of outputs.

β€’ Many-to-One
Example: Sentiment Analysis
A sequence of inputs gives one output (e.g., sentiment score).

β€’ Many-to-Many
Example: Machine Translation
A sequence of inputs maps to a sequence of outputs.

---

3. Bidirectional RNNs (BiRNNs)

β€’ Process the input sequence in both forward and backward directions.

β€’ Allow the model to understand context from both past and future.

nn.RNN(input_size, hidden_size, bidirectional=True)


---

4. Deep RNNs (Stacked RNNs)

β€’ Multiple RNN layers stacked on top of each other.

β€’ Capture more complex temporal patterns.

nn.RNN(input_size, hidden_size, num_layers=2)


---

5. RNN with Different Output Strategies

β€’ Last Hidden State Only:
Use the final output for classification/regression.

β€’ All Hidden States:
Use all time-step outputs, useful in sequence-to-sequence models.

---

6. Example: Many-to-One RNN in PyTorch

import torch.nn as nn

class SentimentRNN(nn.Module):
def __init__(self, input_size, hidden_size, output_size):
super(SentimentRNN, self).__init__()
self.rnn = nn.RNN(input_size, hidden_size, num_layers=1, batch_first=True)
self.fc = nn.Linear(hidden_size, output_size)

def forward(self, x):
out, _ = self.rnn(x)
final_out = out[:, -1, :] # Get the last time-step output
return self.fc(final_out)


---

7. Summary

β€’ RNNs can be adapted for different tasks: one-to-many, many-to-one, etc.

β€’ Bidirectional and stacked RNNs enhance performance by capturing richer patterns.

β€’ It's important to choose the right architecture based on the sequence problem.

---

Exercise

β€’ Modify the RNN model to use bidirectional layers and evaluate its performance on a text classification dataset.

---

#RNN #BidirectionalRNN #DeepLearning #TimeSeries #NLP

https://xn--r1a.website/DataScienceM
πŸ”₯2❀1