<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ahmed Elnazer on Medium]]></title>
        <description><![CDATA[Stories by Ahmed Elnazer on Medium]]></description>
        <link>https://medium.com/@ahmedelnazer109?source=rss-695cd734a59b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*UzumLLxBZrqh3EvBI7YD8w.jpeg</url>
            <title>Stories by Ahmed Elnazer on Medium</title>
            <link>https://medium.com/@ahmedelnazer109?source=rss-695cd734a59b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:59:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ahmedelnazer109/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[From Scalars to 5D Videos: A Beginner’s Guide to Tensors in Deep Learning]]></title>
            <link>https://medium.com/@ahmedelnazer109/from-scalars-to-5d-videos-a-beginners-guide-to-tensors-in-deep-learning-9d6341ef4b02?source=rss-695cd734a59b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d6341ef4b02</guid>
            <category><![CDATA[tensor]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Ahmed Elnazer]]></dc:creator>
            <pubDate>Thu, 02 Oct 2025 17:34:02 GMT</pubDate>
            <atom:updated>2025-10-10T23:43:33.881Z</atom:updated>
            <content:encoded><![CDATA[<p>Some people think artificial intelligence(AI) is just a bunch of nested if-else statements — like a computer saying, ‘if this, then that,’ over and over. They don’t believe AI can truly think. Some are joking, but others really believe this! If you’re one of them, this article will change your mind and give you a clear understanding of how AI works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*o4mvj3ZJQg2AUkKfy3UaPw.jpeg" /></figure><p>Neural networks are the brains behind many AI systems. They’ve achieved amazing things in AI, powering everything from simple systems like multilayer perceptrons(MLPs) to advanced ones like transformer-based models. So, what’s the big idea behind them, and how do they work? That’s what we’ll explore in this article!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UWO4OVvOCtqFDIFI.png" /><figcaption><a href="https://tikz.net/neural_networks/">Neural network example</a></figcaption></figure><p>You’ll learn about tensors — the building blocks of neural networks — what they look like, and how they’re used in deep learning with the help of linear algebra.</p><p>Get ready for an easy-to-follow journey into the world of AI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VtmlbQlzGsCE-gdL.png" /><figcaption><a href="https://www.analyticsvidhya.com/blog/2024/07/what-is-tensor/">https://www.analyticsvidhya.com/blog/2024/07/what-is-tensor/</a></figcaption></figure><h4>Tensors</h4><p>in the real-word data there is a many dimensions to deal with starting from 0 dimension(scaler) to N-dimensions and N could be any number .<br>In machine learning data is an essential part of work and we need something to deal with this data and their dimensions , and this is a job of tensor. <br>Tensor is multidimensional array used to store and do some operations on it.</p><p>Tensors is used in all modern machine learning algorithms particularly deep learning.</p><p>All tensors are immutable like Python numbers and strings: you can never update the contents of a tensor, only create a new one.</p><p>There is two main characteristics of tensor :<br>1- Dimensions(rank): the number of dimensions of tensor. <br>2- Uniform type : the type of data in tensor.<br>3- Shape : size of each dimension.</p><h4>Tensors examples.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mBS2a4FJL7jMoPTafoKcxA.png" /><figcaption><a href="https://towardsdatascience.com/what-is-a-tensor-in-deep-learning-6dedd95d6507/">https://towardsdatascience.com/what-is-a-tensor-in-deep-learning-6dedd95d6507/</a></figcaption></figure><ol><li><strong>scaler (0-dimensional tensor):<br></strong>A scaler is a single vale It has no dimensions, so its shape is an empty tuple ().<br><strong>Example</strong> : <em>5</em> is a scaler with data type integer , and the shape will be <strong>empty tuple ( )</strong>.</li><li><strong>vector (1-Dimensional tensor )</strong>:<br>A vector is an array of scalars ( elements ) with rank 1 , also called 1D tensor and the shape of it is (N, ) and N refers to number of elements. <br><strong>Example : </strong>[1,2,3,4] this is a 1-dimensional vector with <strong>shape (4, ).</strong></li><li><strong>Matrix (2-dimensional tensor ):<br></strong>Matrix is array of vectors with 2-dimensional tensor . Its shape is (M, N), where M is the number of rows and N is the number of columns.<br><strong>Example</strong>: A matrix like [[1, 2, 3], [4, 5, 6], [7, 8, 9]] has <strong>shape (3, 3).</strong></li><li>The higher dimension will be represented by an array of matrices.<br>Example of a 3-dimensional tensor:<br>[ [ [1, 2, 3], [4, 5, 6] ] ] with a shape of (1, 2, 3) (#1 array of matrices, 2 rows, 3 columns).If you find the last example confusing, that’s perfectly normal. It doesn’t mean anything significant if you don’t fully understand it yet.</li></ol><h4>Real-World Examples of Tensors :</h4><p>We previously defined tensors as multidimensional arrays used to store and perform operations on data.<br>Now that we understand tensors and their ranks, let’s explore how they appear in the real world. This will make the concept more relatable and help us visualize it better.</p><ol><li><strong>Vector data (Rank 2 or 2D tensor ): <br></strong>vector data in real-world has a <em>shape</em> <strong>(Samples , Features) , </strong>where is each sample is a vector of<strong> numerical</strong> attributes (Features).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/234/1*8M1MBljrT_GyrPknJ5Hpfg.png" /><figcaption>example for <strong>vector data</strong>.</figcaption></figure><p>Consider this image as an example of vector data, which has 3 rows and 3 columns (features).<br>Before passing this data to a machine learning model for training, we need to encode all string data into numerical data (e.g., “Sara” =&gt; 10), and then pass it to the model.</p><p>2. <strong>Time series data (Rank 3 or 3D tensor):<br></strong>Time series data in real-world has a <em>shape</em> <strong>(Samples , Time step , Features) , </strong>where is each sample is a rank 3 tensor and <strong>numerical</strong> attributes (Features).<br><strong>Example : </strong>Suppose we track solar energy consumption for 100 households (Samples). For each household, we measure energy consumption hourly over one day, giving us 24 time steps. Additionally, we record 2 features per hour: solar energy consumed (in kWh) and solar panel efficiency (%). This forms a rank-3 tensor with shape <strong>(100, 24, 2):</strong></p><ul><li><strong>100 Samples </strong>: One for each household.</li><li><strong>24 Time Steps</strong> : Hourly measurements over one day.</li><li><strong>2 Features</strong> : Energy consumption and panel efficiency.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/0*hrDZmHo8YCT5bjlY" /><figcaption><a href="https://statisticsbyjim.com/time-series/time-series-analysis-introduction/">example of time series data</a></figcaption></figure><p><strong>3. Image data (Rank 4 or 4D tensor ) :</strong></p><p>Image data in the real world is typically represented as a rank-4 tensor, but there are two common formats for the shape, depending on the machine learning framework used:</p><ul><li><strong>Channels-last format (Samples, Height, Width, Channels)</strong>: Commonly used in TensorFlow and sometimes PyTorch, where the color channels (e.g., RGB) are the last dimension.</li><li><strong>Channels-first format (Samples, Channels, Height, Width)</strong>: Used in PyTorch with torch.nn modules , where the color channels are placed before the spatial dimensions.</li></ul><p><strong>Example (Channels-last)</strong>: Consider a dataset of 1000 images of handwritten digits (like the MNIST dataset). Each image has a resolution of <strong>28x28 pixels</strong> and is in grayscale, so it has 1 channel. This forms a rank-4 tensor with shape <strong>(1000, 28, 28, 1) :</strong></p><ul><li>1000 Samples: One for each image.</li><li>28 Height, 28 Width: The pixel dimensions of each image.</li><li>1 Channel: Grayscale intensity (a value between 0 and 255).</li></ul><p><strong>Example (Channels-first)</strong>: The same dataset of 1000 grayscale images can be represented as a rank-4 tensor with shape <strong>(1000, 1, 28, 28)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/0*9F4VQ25s-F9b3mhu.png" /><figcaption><a href="https://livebook.manning.com/concept/deep-learning/shape">example of image representation</a></figcaption></figure><p>4. <strong>Video data (Rank 5 or 5D tensor):</strong></p><p>Video data in the real world has a shape (Samples, Frames, Height, Width, Channels), where each sample is a video, and each frame is an image (rank-3 tensor).<br>Example: Consider a dataset of 50 short video clips for action recognition (e.g., people walking or running). Each video has 30 frames (1 second at 30 fps), with each frame having a resolution of 64x64 pixels and 3 color channels (RGB). This forms a rank-5 tensor with shape (50, 30, 64, 64, 3).</p><p><strong>Example</strong>: Consider a dataset of 50 short video clips for action recognition (e.g., people walking or running). Each video has 30 frames (1 second at 30 fps), with each frame having a resolution of 64x64 pixels and 3 color channels (RGB). This forms a rank-5 tensor with shape <strong>(50, 30, 64, 64, 3)</strong> (channels-last):</p><ul><li><strong>50 Samples</strong>: One for each video clip.</li><li><strong>30 Frames</strong>: The number of frames in each video.</li><li><strong>64 Height, 64 Width</strong>: The pixel dimensions of each frame.</li><li><strong>3 Channels</strong>: RGB color values.<br>In channels-first format, the shape would be (50, 30, 3, 64, 64). Each video (a rank-4 tensor with shape (30, 64, 64, 3) in channels-last) is a sequence of frames, and neural networks like 3D CNNs or video transformers process this rank-5 tensor to classify actions or detect events in the video.</li></ul><p>This is the end of this article, and I hope you found it engaging and insightful! In the next article, we’ll dive deeper into tensor operations and explore what happens inside a neural network. Stay tuned!</p><p>I’d love to hear your thoughts — what was your favorite real-world tensor example, or do you have questions about neural networks? Drop a comment below or share your feedback with me. Your input will help shape the next deep dive!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d6341ef4b02" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Discover the Exciting Careers in Machine Learning You Should Know About.]]></title>
            <link>https://medium.com/@ahmedelnazer109/exciting-careers-in-machine-learning-you-must-know-each-of-them-9668170fc4c4?source=rss-695cd734a59b------2</link>
            <guid isPermaLink="false">https://medium.com/p/9668170fc4c4</guid>
            <category><![CDATA[ai-ml-career]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[mlcareer]]></category>
            <category><![CDATA[ai-career]]></category>
            <dc:creator><![CDATA[Ahmed Elnazer]]></dc:creator>
            <pubDate>Wed, 16 Jul 2025 22:50:53 GMT</pubDate>
            <atom:updated>2025-07-17T06:27:43.478Z</atom:updated>
            <content:encoded><![CDATA[<p>Machine learning is a subfield of AI responsible for enabling machines to learn and perform tasks that require human intelligence, such as predicting stock prices or classifying images. There are many careers dealing with machine learning. Let’s explore the differences between them and the skills needed to pursue these roles.</p><h3>Data scientist</h3><p>Data scientists analyze and interpret data to uncover important insights for business decisions. They focus on exploratory data analysis (EDA), statistical modeling, and building machine learning models to identify trends. They often collaborate with non-technical stakeholders.</p><h4>Responsibilities :</h4><ol><li>cleaning and preprocessing data for analysis</li><li>perform EDA to identify patterns, trends, and relationships in data.</li><li>Develop and apply statistical and machine learning models to solve business problems</li><li>Present insights and recommendations to stakeholders to inform strategic decisions.</li><li>Collaborate with data engineers and analysts to ensure data quality and accessibility</li></ol><h4>skills :</h4><ol><li>Proficiency in programming language such as Python or Java .</li><li>statistics, probability, linear algebra.</li><li>Knowledge of ML frameworks (e.g., Scikit-Learn, XGBoost) and techniques.</li><li>Data Visualization tools like Matplotlib, Seaborn, or Tableau.</li></ol><h4>Salary Range: $85,000–$186,000</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f4383tk52OkxcheYpzCOdw.png" /><figcaption><a href="https://www.geeksforgeeks.org/blogs/data-scientist-roadmap/">https://www.geeksforgeeks.org/blogs/data-scientist-roadmap/</a></figcaption></figure><h3>Machine learning Engineer</h3><p>Machine learning engineer serves as a link between data scientist and software engineer . focus on design , build ,and deploy machine learning model into production environment.</p><h4>Responsibilities :</h4><ol><li>work with Data scientist to Build and optimize ML models.</li><li>Work with software development team to Deploy models into production, ensuring scalability and performance.</li><li>Implement MLOps practices, to make model monitoring, testing, and maintenance easier .</li></ol><h4>skills:</h4><ol><li>Programming: Advanced proficiency in Python, Java, C++, or R, with a focus on software engineering principles</li><li>ML Frameworks: Expertise in TensorFlow, PyTorch, or Spark MLlib for building and deploying models.</li><li>MLOps: Knowledge of tools like Docker, Kubernetes, and TorchServe for model deployment and management.</li><li>Software Development: Experience with APIs, cloud platforms (AWS, Azure, GCP), and version control (Git).</li><li>Mathematics: Understanding of linear algebra, calculus, and optimization techniques</li></ol><h4>Salary Range: $109,000–$200,000+</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*Gmn6iewQSDZuMC42" /><figcaption><a href="https://x.com/atifaltaf313/status/1588394844413911040">https://x.com/atifaltaf313/status/1588394844413911040</a></figcaption></figure><h3>Machine learning Developer</h3><p>Machine Learning Developers are similar to ML Engineers but often focus on the software development aspects of ML systems.</p><h4>Responsibilities :</h4><ol><li>Optimize algorithms for performance in specific use cases (e.g., mobile apps, web platforms)</li><li>Develop APIs or tools to enable ML functionality in software products</li><li>Test and validate ML models for accuracy and efficiency</li><li>Collaborate with product teams to align ML solutions with user needs</li></ol><h4>skills :</h4><ol><li>Programming: Strong coding skills</li><li>Familiarity with Scikit-Learn, TensorFlow, or PyTorch to build ML models</li><li>Expertise in building software, APIs.</li><li>Understanding of software architecture to build right software.</li></ol><h4>Salary Range: $100,000–$180,000</h4><h3>Applied Science Researcher</h3><p>push the boundaries of ML by conducting research in areas like NLP, computer vision, or quantum to develop new algorithms, techniques, or models. They apply cutting-edge research to solve practical problems in industry, often in innovative or R&amp;D-focused settings.</p><h4>Responsibilities :</h4><ol><li>Conduct research to develop novel ML algorithms or improve existing ones.</li><li>Experiment with advanced techniques like deep learning, reinforcement learning, or generative AI.</li><li>Publish findings in academic journals or present at conferences</li><li>collaborate with machine learning engineers to apply research outcomes in real-word problem</li><li>Stay updated on the latest advancements in AI and ML to inform research direction</li></ol><p>skills:</p><ol><li>Advanced ML/DL: Deep expertise in deep learning, reinforcement learning, or generative AI</li><li>Research Methods: Proficiency in experimental design, hypothesis testing, and statistical analysis.</li><li>Ability to write research papers or technical report.</li></ol><h4>Salary Range: $100,000–$180,000</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9668170fc4c4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>