<?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 Aditi Rastogi on Medium]]></title>
        <description><![CDATA[Stories by Aditi Rastogi on Medium]]></description>
        <link>https://medium.com/@aditi2507rastogi?source=rss-d3646482e5f1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*gCEDqhn81omVxNfZjFdqpQ.jpeg</url>
            <title>Stories by Aditi Rastogi on Medium</title>
            <link>https://medium.com/@aditi2507rastogi?source=rss-d3646482e5f1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 21:47:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aditi2507rastogi/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[Essential Statistics for Machine Learning: Elucidating the Esoteric Nexus of Quantitative…]]></title>
            <link>https://blog.devgenius.io/essential-statistics-for-machine-learning-elucidating-the-esoteric-nexus-of-quantitative-be89a9770282?source=rss-d3646482e5f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/be89a9770282</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Aditi Rastogi]]></dc:creator>
            <pubDate>Sun, 08 Jun 2025 18:41:14 GMT</pubDate>
            <atom:updated>2025-06-09T09:53:39.859Z</atom:updated>
            <content:encoded><![CDATA[<h3>Essential Statistics for Machine Learning: Elucidating the Esoteric Nexus of Quantitative Discernment in AI</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IFIxvN3r0WL1VAXFQTaRwg.jpeg" /></figure><p>In the rapidly evolving fields of artificial intelligence (AI) and machine learning (ML), the role of statistics is often overlooked, despite its fundamental importance. Statistics, with its intricate methodologies and principles, underpins every aspect of machine learning — from model training to evaluation. Without a strong foundation in statistical principles, one cannot truly discern the recondite complexities behind AI models. This article delves into essential statistical concepts with excruciating detail, elucidating their indispensable role in machine learning and the broader purview of technological advancement.</p><h3>The Pillars of Statistical Analysis</h3><h4><strong>Central Tendency: Mean, Median, and Mode</strong></h4><p><strong><em>Mean (Arithmetic Average) — </em></strong>The mean serves as a quintessential measure of central tendency, calculated by summing all values in a dataset and dividing by the count of observations. It is mathematically represented as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/132/1*aVoqpT1aIdEr18CmK9JEsQ.png" /></figure><p>This average holds profound significance in regression analysis, particularly in ordinary least squares (OLS) regression, where the objective is to minimize the residual sum of squares. The mean provides a focal point around which data can be analyzed, but it is essential to recognize its susceptibility to outliers, which can skew the average and lead to misleading interpretations.</p><p><strong><em>Median (The Central Value) — </em></strong>The median, representing the middle value of a dataset when arranged in ascending order, offers a more robust alternative in the presence of outliers or skewed distributions. Unlike the mean, the median is unaffected by extreme values, making it particularly advantageous in datasets where the presence of outliers may obscure the central tendency. It is mathematically represented as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*hX1RCL76oz8em3zDoHAMXA.png" /></figure><p>For example, in income data, where a small number of individuals may earn exorbitantly high salaries, the median provides a clearer picture of the typical income level, thereby enhancing the interpretability of the data.</p><p><strong><em>Mode (The Most Frequent Observation) — </em></strong>The mode, defined as the value that appears most frequently in a dataset, serves as an additional measure of central tendency. While often eclipsed by the mean and median, the mode finds its utility in categorical data analysis, particularly in classification problems where the predominant category needs to be identified.</p><h4><strong>Dispersion: Variance and Standard Deviation</strong></h4><p><strong><em>Variance (The Measure of Spread) — </em></strong>Variance quantifies the extent to which individual data points diverge from the mean, providing insight into the spread of the dataset. It is calculated as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*Qy89_AvttCP2tuQe5A1FFw.png" /></figure><p>A higher variance indicates greater dispersion among data points, while a lower variance suggests that the data points are clustered closely around the mean. In machine learning, variance is crucial for understanding model behavior — particularly in the context of overfitting, where high variance can lead models to perform exceptionally well on training data but poorly on unseen data.</p><p><strong><em>Standard Deviation (The Square Root of Variance) — </em></strong>Standard deviation, <strong><em>the square root of variance</em></strong>, serves as a more interpretable measure of dispersion, aligning it with the original data’s units. It provides a tangible metric for understanding variability within the dataset, which is essential for techniques such as feature scaling. In scenarios where features exhibit disparate ranges, standardization can enhance the convergence of gradient descent algorithms, facilitating more efficient training.</p><h3>Exploring Correlation and Covariance: The Interplay of Variables</h3><h4><strong><em>Covariance (Understanding Joint Variability)</em></strong></h4><p>Covariance measures the directional relationship between two variables. It indicates whether an increase in one variable corresponds to an increase or decrease in another variable. Mathematically, covariance is expressed as:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*QaxXD0au6LHFH1xSn81vkQ.png" /></figure><p>While covariance provides valuable information about the relationship between variables, its interpretation is complicated by its scale. A positive covariance indicates that as one variable increases, so does the other, while a negative covariance suggests an inverse relationship. However, the magnitude of covariance can be misleading, necessitating the need for standardised measures like correlation.</p><h4><strong><em>Correlation (The Dimensionless Metric)</em></strong></h4><p>Correlation, a standardised measure of the relationship between two variables, is represented by the <strong><em>Pearson correlation coefficient</em></strong>, denoted as r:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*n6jnejqMSpHKU6Rreg--2A.png" /></figure><p>The correlation coefficient ranges from -1 to 1, providing a clear interpretation of the strength and direction of the relationship. A value of 1 signifies a perfect positive linear relationship, -1 indicates a perfect negative relationship, and 0 denotes no correlation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ynud5xGf_wsC4GYak_ijlQ.png" /></figure><p>In the realm of machine learning, correlation plays a critical role in feature selection. Highly correlated features may lead to multicollinearity, which can confound the interpretability of regression coefficients. By identifying and addressing multicollinearity, practitioners can enhance model performance and robustness.</p><blockquote><strong>Covariance</strong> is <strong>scale-dependent</strong>. If you multiply one of the variables by a constant, the covariance value changes.</blockquote><blockquote><strong>Correlation</strong> is <strong>scale-independent</strong>. It normalizes the covariance by dividing by the product of the standard deviations, ensuring that the result is unaffected by the scale of the variables.</blockquote><h3>Probability and Distributions: The Foundation of Uncertainty</h3><h4><strong><em>Probability Theory: Modelling Uncertainty</em></strong></h4><p>Probability theory forms the bedrock of statistical analysis and is crucial for modelling uncertainty in machine learning. Fundamental concepts such as conditional probability <strong>P(A∣B)</strong> and joint probability <strong>P(A∩B)</strong> are central to the formulation of probabilistic models.</p><p>For instance, in Naive Bayes classifiers, the independence assumption allows for the simplification of joint probabilities, making it computationally tractable to classify data points based on learned distributions. Understanding probability distributions is paramount for selecting the appropriate model and ensuring its validity.</p><h4>Probability Distributions: The Mathematical Representation of Uncertainty</h4><p>Probability distributions elucidate how probabilities are distributed across potential outcomes. Various distributions are employed in machine learning, each with unique characteristics.</p><p><strong><em>Normal Distribution (The Gaussian Bell Curve) — </em></strong>The normal distribution, often referred to as the <strong><em>Gaussian distribution</em></strong>, is characterized by its symmetrical bell shape. Defined by its mean `μ` (mu)and standard deviation `σ`(sigma), it serves as a cornerstone of statistical inference. Many machine learning algorithms, including linear regression, assume that the residuals are normally distributed, thereby facilitating hypothesis testing and confidence interval estimation.</p><p><strong><em>Poisson Distribution (Modelling Count Data) — </em></strong>The Poisson distribution models the occurrence of events within a fixed interval of time or space, making it particularly useful in scenarios such as clickstream analysis or natural language processing. Its parameter `λ`(lambda) represents the average rate of occurrence, providing a framework for predicting rare events with significant implications in applications like fraud detection or anomaly detection.</p><h4>Exponential Distribution (Time Until an Event)</h4><p>The exponential distribution is often used to model the time until an event occurs, such as the time until a customer makes a purchase or the time until a machine failure. Its memoryless property makes it particularly useful in queuing theory and survival analysis</p><h3><strong>Statistical Significance and Hypothesis Testing: Rigorous Model Evaluation</strong></h3><h4>Hypothesis Testing: The Rigorous Framework</h4><p>Hypothesis testing provides a systematic methodology for making inferences about population parameters based on sample data. The framework begins with the formulation of two competing hypotheses: the null hypothesis, which posits no effect or relationship, and the alternative hypothesis, which asserts the presence of an effect.</p><h4>p-Value: Assessing Evidence Against Null Hypothesis</h4><p>The p-value, a cornerstone of hypothesis testing, quantifies the strength of evidence against the null hypothesis. It represents the probability of observing data at least as extreme as the actual data, given that null hypothesis is true. If the p-value falls below a predetermined significance level (typically 0.05), researchers reject null hypothesis in favour of alternative hypothesis.</p><h4>Confidence Intervals: Quantifying Uncertainty</h4><p>Confidence intervals offer a range of plausible values for population parameters, providing a complementary perspective to point estimates. A 95% confidence interval, for instance, suggests that if the experiment were repeated numerous times, 95% of the intervals would contain the true parameter value. This concept of uncertainty is critical in machine learning, where model predictions are often subject to variability.</p><h4>Errors in Hypothesis Testing: The Pitfalls of Inference</h4><p>Statistical hypothesis testing is susceptible to errors, which can have profound implications in machine learning:</p><ul><li><strong>Type I Error (False Positive):</strong> This occurs when the null hypothesis is incorrectly rejected, suggesting a false discovery. In machine learning, this could lead to overfitting, where a model identifies spurious patterns that do not generalize to new data.</li><li><strong>Type II Error (False Negative):</strong> This error arises when the null hypothesis fails to be rejected despite the presence of a genuine effect. In predictive modelling, this could manifest as under fitting, where the model fails to capture important relationships within the data.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*74IK0jG9PSMFLe7dtMdf5w.jpeg" /></figure><p>In conclusion, statistics is the bedrock upon which the edifice of machine learning is constructed. From the foundational concepts of central tendency and dispersion to the nuanced understanding of probability distributions and the rigors of hypothesis testing, a comprehensive grasp of statistical principles is paramount for the effective application of machine learning.</p><p>Statistics provides the tools necessary for model evaluation, feature selection, and uncertainty quantification, empowering practitioners to construct robust models capable of navigating the complexities of real-world data. As the field of machine learning continues to burgeon, the symbiotic relationship between statistics and AI will only grow more pronounced.</p><p><em>Thanks for reading! If you have any queries, feel free to reach me on </em><a href="http://aditi2507rastogi@gmail.com/"><strong><em>Gmail</em></strong></a><strong><em> </em></strong><em>or my </em><a href="https://www.linkedin.com/in/aditi-rastogi-961789191/"><strong><em>LinkedIn Profile</em></strong></a><strong><em> </em></strong><em>or </em><a href="https://github.com/AditiRastogi250701"><strong><em>GitHub</em></strong></a><em> profile.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be89a9770282" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/essential-statistics-for-machine-learning-elucidating-the-esoteric-nexus-of-quantitative-be89a9770282">Essential Statistics for Machine Learning: Elucidating the Esoteric Nexus of Quantitative…</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying the Machine Learning Lexicon: Unlocking the Secrets of ML Terminology]]></title>
            <link>https://aditi2507rastogi.medium.com/demystifying-the-machine-learning-lexicon-unlocking-the-secrets-of-ml-terminology-efdce92bfe71?source=rss-d3646482e5f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/efdce92bfe71</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ml-terminology]]></category>
            <dc:creator><![CDATA[Aditi Rastogi]]></dc:creator>
            <pubDate>Mon, 07 Oct 2024 11:48:07 GMT</pubDate>
            <atom:updated>2024-10-07T11:48:07.627Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*F-rqiKhtKl_qlJP6" /></figure><p>Machine Learning, Deep Learning, and Artificial Intelligence (AI) are groundbreaking fields that have revolutionized the way we perceive and interact with technology. These interconnected domains are driving innovation across various industries and unlocking new possibilities for solving complex problems.</p><p>Machine Learning is a subset of AI that focuses on the development of algorithms and models that enable computer systems to learn and make predictions or decisions without explicit programming. It involves the extraction of patterns and insights from vast amounts of data to improve performance on specific tasks. By utilizing statistical techniques and computational power, machine learning algorithms can continuously refine their predictions and adapt to changing circumstances.</p><p>Deep Learning, on the other hand, is a specialized branch of Machine Learning inspired by the structure and function of the human brain. It involves the construction of artificial neural networks with multiple layers of interconnected nodes (neurons). These neural networks can process and learn from vast amounts of data, allowing them to identify intricate patterns and features that might be challenging for traditional machine learning algorithms. Deep Learning has demonstrated remarkable success in image recognition, natural language processing, and speech recognition, among other domains.</p><p>Artificial Intelligence is a broad field encompassing both Machine Learning and Deep Learning, along with other approaches to creating intelligent systems. AI focuses on developing machines or software that can perform tasks that typically require human intelligence. These tasks include understanding natural language, recognizing objects, making decisions, and even engaging in creative problem-solving. AI systems aim to replicate and extend human cognitive abilities, enabling machines to perceive, reason, and act in ways that mimic human intelligence.</p><p>The impact of Machine Learning, Deep Learning, and Artificial Intelligence is felt across various sectors, including healthcare, finance, transportation, and entertainment. These technologies have enabled significant advancements in medical diagnosis, fraud detection, autonomous vehicles, personalized recommendations, and much more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/0*lF8E3BW2rxPPOpvp.jpeg" /><figcaption>Hierarchy</figcaption></figure><p>However, as these fields continue to evolve, ethical considerations, privacy concerns, and the need for responsible AI deployment become paramount. Striking a balance between technological progress and societal well-being is essential to ensure the responsible and ethical development and use of these powerful technologies. To master these fields, it is imperative that we understand the basics of it.</p><p>Here are some of the basic terminologies associated with these fields:</p><ol><li><strong>Accuracy</strong>: Accuracy is a commonly used evaluation metric in machine learning that measures the proportion of correctly predicted examples by a model. It is calculated by dividing the number of correct predictions by the total number of predictions. Accuracy provides a general overview of the model’s performance but may not be suitable for imbalanced datasets where one class dominates.</li><li><strong>Active Learning:</strong> Active learning is a machine learning approach where the model dynamically selects the most informative samples from a large pool of unlabeled data to be labeled by an oracle. By actively choosing which instances to query, the model aims to minimize the labeled data required for training, thus reducing annotation costs. The selected samples are usually those that the model is uncertain about or that are challenging for the current model’s knowledge.</li><li><strong>AOC (Area Under the Curve):</strong> Area Under the Curve (AOC) is a commonly used evaluation metric for binary classification problems. It measures the performance of a model by calculating the area under the Receiver Operating Characteristic (ROC) curve. The ROC curve plots the True Positive Rate (sensitivity) against the False Positive Rate (1-specificity) at various classification thresholds. A higher AOC value indicates better discrimination between positive and negative instances.</li><li><strong>Auto ML (Automated Machine Learning):</strong> Auto ML refers to the automation of the end-to-end machine learning process, including data preprocessing, feature selection, model selection, hyperparameter optimization, and model deployment. It aims to simplify the machine learning pipeline by automating repetitive tasks and allowing non-experts to leverage machine learning techniques effectively.</li><li><strong>Bias: </strong>Bias refers to the error or inaccuracy introduced by the model’s assumptions and simplifications when attempting to capture the true underlying patterns in the data. A model with high bias tends to oversimplify the data, leading to underfitting. It fails to capture the complexity and nuances of the data, resulting in poor performance on both the training and testing data.</li><li><strong>Variance: </strong>Variance<strong> </strong>refers to the sensitivity of the model to fluctuations in the training data. A model with high variance is overly complex and too sensitive to the specific examples in the training set. It may fit the training data very well, but fails to generalize to new, unseen data, leading to overfitting.</li><li><strong>Bias-Variance Tradeoff:</strong> The bias-variance tradeoff refers to the delicate balance between underfitting (high bias) and overfitting (high variance) in a machine learning model. Bias represents the assumptions and simplifications made by the model, while variance represents the model’s sensitivity to fluctuations in the training data. A model with high bias may oversimplify the underlying patterns, while a model with high variance may capture noise or irrelevant details. Achieving a good tradeoff between bias and variance is crucial for optimal model performance.</li><li><strong>Clustering:</strong> Clustering is a technique in unsupervised learning that aims to group similar data points together based on their inherent characteristics or features. It seeks to discover patterns and structure within the data without any predefined labels. Clustering algorithms assign data points to clusters, where points within the same cluster are more similar to each other than to points in other clusters.</li><li><strong>Cost Function:</strong> A cost function, also known as a loss function or objective function, is a mathematical function that quantifies the error or discrepancy between the predicted output and the true output in a machine learning model. The goal of the model is to minimize this cost function during training, adjusting the model’s parameters to improve its predictive performance.</li><li><strong>Cross-Validation:</strong> Cross-validation is a technique used to assess the performance and generalization ability of a machine learning model. It involves partitioning the available data into multiple subsets or folds, using one-fold as the test set and the remaining folds as the training set. This process is repeated multiple times, each time using a different fold as the test set. Cross-validation helps estimate the model’s performance on unseen data and reduces the risk of overfitting.</li><li><strong>Dimensionality Reduction:</strong> Dimensionality reduction refers to the process of reducing the number of features or variables in a dataset while preserving the most important information. It is often employed to handle high-dimensional data, reduce computational complexity, and mitigate the curse of dimensionality. Techniques like Principal Component Analysis (PCA) and t-SNE (t-Distributed Stochastic Neighbor Embedding) are commonly used for dimensionality reduction.</li><li><strong>Ensemble learning: </strong>Ensemble Learning is a machine learning technique that combines the predictions of multiple individual models to make more accurate and robust predictions. Rather than relying on a single model, ensemble learning leverages the diversity and collective knowledge of multiple models to improve overall performance.</li><li><strong>Evaluation Metrics:</strong> Evaluation metrics are used to assess the performance and effectiveness of machine learning models. They provide quantitative measures that gauge how well a model is performing on a specific task. Common evaluation metrics include accuracy, precision, recall, F1 score, area under the curve (AUC), and mean squared error (MSE), among others. The choice of evaluation metrics depends on the problem domain and the specific objectives of the machine learning task.</li><li><strong>F1 Score:</strong> The F1 score is a metric commonly used in binary classification tasks to assess a model’s performance by considering both precision and recall. It is the harmonic mean of precision and recall, providing a balanced measure of the model’s ability to correctly classify positive instances while minimizing false positives and false negatives. The F1 score ranges from 0 to 1, where a higher value indicates better performance.</li><li><strong>Feature:</strong> In machine learning, a feature refers to an individual measurable property or characteristic of the data that is used as input for training a model. Features can be numerical, categorical, or binary variables that capture relevant information and patterns in the data. Effective feature selection is critical for building accurate and robust machine learning models.</li><li><strong>Feature Engineering:</strong> Feature engineering is the process of transforming raw data into a suitable representation by creating or selecting relevant features that capture the underlying patterns in the data. It involves tasks such as data cleaning, data normalization, encoding categorical variables, and creating derived features based on domain knowledge. Feature engineering plays a crucial role in improving model performance and enhancing the representation of the data.</li><li><strong>Feature Extraction:</strong> Feature extraction is a technique used to automatically derive or extract a set of informative features from raw data. It involves transforming the original data into a new representation that retains the most relevant information while reducing the dimensionality or noise. Techniques like Principal Component Analysis (PCA) and deep learning-based feature extraction methods are commonly used for this purpose.</li><li><strong>Generative Models:</strong> Generative models are machine learning models that learn the underlying data distribution and generate new samples from that distribution. These models can generate new instances that resemble the training data, allowing for data synthesis and augmentation. Examples of generative models include Generative Adversarial Networks (GANs) and Variational Autoencoders (VAEs).</li><li><strong>Gradient Descent:</strong> Gradient descent is an optimization algorithm commonly used in machine learning to minimize the loss or cost function of a model. It iteratively adjusts the model’s parameters in the direction of steepest descent of the gradient of the loss function. By following this iterative process, the algorithm aims to find the optimal set of parameter values that minimize the error between the predicted output and the true output.</li><li><strong>Hyperparameters: </strong>Hyperparameters are parameters that are not learned from the data during the training process but are set before training the model. They control the behavior and characteristics of the model. Examples of hyperparameters include learning rate, regularization strength, number of hidden layers in a neural network, and number of decision trees in a random forest. Tuning hyperparameters is an essential step in optimizing model performance.</li><li><strong>Label: </strong>In supervised learning, a label refers to the desired or known output associated with each training example. Labels represent the ground truth or the target values that the model aims to predict during training. For example, in a binary classification task, the labels can be either “positive” or “negative” to indicate the class membership of each instance.</li><li><strong>Loss Function: </strong>A loss function, also known as a cost function or objective function, quantifies the discrepancy or error between the predicted output and the true output of a machine learning model. The loss function guides the training process by providing a measure of how well the model is performing. The goal is to minimize the loss function during training to improve the model’s predictive accuracy.</li><li><strong>Meta Learning: </strong>Meta Learning also known as <em>“learning to learn”,</em> is a subfield of machine learning that focuses on developing algorithms or models that can learn how to learn. The objective of meta learning is to enable a model to acquire knowledge or adapt its learning process from past experiences in order to improve its performance on new tasks or domains. Meta learning algorithms aim to discover generalizable patterns or strategies that can be applied across different learning problems. By leveraging prior knowledge and experience, meta learning enables models to rapidly adapt and learn efficiently, reducing the need for extensive training on each new task. The ultimate goal of meta learning is to develop models that can quickly and effectively learn new tasks with minimal data or computational resources.</li><li><strong>Model: </strong>In machine learning, a model refers to a mathematical representation or algorithm that captures the underlying patterns and relationships in the data. It is trained using labeled or unlabeled data to make predictions or decisions on new, unseen data. Models can take various forms, such as linear regression, decision trees, support vector machines, neural networks, or ensemble methods. The model’s objective is to generalize well to unseen data and accurately predict outputs or classify instances based on the learned patterns.</li><li><strong>Neural Architecture Search:</strong> Neural architecture search (NAS) is an automated approach to designing or searching for optimal neural network architectures. NAS algorithms explore a search space of possible architectures and optimize for performance metrics such as accuracy or efficiency. These algorithms can automatically discover complex network structures, layer configurations, hyperparameters, and connectivity patterns that maximize the model’s performance on a given task.</li><li><strong>Overfitting:</strong> Overfitting occurs when a machine learning model performs extremely well on the training data but fails to generalize to new, unseen data. It happens when the model learns to capture noise, irrelevant details, or specific characteristics of the training data that do not represent the true underlying patterns. Overfitting can lead to poor performance on test or validation data, as the model becomes too specialized to the training set. Techniques such as regularization and cross-validation can help mitigate overfitting.</li><li><strong>Precision:</strong> Precision is an evaluation metric commonly used in classification tasks, particularly in cases where the focus is on minimizing false positives. It measures the proportion of correctly predicted positive instances (true positives) out of all instances predicted as positive (true positives + false positives). Precision quantifies the model’s ability to avoid false positives and is important when the cost of false positives is high or when precision is prioritized over recall.</li><li><strong>Reinforcement Learning:</strong> Reinforcement learning (RL) is a branch of machine learning that involves an agent learning to make sequential decisions through interactions with an environment. The agent receives feedback in the form of rewards or penalties based on its actions, and its goal is to maximize the cumulative reward over time. RL algorithms employ techniques such as Markov Decision Processes, value functions, and policy optimization to learn optimal strategies for tasks like game playing, robotics, and control problems.</li><li><strong>Recall:</strong> Recall also known as sensitivity or true positive rate, is an evaluation metric used in classification tasks. It measures the proportion of correctly predicted positive instances (true positives) out of all actual positive instances (true positives + false negatives). Recall quantifies the model’s ability to identify all positive instances, which is important when the cost of false negatives (missing positive instances) is high or when recall is prioritized over precision.</li><li><strong>Regularization:</strong> Regularization is a technique used to prevent overfitting in machine learning models by introducing a penalty term in the loss function. It adds a constraint to the model’s optimization process, discouraging complex or extreme parameter values. Regularization methods, such as L1 and L2 regularization, encourage model simplicity and smoothness, reducing the risk of overfitting and improving generalization performance.</li><li><strong>Semi-Supervised Learning:</strong> Semi-supervised learning is a machine learning approach that combines labeled and unlabeled data for training. It leverages the assumption that the unlabeled data contains useful information that can enhance the model’s performance. By utilizing a small amount of labeled data and a large amount of unlabeled data, semi-supervised learning aims to achieve better performance than purely supervised or unsupervised learning methods. It is particularly beneficial when labeled data is scarce or expensive to obtain.</li><li><strong>Supervised Learning:</strong> Supervised learning is a machine learning approach where the model learns from labeled examples. It involves training the model using input-output pairs, where the input represents the features or characteristics of the data, and the output represents the corresponding known labels or target values. The model learns to generalize from the labeled data, enabling it to make predictions or classifications on new, unseen data. The goal of supervised learning is to build a model that can accurately map input features to the correct output labels, allowing it to solve various tasks such as classification, regression, and ranking.</li><li><strong>Testing:</strong> Testing in machine learning refers to the evaluation of a trained model on unseen data to assess its performance and generalization ability. The testing data is separate from the training data and is used to simulate real-world scenarios where the model is exposed to new instances. By applying the trained model to the testing data, its predictions or classifications can be compared against the true values to measure its accuracy, precision, recall, or other evaluation metrics. Testing helps estimate how well the model is expected to perform in real-world applications and provides insights into its strengths and weaknesses.</li><li><strong>Training:</strong> Training is the process of teaching a machine learning model to learn patterns and relationships in the data. It involves exposing the model to a labeled dataset, where the input features and corresponding target outputs are provided. During training, the model adjusts its internal parameters or weights based on the provided data to minimize the difference between the predicted outputs and the true outputs. This optimization process aims to enable the model to make accurate predictions or classifications on new, unseen data.</li><li><strong>Transfer Learning: </strong>Transfer learning is a machine learning technique that leverages knowledge learned from one task or domain to improve performance on a different but related task or domain. Instead of training a model from scratch, transfer learning utilizes pre-trained models that have been trained on large datasets, typically from a similar domain. The knowledge gained from the pre-training is transferred to the new task by fine-tuning the model or using its learned features as a starting point. Transfer learning is beneficial when labeled data is limited for the target task or when similar patterns exist across tasks.</li><li><strong>Underfitting:</strong> Underfitting occurs when a machine learning model fails to capture the underlying patterns or relationships in the training data. It happens when the model is too simple or lacks the capacity to represent the complexity of the data. An underfit model exhibits high bias, leading to poor performance on both the training and testing data. It fails to learn the nuances of the data and may produce overly generalized or inaccurate predictions. Underfitting can be addressed by increasing the model’s complexity or using more sophisticated algorithms.</li><li><strong>Unsupervised Learning: </strong>Unsupervised learning is a machine learning approach used when the training data is unlabeled or lacks explicit target outputs. The goal of unsupervised learning is to discover patterns, structures, or relationships within the data. Without predefined labels, the model explores the data and identifies clusters, associations, or latent factors that capture the underlying information. Unsupervised learning techniques include clustering, dimensionality reduction, and generative modeling. It is particularly useful for exploratory data analysis, anomaly detection, and understanding the intrinsic properties of the data.</li><li><strong>Validation: </strong>Validation is the process of evaluating the performance of a machine learning model during training to assess its generalization ability. It involves using a validation set, which is a separate portion of the labeled training data, to estimate the model’s performance on unseen data. By evaluating the model on the validation set, its hyperparameters, architecture, or other design choices can be fine-tuned to improve performance. Validation helps prevent overfitting and guides the selection of the best model for deployment. Techniques like k-fold cross-validation and holdout validation are commonly used for this purpose.</li></ol><p>In conclusion, understanding the important terms related to the fields of Artificial Intelligence (AI), Machine Learning (ML), and Deep Learning (DL) is crucial for anyone venturing into these domains. These terms represent the building blocks of AI, ML, and DL, providing the necessary foundation for further exploration and study. By familiarizing ourselves with these terms and their underlying concepts, we can navigate the vast landscape of AI, ML, and DL with confidence, enabling us to contribute to the advancements and applications of these transformative technologies. As these fields continue to evolve, staying updated on emerging terms and concepts will be essential for anyone seeking to delve deeper into the exciting world of AI, ML, and DL.</p><blockquote>In depth knowledge about these terms will be propitious when delving further in the field. The same can be found on my profile.</blockquote><p><em>Thanks for reading! If you have any queries or suggestions, feel free to reach me on </em><a href="http://aditi2507rastogi@gmail.com/"><strong><em>Gmail</em></strong></a><strong><em> </em></strong><em>or my </em><a href="https://www.linkedin.com/in/aditi-rastogi-961789191/"><strong><em>LinkedIn Profile</em></strong></a><strong><em> </em></strong><em>or </em><a href="https://github.com/AditiRastogi250701"><strong><em>GitHub</em></strong></a><em> profile.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=efdce92bfe71" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Pedagogical Expedition into the Origins, Type, and Quintessential Principles of Artificial…]]></title>
            <link>https://aditi2507rastogi.medium.com/a-pedagogical-expedition-into-the-origins-type-and-quintessential-principles-of-artificial-38d845d11d9e?source=rss-d3646482e5f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/38d845d11d9e</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[introduction-to-ai]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Aditi Rastogi]]></dc:creator>
            <pubDate>Fri, 04 Oct 2024 11:32:02 GMT</pubDate>
            <atom:updated>2024-10-04T11:32:02.206Z</atom:updated>
            <content:encoded><![CDATA[<h3>A Pedagogical Expedition into the Origins, Type, and Quintessential Principles of Artificial Intelligence</h3><p>Artificial Intelligence (AI) is more than just a linguistic artefact of contemporary parlance. It’s a revolutionary technology reshaping industries, influencing our daily lives, and setting the stage for the future of innovation. From self-driving cars to voice-activated assistants like Siri and Alexa, AI powers numerous applications we interact with every day.</p><p><strong><em>But what exactly is AI?</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TB9CSd5WgQn-LIE9" /></figure><h4><strong>A Brief History of AI</strong></h4><p>AI’s history is filled with pivotal moments that have shaped the technology we see today. The field of AI began long before modern computers, with philosophers and mathematicians speculating on the nature of intelligence. However, AI as we know it took off in the 20th century.</p><p>1. <strong>The Early Foundations (1940s–1950s)</strong></p><ul><li><strong><em>Alan Turing’s Contribution:</em></strong> British mathematician Alan Turing introduced the idea of machines performing any calculation that humans could. In 1950, he proposed the famous “<strong><em>Turing Test</em></strong>” to determine if a machine can exhibit intelligent behaviour indistinguishable from that of a human.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FHmx1Nf8MLVZa6y_m8Dopg.jpeg" /></figure><ul><li><strong><em>Birth of AI:</em></strong> In 1956, the field of AI officially took shape at the Dartmouth Conference, where <strong><em>John McCarthy</em></strong> coined the term <strong><em>“Artificial Intelligence”</em></strong> . This conference laid the groundwork for future AI research.</li></ul><p>2. <strong>Symbolic AI (1950s–1970s)</strong></p><ul><li><strong><em>The Rule-Based Era</em></strong>: Early AI research focused on symbolic reasoning and rule-based systems. These early AI systems could solve math problems, play chess, and perform logic-based tasks. However, they lacked the ability to learn from experience.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/473/1*QBBDLp13kvtFQloP2QrJ0g.png" /></figure><p><strong><em>Limitations:</em></strong> AI systems at this time were narrow and could not adapt to tasks outside their programmed rules.</p><p>3. <strong>Machine Learning and the Rise of Neural Networks (1980s–1990s)</strong></p><ul><li><strong><em>Shift to Learning Models: </em></strong>In the 1980s, researchers moved beyond rule-based systems and began exploring machine learning. Instead of being explicitly programmed, machines could now learn patterns from data.</li><li><strong><em>Neural Networks:</em></strong> Although neural networks were introduced earlier, they gained traction in the late 1980s and 1990s. These networks mimicked the structure of the human brain and could be trained to recognise patterns in data, laying the foundation for modern deep learning.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9045-_sk_LZGPNDt" /></figure><p>4. <strong>The Modern AI Revolution (2000s–Present)</strong></p><ul><li><strong><em>Deep Learning Breakthrough: </em></strong>The 2000s saw the rise of deep learning, a form of machine learning that uses multi-layered neural networks to analyse vast amounts of data. This approach enabled major breakthroughs in speech recognition, image processing, and language translation.</li><li><strong><em>Current AI Applications:</em></strong> Today, AI powers autonomous vehicles, healthcare diagnostics, virtual assistants, and much more. AI research continues to accelerate, with new advancements in natural language understanding and reinforcement learning.</li></ul><p>AI can be classified into three types based on the complexity of tasks it can handle and its scope of intelligence: Narrow AI, General AI, and Super AI.</p><p>1. <strong><em>Narrow AI (Weak AI)</em></strong></p><p>Narrow AI refers to systems that are designed to perform a specific task, such as facial recognition or playing chess. These systems are highly specialised but do not possess general intelligence.</p><p>Examples: Voice assistants (e.g., Siri, Alexa), recommendation engines (e.g., Netflix, Amazon), chatbots, and spam filters.</p><p>Narrow AI systems excel at the tasks they are programmed for but lack the flexibility to handle tasks outside their domain. For example, a chess-playing AI cannot drive a car or write an essay.</p><p>2. <strong><em>General AI (Strong AI)</em></strong></p><p>General AI refers to machines that possess the ability to understand, learn, and apply knowledge across a wide range of tasks, much like a human being.</p><p>Currently, General AI remains theoretical, as no existing machine has achieved this level of intelligence. Researchers continue to work on building systems that can exhibit human-like understanding and problem-solving abilities.</p><p>If developed, General AI could revolutionise industries by autonomously performing a wide variety of complex tasks, from scientific research to creative pursuits.</p><p>3.<strong><em> Super AI</em></strong></p><p>Super AI refers to a level of intelligence that surpasses human intelligence across all domains, including creativity, problem-solving, and decision-making.</p><p>At present, Super AI is a hypothetical concept and has not been achieved. It raises questions about the future of human-machine interaction, ethics, and safety.</p><p>The idea of Super AI has sparked debates about control, as such systems could potentially act beyond human control, leading to unforeseen consequences.</p><h4>Major Branches of AI</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/965/0*8os0_1T-hVfzIq2n" /></figure><p>AI encompasses several key branches, each focusing on different aspects of intelligence and problem-solving. Below are the four most important areas of AI development:</p><p><strong><em>1. Machine Learning (ML)</em></strong></p><p>Machine learning is a subset of AI that enables machines to learn from data without being explicitly programmed. Instead of following fixed rules, ML models identify patterns in data and make predictions or decisions based on them.</p><p>An ML algorithm is trained on large datasets, where it learns patterns and can later make predictions based on new data. For example, an ML algorithm trained on medical records can predict the likelihood of a disease based on symptoms.</p><p><em>Applications: </em>Medical diagnostics, stock market prediction, fraud detection, and recommendation systems.</p><p><strong><em>2. Deep Learning (DL)</em></strong></p><p>Deep learning is a subfield of machine learning that uses neural networks with multiple layers (hence the term “deep”) to process data and make predictions. It is especially powerful for tasks that involve unstructured data like images, audio, and video.</p><p>Deep learning mimics the neural networks in the human brain. With large datasets, deep learning models become highly effective at identifying complex patterns. These networks are often used in areas like computer vision and speech recognition.</p><p><em>Applications:</em> Image recognition (e.g., facial recognition), language translation, autonomous vehicles, and voice assistants.</p><p><strong><em>3. Natural Language Processing (NLP)</em></strong></p><p>NLP is the field of AI focused on the interaction between computers and human language. NLP enables machines to understand, interpret, and generate human language.</p><p>NLP techniques involve parsing and analyzing human language, from simple keyword recognition to complex sentiment analysis. This allows machines to understand context and meaning from text or speech inputs.</p><p><em>Applications: </em>Chatbots, virtual assistants, sentiment analysis (e.g., analysing social media comments), and machine translation (e.g., Google Translate).</p><p><strong><em>4. Robotics</em></strong></p><p>Robotics is the branch of AI that deals with creating intelligent machines capable of interacting with the physical world. AI enables robots to perceive their environment, learn from it, and make decisions or perform tasks autonomously.</p><p>AI-powered robots rely on algorithms that process sensor data and make decisions in real-time. They use machine learning models to adapt to changing environments and perform complex tasks such as navigation and manipulation.</p><p><em>Applications: </em>Autonomous vehicles, industrial robots, surgical robots, and drones.</p><h4>AI vs. Human Intelligence: How Do They Compare?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_pKFaJcxDQtwDuYF7q0iUg.jpeg" /></figure><p>While AI has made remarkable strides in specific tasks, it remains fundamentally different from human intelligence in several key areas:</p><p><strong><em>Speed and Accuracy</em></strong></p><p><em>Advantage:</em> AI excels at processing vast amounts of data quickly and performing calculations with high precision. For example, AI algorithms can analyse thousands of medical images in seconds, outperforming human doctors in speed.</p><p><em>Limitation:</em> However, AI lacks the ability to apply its skills across different tasks (as humans do). While it may be faster, it is not adaptable in the way humans are.</p><p><strong><em>Creativity and Intuition</em></strong></p><p><em>Human Strength:</em> Humans excel at tasks that require creativity, intuition, and emotional intelligence. For instance, AI can generate music based on patterns, but it doesn’t possess the emotional depth to create art with intent or meaning.</p><p><em>AI Limitation:</em> AI models are excellent at pattern recognition but struggle with abstract thinking, reasoning beyond the data they’ve been trained on.</p><p><strong><em>Adaptability and Common Sense</em></strong></p><p><em>Human Strength:</em> Humans can apply knowledge from one domain to another seamlessly. For instance, we can learn from experience and apply that knowledge to solve new problems in different contexts.</p><p><em>AI Limitation: </em>AI systems typically require vast amounts of data and specific training for each new task. They lack common sense reasoning and struggle with generalising knowledge across domains.</p><p>Artificial Intelligence is a transformative force driving advancements in virtually every industry, from healthcare to finance to transportation. As AI continues to evolve, it will open up new possibilities, but it also raises important ethical questions about privacy, job displacement, and the potential risks of advanced AI systems.</p><p>Understanding AI’s history, types, and key concepts is crucial for navigating its impact on our future. While we are far from realizing General or Super AI, the progress in Narrow AI has already reshaped the way we live and work. The key to the future of AI lies in balancing innovation with responsibility.</p><p>AI is not just a tool for technologists; it’s a field that will affect everyone. Whether you’re a beginner or someone looking to deepen your understanding, AI is a journey worth exploring, with countless applications and ethical considerations to ponder.</p><p><em>Thanks for reading! If you have any queries, feel free to reach me on </em><a href="http://aditi2507rastogi@gmail.com/"><strong><em>Gmail</em></strong></a><strong><em> </em></strong><em>or my </em><a href="https://www.linkedin.com/in/aditi-rastogi-961789191/"><strong><em>LinkedIn Profile</em></strong></a><strong><em> </em></strong><em>or </em><a href="https://github.com/AditiRastogi250701"><strong><em>GitHub</em></strong></a><em> profile.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38d845d11d9e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Color Quantization — Using K Means Clustering]]></title>
            <link>https://blog.devgenius.io/color-quantization-using-k-means-clustering-132300ca6864?source=rss-d3646482e5f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/132300ca6864</guid>
            <category><![CDATA[opencv]]></category>
            <category><![CDATA[color-quantization]]></category>
            <category><![CDATA[k-means-clustering]]></category>
            <category><![CDATA[clustering]]></category>
            <category><![CDATA[k-means]]></category>
            <dc:creator><![CDATA[Aditi Rastogi]]></dc:creator>
            <pubDate>Wed, 07 Sep 2022 12:44:40 GMT</pubDate>
            <atom:updated>2022-09-07T12:44:40.265Z</atom:updated>
            <content:encoded><![CDATA[<h3>Color Quantization — Using K Means Clustering</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*yk6qkej9YTD-LNgO" /></figure><p><strong>COLOR QUANTIZATION </strong>— is a process that reduces the number of distinct colors used in an image, provided that the new image should be as visually similar as possible to the original image. In simpler terms, it is the quantization of color spaces. Color spaces are a way to characterize the shade channels existing in the photo that offers the photograph that precise hue. Some of the popular color spaces are —</p><ol><li>RGB</li><li>CMYK</li><li>HSV</li><li>LAB</li></ol><blockquote><a href="https://blog.devgenius.io/color-spaces-in-opencv-f0cd3e1d3fab">Color Spaces in OpenCV</a></blockquote><p>This is a useful image compression technique which is quite useful for devices that can show a limited number of colors due to memory restriction. Each image can be represented by three features: the R, G and B values for each pixel. Given that our image has pixel values ranging from 0 to 255, we can say that each image has 256 * 256 * 256 colors. Our goal now is to reduce the number of colors to a manageable number.</p><p>Color Quantization can be achieved using any clustering algorithm. There are 3 types of clustering possible —</p><ol><li>Exclusive</li><li>Overlapping</li><li>Hierarchical</li></ol><p><strong>Exclusive Clustering</strong></p><ul><li>Also known as ‘hard clustering’</li><li>Each data item belongs to only one cluster</li><li>Example — K means Clustering</li></ul><p><strong>Overlapping Clustering</strong></p><ul><li>Also known as ‘soft clustering’</li><li>Data points can belong to one or more classes</li><li>Example — Fuzzy / C means Clustering</li></ul><p><strong>Hierarchical Clustering</strong></p><ul><li>Also known as ‘hierarchical cluster analysis’</li><li>A method of cluster analysis that seeks to build a hierarchy of clusters</li><li>There are two types of hierarchical clustering: <strong>divisive (top-down) and agglomerative (bottom-up)</strong></li></ul><p>The most common technique to achieve color quantization is —<em> K Means Clustering.</em></p><h4><strong>K Means Clustering</strong></h4><p>It groups similar data points together to discover the underlying patterns. K means algorithm identifies ‘K’ centroids and then allocates every data point to the nearest cluster, while keeping the centroids as small as possible. The ‘means’ in ‘<em>K means</em>’ refers to averaging the data (finding the centroid).</p><p>OpenCV has an inbuilt function to directly perform k means clustering</p><blockquote>cv2.kmeans(sample, n clusters, criteria, attempts, flags)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*Qc819w7GZZDSmoYmRUOy-w.png" /></figure><p>OUTPUT —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*4Q--H5FlJdw9hA6_JKLDxQ.png" /></figure><h4>CODE SNIPPET</h4><p>INPUT—</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*ozUcw-QLeVJChNnySaxI0w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/779/1*6cWli-N5u8hhjCKSMOeiAA.png" /></figure><p>OUTPUT —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/1*KBibxhCWLpsRiQ7LqNWqvw.png" /></figure><p><em>Thus, we can see how only the most prominent colors have sustained and the output is still similar to the input. Thus, COLOR QUANTIZATION was achieved using K Means Clustering.</em></p><p><em>Thanks for reading! If you have any queries, feel free to reach me on </em><a href="http://aditi2507rastogi@gmail.com/"><strong><em>Gmail</em></strong></a><strong><em> </em></strong><em>or my </em><a href="https://www.linkedin.com/in/aditi-rastogi-961789191/"><strong><em>LinkedIn Profile</em></strong></a><strong><em> </em></strong><em>or </em><a href="https://github.com/AditiRastogi250701"><strong><em>GitHub</em></strong></a><em> profile.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=132300ca6864" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/color-quantization-using-k-means-clustering-132300ca6864">Color Quantization — Using K Means Clustering</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Serendipity to Strategy: How Recommendation Systems Revolutionize User Experience]]></title>
            <link>https://aditi2507rastogi.medium.com/whats-next-b208dceb0a32?source=rss-d3646482e5f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/b208dceb0a32</guid>
            <category><![CDATA[recommender-systems]]></category>
            <category><![CDATA[recommendations]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[recommender]]></category>
            <dc:creator><![CDATA[Aditi Rastogi]]></dc:creator>
            <pubDate>Thu, 01 Sep 2022 08:58:16 GMT</pubDate>
            <atom:updated>2024-09-30T12:14:07.378Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JW74aUJZm2SqyYDU" /></figure><p>After completing an intriguing novel, a riveting series or a captivating movie, the most common question that arises is what’s next? which movie or show to watch next or which novel to read next? Such questions are easily answerable if one’s field of interest is known.</p><p>A recommendation system works on similar rules. A recommender system, also known as a recommendation system, is a type of information filtering system that provides suggestions for items that are most relevant to a specific user. It takes into account the types of shows watched/ books read by the user to provide multiple answers to the what’s next dilemma. Thus, in simpler terms, a recommendation system helps users find compelling content in a large corpus.</p><p>Recommendation systems are further classified into 3 categories:</p><ol><li>Collaborative filtering systems</li><li>Content based filtering systems</li><li>Hybrid systems</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*zJDEKPE44P4G4tSNOtNoXg.png" /><figcaption>Types of Recommendation Systems</figcaption></figure><h4>Collaborative Filtering</h4><p><strong><em>Collaborative filtering </em></strong>uses <em>similarities between users and items simultaneously</em> to provide recommendations. This allows for serendipitous recommendations; that is, collaborative filtering models can recommend an item to user based on the interests of a similar user.</p><p>Example: If a user has shown interest in a movie A, B and C, then the system will recommend another movie, say X, on the basis of ratings provided by another user who also liked the aforementioned 3 movies (i.e., a similar user).</p><p>A real-life application of this scenario can be seen when surfing through the amazon site. When we shop on Amazon it recommends new products saying <em>“Customer who brought this also brought”</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*LnKTVuMK78Xa3yPDB1hNfw.png" /><figcaption>Collaborative Filtering</figcaption></figure><p>Collaborative Filtering is further divided into 2 subclasses:</p><p><strong>a. User Based Collaborative Filtering</strong></p><p>It finds similar users and recommends products based on what other people with similar consumption patterns liked. It focuses on the <strong><em>Nearest Neighbour</em></strong> approach for recommendations, which looks at the users&#39; rating patterns and finds the <em>nearest neighbors</em>, i.e. users with ratings similar to yours. The algorithm then proceeds to give you recommendations based on the ratings of these neighbors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*yulR5f7PqvoiN2NcmUXnFw.png" /><figcaption>User based Collaborative Filtering</figcaption></figure><p><strong>b. Item Based Collaborative Filtering</strong></p><p>Item based collaborative filtering finds similarity patterns between items and recommends them to users based on the computed information. Item based filtering looks at the similarity between different items, and does this by taking note of how many users that bought item X also bought item Y. If this correlation is high enough, a similarity can be presumed to exist between the two items, and they can be assumed to be similar to one another. Item Y will from there on be recommended to users who bought item X and vice versa.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/1*Nuisd6ScW2dOwAogTCEW5g.png" /><figcaption>Item based Collaborative Filtering</figcaption></figure><h4><strong>Content Based Filtering</strong></h4><p>This type of recommendation system displays relevant items based on the content of previously searched items by the users. The attribute of the product that the user likes is referred to as content in this context. Products are tagged with specific keywords in this type of system.</p><p>Example: If a person likes a movie, say A, belonging to thriller genre, sub-genre — crime, then the system will recommend the user movies with tag of ‘crime’ and ‘thriller’</p><p>A real-life example of this can be seen on the Netflix platform. After watching a show/movie, it presents the user with a section as <em>‘More like these’ </em>which showcases series/movies of similar genre.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/402/1*-jz-iSKy4uFCo5FVEnt5Rw.png" /><figcaption>Content Based Filtering System</figcaption></figure><h4>Hybrid Systems</h4><p>A hybrid recommendation system is a type of recommendation system that is a combination of content and collaborative filtering methods. Combining collaborative and content-based filtering may help overcome the limitations we face when using them separately, and it may also be more effective in some cases. Hybrid recommender system approaches can be implemented in a variety of ways, such as using content and collaborative-based methods to generate predictions separately and then combining the predictions, or simply adding collaborative-based method capabilities to a content-based approach (and vice versa).</p><p>There are two types of hybrid recommendation systems: <strong><em>parallel and sequential.</em></strong> The parallel design feeds multiple recommendation systems, and each of those recommendations is combined to produce a single output. The sequential design sends the input parameters to a single recommendation engine, whose output is then passed on to the next recommender in the chain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ppqzMcYdgcUzqF92.png" /></figure><p>Hybrid systems combine different models to combat the disadvantages of one model with another. This overall reduces the weaknesses of using individual models and aids in generating more robust recommendations. This yields more robust and personalized recommendations for users.</p><p>A real-life example of this technique is Netflix. It employs a hybrid recommendation system in which they generate recommendations to users based on similar users’ watch and search habits (collaborative filtering) in conjunction with movies that share similar characteristics and have been rated by users (content based).</p><blockquote>The code for recommender systems can be found <a href="https://github.com/AditiRastogi250701">here</a>.</blockquote><p><em>Thanks for reading! If you have any queries, feel free to reach me on </em><a href="http://aditi2507rastogi@gmail.com/"><strong><em>Gmail</em></strong></a><strong><em> </em></strong><em>or my </em><a href="https://www.linkedin.com/in/aditi-rastogi-961789191/"><strong><em>LinkedIn Profile</em></strong></a><strong><em> </em></strong><em>or </em><a href="https://github.com/AditiRastogi250701"><strong><em>GitHub</em></strong></a><em> profile.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b208dceb0a32" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AlexNet — The Net that surpassed CNNs]]></title>
            <link>https://blog.devgenius.io/alexnet-the-net-that-surpassed-cnns-5d551ba1b901?source=rss-d3646482e5f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d551ba1b901</guid>
            <category><![CDATA[alexnet]]></category>
            <category><![CDATA[advanced-neural-nets]]></category>
            <category><![CDATA[relu]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[neural-networks]]></category>
            <dc:creator><![CDATA[Aditi Rastogi]]></dc:creator>
            <pubDate>Sun, 22 May 2022 09:28:12 GMT</pubDate>
            <atom:updated>2022-05-22T09:28:12.119Z</atom:updated>
            <content:encoded><![CDATA[<h3>AlexNet — The Net that surpassed CNNs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/0*rniSQeRUZp_uGvIJ.jpg" /></figure><p><strong>AlexNet</strong> is a convolutional neural network (CNN) architecture created by <em>Alex Krizhevsky</em>, <em>Ilya Sutskever</em>, and <em>Geoffrey Hinton</em> in collaboration. AlexNet won the <strong>2012 ImageNet Large Scale Visual Recognition Challenge</strong>.</p><p>Convolutional Neural Networks (CNNs) have long been the model of choice for object recognition since they’re —</p><ol><li>powerful</li><li>easy to control</li><li>easier to train.</li></ol><p>When applied on millions of images, they don’t exhibit any significant overfitting. Their performance is nearly equivalent to that of similar-sized traditional feedforward neural networks.</p><p>The only issue is that they are difficult to apply to high-resolution photographs.</p><h3>AlexNet Architecture</h3><p>AlexNet is an 8 layer deep neural network. AlexNets used some new techniques, <strong>RelU</strong> activation function and <strong>Dropout</strong> layers.</p><ol><li><strong>ReLU</strong></li></ol><p>RelU based deep convolutional networks are trained several times faster than tanh and sigmoid- based networks. After RelU, the value of the function has no range like tan h or the sigmoid function so a normalization is usually is done afterwards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/841/1*ziwKvJQ2seFpf1A24Ev6mg.png" /></figure><ol><li><strong>Dropout</strong></li></ol><p>Dropout can effectively prevent neural network overfitting. Dropout is implemented in the neural network by modifying the structure of the neural network itself. For a specific layer of neurons, delete some neurons at random with a defined probability while keeping the individuals of the input layer and output layer neurons unchanged, and then update the parameters based on the neural network’s learning method. Rerandomization is used in the subsequent iterations (Remove some neurons until the training is completed).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/1*a0GsRY8vC8M3QXQWfMZElA.png" /></figure><h4>ARCHITECTURE</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/0*tp3-vrF9PiK3qtsk.png" /><figcaption>AlexNet Architecture</figcaption></figure><p>After passing through a convolution or a max pooling layer, the dimension of the intermediate output image is produced by —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*Pc3aBHO6Jps0G2xLxxQCDw.png" /></figure><p>here,</p><p>n = the given size dimension,</p><p>p = padding done by the layer,</p><p>f = number of kernels,</p><p>s = stride,</p><p>k = kernel size.</p><p>The image input size should be<strong> (227, 227)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/248/1*L7GwTCusIUu8Sxh6TCX77g.png" /></figure><p>Calculations of size are —</p><h4><strong>CONV 1</strong></h4><p>n = 227, p = 0, f = 11, s = 1, k = 96</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*ogdvMmy95AKgHVyfUybmKg.png" /></figure><p>which amounts to —<strong> (55 x 55 x 96) </strong><em>[or (55,55,96) whichever notation is suitable for you.]</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*NQ38FZWBjoyNl70Vv3VzwQ.png" /></figure><h4>MAX POOLING 1</h4><p>n= 55, p = 0, f = 3, s = 2, k = 96</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*dWj4f9CIkgAGzSR9s2_-uw.png" /></figure><p>the resulting size will be — <strong>(27 x 27 x 96)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*Hqse4UE4c4mo_QoKEeVQ1A.png" /></figure><h4>CONV2</h4><p>n = 27, p = 2, f = 5, s = 1, k = 256</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*cCqA-9Tj1dg_bwsQ_sDrTA.png" /></figure><p>Therefore, size — (<strong>27 x 27 x 256)</strong></p><h4>MAX POOLING 2</h4><p>n = 27, p = 0, f = 3, s =2, k =256</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*RZtAIV_tB04gQG68eBh-QA.png" /></figure><p>Size now is — (13 x 13 x 256)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*xRxq-yXLn5n5_WrPhC0R3A.png" /></figure><h4>CONV 3</h4><p>n = 13, p = 1, f = 3, s = 1, k = 384</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*n81IrwihKqs-dfhncMRsJg.png" /></figure><p>Resulting size — <strong>(13 x 13 x 384)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*9TJMC8o2NqRH9C6HlJ_Rrg.png" /></figure><h4><strong>CONV 4</strong></h4><p>n = 13, p = 1, f = 3, s = 1, k = 384</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*n81IrwihKqs-dfhncMRsJg.png" /></figure><p>Resulting size — <strong>(13 x 13 x 384)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*qC5lVlPj1WeDRe79oi6JVA.png" /></figure><h4>CONV 5</h4><p>n = 13, p = 1, f = 3, s = 1, k = 256</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*rAN8_1J2TCH2_0cPoljyjg.png" /></figure><p>Size now will be — <strong>(13 x 13 x 256)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*r43QFIKTEoQBwclmtYREcw.png" /></figure><h4>MAX POOLING 3</h4><p>n = 13, p = 0, f = 3, s = 2, k = 256</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*SnhgjXVuZFbq6peMEoKwaw.png" /></figure><p>the resulting size will be — <strong>(6 x 6 x 256)</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*pKW0BKEcok6gTH0LESM3oQ.png" /></figure><h4>Dense Layer</h4><p>Size of dense layer will be — (6*6*256) = <strong>9216</strong> (neurons)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*g0AraCpQzeR-SUrwc_jLLw.png" /></figure><h4>FULLY CONNECTED LAYERS</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/1*hQXai6Hv3LWSbs2S5jXh8Q.png" /></figure><blockquote>Interestingly, unlike commonly believed, AlexNet was<strong> not</strong> the first fast GPU-implementation of a CNN to win an image recognition contest. A CNN on GPU by <strong>K. Chellapilla </strong>et al. (2006) was <strong>4 times faster</strong> than an equivalent implementation on CPU. A deep CNN of <strong>Dan Cireșan</strong> et al. (2011) at IDSIA was already <strong>60 times faster</strong> and achieved superhuman performance in August 2011. Between May 15, 2011 and September 10, 2012, their CNN won no fewer than four image competitions. They also significantly improved on the best performance in the literature for multiple image databases.</blockquote><p>The complete code for AlexNet implementation on custom dataset is available on my <a href="https://github.com/AditiRastogi250701/DIARETDB1"><strong><em>GitHub</em></strong></a> account.</p><p><em>Thanks for reading! If you have any queries, feel free to reach me on </em><a href="http://aditi2507rastogi@gmail.com/"><strong><em>Gmail</em></strong></a><strong><em> </em></strong><em>or my </em><a href="https://www.linkedin.com/in/aditi-rastogi-961789191/"><strong><em>LinkedIn Profile</em></strong></a><strong><em> </em></strong><em>or </em><a href="https://github.com/AditiRastogi250701"><strong><em>GitHub</em></strong></a><em> profile.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d551ba1b901" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/alexnet-the-net-that-surpassed-cnns-5d551ba1b901">AlexNet — The Net that surpassed CNNs</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Efficient Nets — Rethinking Model Scaling]]></title>
            <link>https://blog.devgenius.io/efficient-nets-rethinking-model-scaling-f342ee7bb021?source=rss-d3646482e5f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f342ee7bb021</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[neural-net]]></category>
            <category><![CDATA[efficientnet]]></category>
            <dc:creator><![CDATA[Aditi Rastogi]]></dc:creator>
            <pubDate>Wed, 13 Apr 2022 07:07:56 GMT</pubDate>
            <atom:updated>2022-04-13T07:07:56.211Z</atom:updated>
            <content:encoded><![CDATA[<h3>Efficient Nets — Rethinking Model Scaling</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/0*jytGmWnR8XJDAP3W" /></figure><p>There are various neural networks available; but each has got some drawbacks which motivates a developer to create new and improved networks. One such network is called — <strong>‘EfficientNet’. </strong>One of the key issues in designing CNNs, as with all other neural networks, is model scaling, i.e. deciding how to increase the model size so as to provide better accuracy.</p><p>Efficient Net is an advanced neural network architecture and scaling method that uniformly scales all dimensions of depth/width/resolution using a <strong>compound coefficient</strong>. The EfficientNet models achieve both higher accuracy and better efficiency over existing CNNs, reducing parameter size and FLOPS by an order of magnitude. It is a lightweight model (can be used in android apps) and gives more accuracy even with less parameters.</p><blockquote><strong>FLOPS</strong> measures the number of operations of a frozen deep learning network.</blockquote><blockquote><strong><em>FLOPS = floating point operations per second.</em></strong></blockquote><p>In normal CNNs, only <strong>depth scaling</strong> is done. Depth Scaling means increasing the depth i.e. the number of layers in a network to obtain better accuracy. the continuous increase in the depth of the model gradually leads to the problem of <strong>Vanishing Gradient. </strong>This problem is solved by using another neural net — ResNet. The EfficientNet models are used to achieve both higher accuracy and better efficiency over existing CNNs, reducing parameter size and FLOPS by an order of magnitude.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eMDT0yHDdVaLBuVb.png" /></figure><blockquote><em>To know more about the </em><strong><em>Vanishing Gradient </em></strong><em>problem and </em><strong><em>ResNet </em></strong><em>architecture, kindly refer to my article </em><a href="https://blog.devgenius.io/resnet50-6b42934db431"><strong><em>here</em></strong></a><em>.</em></blockquote><p>In EfficientNet, we scale all 3 components i.e.</p><ol><li>Depth</li><li>Width</li><li>Resolution</li></ol><p><strong>Width Scaling</strong> refers to altering the width of the input image. Wider the image more the number of feature maps/channels possible hence more the information available to process on. This in turn leads to better conclusions and predictions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*wPW_KZ8jdcJFfBJiyfrLxw.png" /><figcaption>ORIGINAL</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/847/1*ay8UqI4zJ63NVeJbKuwBgQ.png" /><figcaption>After Width Scaling</figcaption></figure><p>Hence, the wider the image the more the number of channels present in the image.</p><p>But, with increasing the width, some feature maps are developed which aren’t of importance here. Like, the dark blue feature maps bound the road and the background wall only and not the car.</p><p><strong>Resolution Scaling </strong>refers to altering the resolution of an image. The more the DPI (Dots per Inch) of an image, the better the resolution. In simpler terms, better resolution refers to an increase in the number of pixels in an image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/0*5NtJw-9J4Mh8op0w.jpg" /><figcaption>Resolution Scaling</figcaption></figure><p>An image with better resolution provides detailed information thus, better results of the convolutional model.</p><p>To handle high resolution images, we need deep neural networks (depth scaling). Even if the resolution of an image is high, the number of feature maps is less (width scaling), less information is captured (With a large number of feature maps, the model becomes slower due to large number of computations). Hence, depth, width and resolution scaling are all interdependent entities.</p><p>In the paper-<strong><em>Rethinking Model Scaling for Convolutional Neural Networks </em></strong>2 observations were made:</p><ol><li>Scaling up any dimension of network-width, depth or resolution improves the accuracy, but <strong><em>the accuracy gain diminishes for bigger models</em></strong> (VANISHING GRADIENT PROBLEM).</li></ol><p>2. In order to pursue better accuracy and efficiency, it is critical to <strong><em>balance all dimensions of networks </em></strong>during scaling (<strong>COMPOUND SCALING</strong>).</p><p>To scale the three dimensions, a <strong>baseline model </strong>is needed — <strong>EfficientNet B0</strong></p><p><strong>EfficientNet B0</strong> was designed by <strong>NAS (Neural Architecture Search)</strong>, where neural networks generate new and improved neural nets.</p><h3>COMPOUND SCALING</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GnTl9lkOFWfmWONZ.png" /></figure><p>Compound scaling refers to the method of scaling all the 3 components while maintaining a balance among them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/265/1*-9qUCAdlwxUHXrZAFGB7uw.png" /></figure><p>where,</p><p>d=depth</p><p>w=width</p><p>r=resolution</p><p>ϕ=compound coefficient</p><p>The values of d, w, r is fixed and that of ϕ is fund by <strong>GRID SEARCH TECHNIQUE.</strong></p><p><strong>α = 1.2; β = 1.1; ϒ = 1.15;</strong></p><p>Let, ϕ=1</p><p>This means that if we increase depth by 20% then, width should be increased by 10% and resolution by 15% to maintain the balance.</p><p>There are 7 EfficientNet models ranging from B0-B7. B0 is the baseline model.</p><p>The input image size varies for all the models. As the model level increase, the input size of the image also increases.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*lX8IwMIki6KiBhkwFlEt_g.png" /></figure><p>With this technique, the authors were able to create models with higher accuracy than previous ConvNets while reducing overall FLOPS and model size monumentally. This scaling strategy is flexible, and it may be used to effectively scale Convolutional Neural Networks and improve accuracy with various architectures.</p><p><em>Thanks for reading! If you have any queries, feel free to reach me on </em><a href="http://aditi2507rastogi@gmail.com/"><strong><em>Gmail</em></strong></a><strong><em> </em></strong><em>or my </em><a href="https://www.linkedin.com/in/aditi-rastogi-961789191/"><strong><em>LinkedIn Profile</em></strong></a><strong><em> </em></strong><em>or </em><a href="https://github.com/AditiRastogi250701"><strong><em>GitHub</em></strong></a><em> profile.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f342ee7bb021" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/efficient-nets-rethinking-model-scaling-f342ee7bb021">Efficient Nets — Rethinking Model Scaling</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Changing the look of your Jupyter workspace!]]></title>
            <link>https://aditi2507rastogi.medium.com/changing-the-look-of-your-jupyter-workspace-fad7c3f2d47?source=rss-d3646482e5f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/fad7c3f2d47</guid>
            <category><![CDATA[jupyter-notebook]]></category>
            <category><![CDATA[themes]]></category>
            <category><![CDATA[anaconda]]></category>
            <category><![CDATA[jupyter]]></category>
            <category><![CDATA[jupyterthemes]]></category>
            <dc:creator><![CDATA[Aditi Rastogi]]></dc:creator>
            <pubDate>Sat, 02 Apr 2022 10:58:43 GMT</pubDate>
            <atom:updated>2022-04-02T10:59:22.938Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XH3fwl_ic_uXM2O_" /></figure><p>There are many software presents to code in python, <strong><em>Jupyter Notebook</em></strong> being one. Project Jupyter is a project and community whose goal is to <em>“develop open-source software, open-standards, and services for interactive computing across dozens of programming languages”</em>. It was spun off from IPython in 2014 by Fernando Pérez and Brian Granger.</p><p>Working on the same software can become dullsville, even if the software is amazing, a change of look is needed after some time. For many platforms, the change option is present directly on the menu or some extensions need to be downloaded.</p><p>In the case of Jupyter Notebook, code needs to be written for the change. Jupyter provides its users with profuse font and background color options.</p><p>Some available themes being -</p><pre>Available Themes: <br>   chesterish<br>   grade3<br>   gruvboxd<br>   gruvboxl<br>   monokai<br>   oceans16<br>   onedork<br>   solarizedd<br>   solarizedl</pre><p>Command to bring about this change is</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/277/1*YmuHc82fJessCM5rh2Zfmw.png" /></figure><p>To change the font size and font style along with the theme, type the following command -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/303/1*7lKShkI69KiF9jsvi4wRTg.png" /></figure><p>Some of the available fonts in jupyter notebook are —</p><ol><li>Roboto</li><li>Fira</li><li>Merriserif</li></ol><p>To bring about these changes, install the library ‘jupyterthemes’ into your kernel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*RDV80WKVQ0kXwplPoBsz4A.png" /></figure><p>Upgrade the package then -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/1*GLTSu36WBekkO-o4S1Nvkg.png" /></figure><p>By default, the theme hides the toolbar and notebook’s name. But you can toggle it with the below command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*Nq_ILDFo_sJQFjRj6yCkNA.png" /></figure><p>Now you can bring about all the appearance changes you need for the notebook.</p><p>Complete code can be found on my <a href="https://github.com/AditiRastogi250701/Image-Cartoonifier"><strong><em>GitHub profile</em></strong></a><strong><em>.</em></strong></p><p><em>Thanks for reading! If you have any queries, feel free to reach me on </em><a href="http://aditi2507rastogi@gmail.com/"><strong><em>Gmail</em></strong></a><strong><em> </em></strong><em>or my </em><a href="https://www.linkedin.com/in/aditi-rastogi-961789191/"><strong><em>LinkedIn Profile</em></strong></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fad7c3f2d47" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ResNet50]]></title>
            <link>https://blog.devgenius.io/resnet50-6b42934db431?source=rss-d3646482e5f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b42934db431</guid>
            <category><![CDATA[resnet]]></category>
            <category><![CDATA[resnet50]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Aditi Rastogi]]></dc:creator>
            <pubDate>Mon, 14 Mar 2022 15:23:09 GMT</pubDate>
            <atom:updated>2022-03-14T15:23:09.570Z</atom:updated>
            <content:encoded><![CDATA[<p>ResNet-50 is a convolutional neural network that is 50 layers deep. ResNet, short for Residual Networks is a classic neural network used as a backbone for many computer vision tasks.<strong> </strong>The fundamental breakthrough with ResNet was it allowed us to train extremely deep neural networks with 150+layers. It is an innovative neural network that was first introduced by <strong>Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun</strong> in their 2015 computer vision research paper titled <strong>‘Deep Residual Learning for Image Recognition’</strong>.</p><p>Convolutional Neural Networks have a major disadvantage — ‘<strong>Vanishing Gradient Problem</strong>’. During backpropagation, the value of gradient decreases significantly, thus hardly any change comes to weights. To overcome this, ResNet is used. It make use of <strong>“SKIP CONNECTION”.</strong></p><h4>ResNet-50 Architecture</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9LqUp7XyEx1QNc6A.png" /></figure><p><strong>Skip Connection</strong> —<em> Adding the original input to the output of the convolutional block.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*TlcuN-PjLbXYSYQKqpTIzw.png" /><figcaption>Skip Connection</figcaption></figure><p>All algorithms train on the output ‘Y’ but, ResNet trains on F(X). In simpler words, ResNet tries to make F(X)=0 so that Y=X.</p><p><strong>SKIP CONNECTION</strong> is a direct connection that skips over some layers of the model. The output is not the same due to this skip connection. Without the skip connection, input ‘X gets multiplied by the weights of the layer followed by adding a bias term.</p><p>Then comes the activation function, F() and we get the output as :</p><p><strong>F( w*x + b ) (=F(X))</strong></p><p>But with skip connection technique, the output is :</p><p><strong>F(X)+x</strong></p><p>In ResNet-50, there are two kinds of blocks -</p><ol><li>Identity Block</li><li>Convolutional Block</li></ol><p>The value of ‘x’ is added to the output layer if and only if the</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/241/1*wwmasNpGzolM0FswrY0h3A.png" /></figure><p>If this is not the case, we add a <strong>‘convolutional block’</strong> in the shortcut path to make the input size equal to output size.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/0*2f4GK4NXT8w3svqg.JPG" /></figure><p>There are 2 ways to make the input size equal to the output size -</p><ol><li>Padding the input volume,</li><li>Performing 1*1 convolutions.</li></ol><p>Size of output layer is calculated using —</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/170/1*MF8XgxXzK8wzDwzNHYuT4Q.png" /></figure><p>where,</p><p>n= input image size,</p><p>p=padding,</p><p>s=stride,</p><p>f=number of filters.</p><p>For, 1*1 convolutional layers, size of output layer =</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/127/1*czgYO_l_WyNvf7ytZrCa9g.png" /></figure><p>given the input size is ‘n’.</p><p>In CNNs, to reduce the size of the image, pooling is used. Here, we make use of stride=2 instead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/0*mdh0V22fZIuq2XJw.png" /></figure><p><em>Thanks for reading! If you have any queries, feel free to reach me on </em><a href="http://aditi2507rastogi@gmail.com/"><strong><em>Gmail</em></strong></a><strong><em> </em></strong><em>or my </em><a href="https://www.linkedin.com/in/aditi-rastogi-961789191/"><strong><em>LinkedIn Profile</em></strong></a><strong><em> </em></strong><em>or </em><a href="https://github.com/AditiRastogi250701"><strong><em>GitHub</em></strong></a><em> profile.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b42934db431" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/resnet50-6b42934db431">ResNet50</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Color Spaces in OpenCV]]></title>
            <link>https://blog.devgenius.io/color-spaces-in-opencv-f0cd3e1d3fab?source=rss-d3646482e5f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0cd3e1d3fab</guid>
            <category><![CDATA[rgb]]></category>
            <category><![CDATA[hsv]]></category>
            <category><![CDATA[cmyk]]></category>
            <category><![CDATA[color-space]]></category>
            <category><![CDATA[opencv]]></category>
            <dc:creator><![CDATA[Aditi Rastogi]]></dc:creator>
            <pubDate>Tue, 18 Jan 2022 10:37:25 GMT</pubDate>
            <atom:updated>2022-01-24T22:10:30.119Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JTelwZnYYyYZ2yDO" /></figure><p>Color spaces are a way to characterize the shade channels existing in the photo that offers the photograph that precise hue. Some of the popular color spaces are —</p><ol><li>RGB</li><li>CMYK</li><li>HSV</li><li>LAB</li></ol><h3>RGB</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZcUs9hVGeR78z9wb" /><figcaption>Photo by <a href="https://unsplash.com/@mtchllyng?utm_source=medium&amp;utm_medium=referral">Mitchell Y</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>RGB stands for Red Green Blue color space. It is the default color space, but images aren’t really stored in RGB format instead they are stored in BGR format. OpenCV reads in images in BGR format because when OpenCV was first being developed, BGR color format was popular among camera manufacturers and image software providers. The main difference between RGB versus BGR is the arrangement of the subpixels for Red, Green, and Blue. RGB is arranged like that, but BGR is essentially in reverse with no adverse effect on color vibrancy and accuracy.</p><p>It is an additive color model i.e., all other colors except for the principal ones(they being red, green and blue), are formed by adding different intensities of the principal colors.</p><p>Eg,</p><p>RED+BLUE=PINK</p><p>RED+GREEN=YELLOW</p><p>RED+GREEN+BLUE=WHITE</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/223/1*dG9IvUhdZoTn_1eE0heqCA.png" /><figcaption>RGB color space</figcaption></figure><h3>CMYK</h3><p>CMYK stands for ‘Cyan Magenta Yellow Key’. It is a subtractive color space unlike RGB. It means that the colors here are obtained by subtracting RGB from white space. White light minus red leaves cyan, white light minus green leaves magenta, and white light minus blue leaves yellow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/280/1*YNG8JIrlnivbBY5L4sOAkg.png" /><figcaption>CMYK color space</figcaption></figure><p>CMYK color space is used in color printing and is also used to describe the printing process itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*Yg-W_S0y63zHqOdcR8udpA.png" /></figure><h3>HSV</h3><p>HSV stands for ‘Hue Saturation Value’ is an alternative representation of the RGB color model, designed to align more closely with the way human vision perceives color-making attributes. In these models, colors of each <a href="https://en.wikipedia.org/wiki/Hue"><em>hue</em></a> are arranged in a radial slice, around a central axis of neutral colors which ranges from black at the bottom to white at the top.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*ysSHt4pAYxZpPleXZu9M0g.png" /><figcaption>HSV color space</figcaption></figure><p>Hue is measured in degrees from 0 to 360. For instance, cyan falls between 181–240 degrees, and magenta falls between 301–360 degrees. The value and saturation of color are both analyzed on a scale of 0 to 100 percent. Most digital color pickers are based on the HSV scale, and HSV color models are particularly useful for selecting precise colors for art, color swatches, and digital graphics. It is mostly used for color segmentation purposes.</p><h3>LAB</h3><p>The Lab color space has three components.</p><ol><li>L — Lightness ( Intensity ).</li><li>A— color component ranging from Green to Magenta.</li><li>B — color components ranging from Blue to Yellow.</li></ol><p>In RGB color space the color information is separated into three channels but the same three channels also encode brightness information. On the other hand, in Lab color space, the L channel is independent of color information and encodes brightness only. The other two channels encode color.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*5CL-beHap93jiW5Ye0NDLQ.png" /></figure><ul><li>It is pretty clear from the figure that the change in illumination has mostly affected the L component.</li><li>The A and B components that contain the color information did not undergo massive changes.</li></ul><p>Each LAB value signifies a distinct color. The LAB color space is perceptually uniform, unlike the RGB color space. It means that any change in any component of the color space is perceived as the same degree change in color by the human eye.</p><p>Thus, through this article, we came to know about the different color spaces.</p><p><em>Thanks for reading! If you have any queries, feel free to reach me on </em><a href="http://aditi2507rastogi@gmail.com/"><strong><em>Gmail</em></strong></a><strong><em> </em></strong><em>or my </em><a href="https://www.linkedin.com/in/aditi-rastogi-961789191/"><strong><em>LinkedIn Profile</em></strong></a><strong><em> </em></strong><em>or </em><a href="https://github.com/AditiRastogi250701"><strong><em>GitHub</em></strong></a><em> profile.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0cd3e1d3fab" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/color-spaces-in-opencv-f0cd3e1d3fab">Color Spaces in OpenCV</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>