<?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 Büşra Sürücü on Medium]]></title>
        <description><![CDATA[Stories by Büşra Sürücü on Medium]]></description>
        <link>https://medium.com/@busrasurucu?source=rss-3c3229b194a3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*cOdrI5sxpZGqwDxipIBk_w.jpeg</url>
            <title>Stories by Büşra Sürücü on Medium</title>
            <link>https://medium.com/@busrasurucu?source=rss-3c3229b194a3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 15:34:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@busrasurucu/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[Is AI Hitting a Wall? Why ‘Scaling’ is Dead and What Comes Next]]></title>
            <link>https://medium.com/@busrasurucu/is-ai-hitting-a-wall-why-scaling-is-dead-and-what-comes-next-fee10a5cdf88?source=rss-3c3229b194a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/fee10a5cdf88</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[neuroscience]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[scaling]]></category>
            <dc:creator><![CDATA[Büşra Sürücü]]></dc:creator>
            <pubDate>Wed, 03 Dec 2025 09:27:36 GMT</pubDate>
            <atom:updated>2025-12-03T09:27:36.432Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6MTBTe5vcg8443dFt7vAgw.png" /></figure><p>For the last five years, the artificial intelligence landscape has been dominated by a single, prevailing strategy:<strong> Scaling.</strong> The formula was simple — larger datasets, massive clusters of processors, and billions of parameters. However, recent insights from industry leaders like<strong> Ilya Sutskever (co-founder of OpenAI and SSI)</strong> and <strong>Yann LeCun (Meta’s Chief AI Scientist)</strong> suggest that this era of<strong> “brute force”</strong> is drawing to a close. We are now pivoting back to a much more sophisticated <strong>“Age of Research”.</strong></p><p>Why is simply adding “more” no longer enough? The answer lies in the profound gap between how current models learn and how the human brain functions.</p><h3>1. Human Learning vs. Machine Learning: Quantity or Quality?</h3><p>Current Large Language Models (LLMs) have consumed nearly the entire internet. As Ilya Sutskever metaphorically puts it, “Data is the fossil fuel of AI,” and we have essentially tapped out the known reserves of human-generated text. Yet, despite processing trillions of words, these models still struggle with basic logic or produce <strong>“hallucinations.”</strong></p><p>The core issues here are Generalization and Sample Efficiency.</p><p><strong>The “Rote Memorization” Student</strong></p><p>Sutskever illustrates this problem with a compelling analogy: Imagine two students preparing for a coding competition. The first student (the AI) practices for 10,000 hours, memorizing the solutions to every possible problem. The second student (the human) practices for only 100 hours but grasps the underlying logic. When faced with a completely new, unseen problem, the student who understands the logic will outperform the one who merely memorized. Current models are like the first student; they appear incredibly knowledgeable, but often fail to generalize when taken out of their training distribution.</p><p><strong>A Cat’s Understanding of Physics</strong></p><p>According to Yann LeCun, even a house cat has a better grasp of the physical world than the most advanced LLMs. A cat understands that an object hiding behind a sofa hasn’t ceased to exist; it intuitively knows gravity and spatial dimensions. In contrast, LLMs do not understand the world; they learn the statistical relationships between words. Humans (and animals) can generalize massive amounts of knowledge from very little data, whereas models require massive amounts of data to achieve limited generalization.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sQmChNs-vuaJ760XsPQsZg.png" /></figure><h3>2. The Missing Piece: Emotions as a “Value Function”</h3><p>Humans possess an incredible learning efficiency driven by millions of years of evolution. Sutskever argues that evolution has endowed us with Value Functions in the form of emotions and instincts.</p><p>A striking example from neuroscience highlights this: Patients who suffer brain damage specifically to their emotional processing centers — while retaining their high IQ — often become incapable of making simple decisions. One famous case illustrating this condition was examined by neuroscientist <strong>Antonio Damasio</strong> and detailed in his book, <strong><em>Descartes’ Error</em>.</strong> He observed that without emotions to guide them, such patients might spend hours deciding which socks to wear, unable to weigh the “value” of one choice over another.</p><p>Our emotions act as an internal compass, whispering whether a direction is “good” or “bad” before we even reach the result. Current AI models lack this internal guidance. They might fix a bug in code only to introduce a new one, oscillating back and forth because they lack the judgment to evaluate their own process. Future models will need these types of value functions to not just generate results, but to reason about the quality of their path toward a solution.</p><h3>3. Future Vision: Searching for a New Recipe</h3><p>While 2020–2025 may have been the <strong>“Age of Scaling,”</strong> simply increasing the size of models is yielding diminishing returns. The concept of scaling “sucked all the air in the room,” leading to a market where there are “more companies than ideas” because everyone is following the same recipe.</p><p><strong>The Return to Research</strong></p><p>The industry is now looking for new paradigms to fundamentally change how models learn, rather than just what they read. Key areas of focus include:</p><ul><li><strong>Inference Time Compute:</strong> Instead of a model spitting out an answer instantly, systems are being designed to “think” and evaluate multiple possibilities before responding.</li><li><strong>World Models:</strong> Moving beyond text to systems that learn from interacting with the physical world (video, simulation), understanding cause and effect rather than just word prediction.</li><li><strong>Safe Superintelligence (SSI):</strong> Ilya Sutskever’s new venture, SSI, aims to bypass the commercial product race to focus solely on building a superintelligence. The goal is not just a smart system, but one that is robustly aligned to value “sentient life” — potentially leveraging the idea that a truly intelligent system, like a human with mirror neurons, would naturally develop empathy.</li></ul><h3>Conclusion</h3><p>Artificial intelligence is maturing. It is moving away from the obsession with <strong>“bigger is better”</strong> and tackling the harder question of <strong>“how to learn efficiently and correctly.”</strong> In this new phase, the efficiency of the human brain, the decision-making role of emotions, and a deeper understanding of reality will serve as the primary inspiration for the next generation of researchers.</p><p><em>Do you think AI needs emotions to truly reason? Let me know in the comments.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fee10a5cdf88" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bird’s-Eye View of Machine Learning]]></title>
            <link>https://medium.com/@busrasurucu/birds-eye-view-of-machine-learning-d084e1226603?source=rss-3c3229b194a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/d084e1226603</guid>
            <dc:creator><![CDATA[Büşra Sürücü]]></dc:creator>
            <pubDate>Thu, 14 Nov 2024 08:40:44 GMT</pubDate>
            <atom:updated>2024-11-14T08:40:44.706Z</atom:updated>
            <content:encoded><![CDATA[<p>I always like to take a bird’s-eye view of the topics I learn. I want to summarize everything we use in machine learning with one sentence each.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kLTTjouJZD1braAEnKlQMg.jpeg" /></figure><h3>1. Data Preparation and Processing</h3><p><strong>Data Collection:</strong> Identify and gather the necessary data sources for the project.</p><pre>import pandas as pd<br>import seaborn as sns<br>import matplotlib.pyplot as plt<br><br>df = sns.load_dataset(&quot;iris&quot;)<br>df.head()<br>df.describe()<br><br>sns.countplot(data=df, x=&quot;species&quot;)<br>plt.title(&quot;flower species distribution&quot;)<br>plt.show()</pre><p><strong>Data Preprocessing:</strong> Filling in missing values (e.g., mean/median strategies), cleaning outliers, handling outliers, and converting data types.</p><p><strong>Feature Engineering &amp; Processing:</strong></p><ul><li><strong>One-Hot Encoding, Label Encoding:</strong> Converting categorical data into numerical data.</li></ul><pre>df.isnull().sum()<br><br>from sklearn.preprocessing import LabelEncoder<br><br>label_encoder = LabelEncoder()<br>df[&quot;species&quot;] = label_encoder.fit_transform(df[&quot;species&quot;])<br><br>df.head()</pre><ul><li><strong>Normalization/Standardization:</strong> Scaling data to a specific range, for instance, using Min-Max or Z-score methods.</li><li><strong>Feature Engineering: </strong>Creating new features, transforming existing data, or enriching it numerically.</li></ul><pre>df[&quot;petal_area&quot;] = df[&quot;petal_lenght&quot;] * df[&quot;petal_width&quot;]<br>df.head()</pre><h3>2. Data Exploration and Visualization</h3><p><strong>Exploratory Data Analysis (EDA):</strong> Analyzing data and observing distributions using various visualizations (histogram, box plots) and correlation matrices.</p><p><strong>Natural Language Processing (NLP):</strong> If working with text-based data, converting text to vectors using techniques like TF-IDF, Word2Vec, or GloVe.</p><h3>3. Feature Selection and Dimensionality Reduction</h3><p><strong>Feature Selection:</strong> Improving model performance by removing unnecessary features and performing feature importance analysis.</p><pre>sns.heatmap(df.corr(), annot=True, cmap=&quot;coolwarm&quot;)<br>plt.title(&quot;attribute correlation matrix&quot;)<br>plt.show()p</pre><p><strong>Dimensionality Reduction Techniques:</strong></p><ul><li><strong>Principal Component Analysis (PCA):</strong> Reducing the number of features to make the data more compact.</li><li><strong>t-SNE and UMAP: </strong>Mainly used for visualizing high-dimensional data.</li></ul><h3>4. Learning Method Selection and Modeling</h3><p><strong>Learning Methods:</strong></p><ul><li><strong>Supervised Learning:</strong> Working with labeled data (e.g., regression and classification).</li><li><strong>Unsupervised Learning: </strong>Working with unlabeled data (e.g., clustering, dimensionality reduction).</li><li><strong>Reinforcement Learning:</strong> An agent learns the best actions in a reward-based environment.</li></ul><p><strong>Algorithm Selection:</strong></p><ul><li><strong>Regression and Classification Algorithms:</strong> Choosing the right algorithm based on the problem type (e.g., Linear Regression, Logistic Regression, SVM, Decision Tree).</li><li><strong>Specialized Models:</strong> Using specific neural network structures for certain problems, such as LSTM for time-series data or Transformers for text classification.</li><li><strong>Ensemble Methods:</strong> Using techniques like RandomForest, Gradient Boosting, XGBoost to enhance model accuracy.</li></ul><pre>from sklearn.model_selection import train_test_split<br>from sklearn.ensemble import RandomForestClassifier<br>from sklearn.metrics import accuracy_score<br><br>X = df.drop(&quot;species&quot;, axis=1)<br>y = df[&quot;species&quot;] <br>X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)<br><br>model = RandomForestClassifier(random_state=42)<br>model.fit(X_train, y_train)<br><br>y_pred = model.predict(X_test)<br>print(f&quot;Model Accuracy: {accuracy_score(y_test, y_pred)}&quot;)</pre><h3>5. Model Training and Optimization</h3><p><strong>Model Training:</strong> Training the model on data using the selected algorithm.</p><p><strong>Optimization Techniques:</strong></p><ul><li><strong>Gradient Descent and Its Variants: </strong>The fundamental method to minimize model error.</li><li><strong>Stochastic Gradient Descent (SGD), Adam, RMSProp: </strong>Using variants to update parameters for faster learning.</li></ul><p><strong>Ensemble Techniques:</strong> Using Boosting and Bagging methods to make the model more robust.</p><h3>6. Model Evaluation and Improvement</h3><p><strong>Evaluation Metrics:</strong> Using metrics like Accuracy, Precision, Recall, F1 Score, AUC-ROC to measure model performance.</p><pre>from sklearn.metrics import classification_report, confusion_matrix<br><br>print(&quot;Model Performance Report:\n&quot;)<br>print(classification_report(y_test, y_pred))<br><br>confusion_matrix = confusion_matrix(y_test, y_pred)<br>sns.heatmap(confusion_matrix, annot=True, fmt=&quot;d&quot;, cmap=&quot;Blues&quot;, xticklabels=label_encoder.classes_, yticklabels=label_encoder.classes_)<br>plt.title(&quot;Confusion Matrix&quot;)<br>plt.xlabel(&#39;Estimated&#39;)<br>plt.ylabel(&#39;Real&#39;)<br>plt.show()</pre><p><strong>Cross Validation:</strong> Testing the model’s performance on different data subsets to ensure generalizability.</p><p><strong>Hyperparameter Tuning:</strong> Optimizing the model’s hyperparameters using Grid Search or Random Search methods.</p><pre>from sklearn.model_selection import GridSearchCV<br><br>param_grid = {<br>    &quot;n_estimators&quot;: [50, 100, 200],<br>    &quot;max_depth&quot;: [None, 10, 20, 30],<br>    &quot;min_samples_split&quot;: [2, 5, 10]<br>}<br><br>grid_search = GridSearchCV(RandomForestClassifier(random_state=42), param_grid, cv=5)<br>grid_search.fit(X_train, y_train)<br><br>print(f&quot;Best Parameters: {grid_search.best_params_}&quot;)</pre><h3>7. Testing and Comparing Model Performance</h3><p><strong>A/B Testing and Experimental Design:</strong> Conducting tests to compare different models or methods to select the best one.</p><p><strong>Anomaly Detection:</strong> Identifying anomalies to ensure the model doesn’t produce unexpected results in production.</p><h3>8. Model Deployment, Monitoring, and Challenges</h3><pre>import numpy as np<br><br>real_labels = y_test<br>predicted_labels = model.predict(X_test)<br><br>errors = np.sum(real_labels != predicted_labels)<br>print(f&quot;Total Number of Wrong Predictions: {errors}&quot;)<br><br>if errors &gt; 10: <br>    print(&quot;The model needs to be retrained...&quot;)<br>    model.fit(X_train, y_train)</pre><p><strong>Model Deployment:</strong> Integrating the model into production (e.g., via an API, web application, or mobile app).</p><p><strong>Challenges:</strong></p><ul><li><strong>Compatibility Issues:</strong> Problems when running the model in production (e.g., library version mismatches).</li><li><strong>Scalability:</strong> Ensuring the model can serve a large user base with consistent performance.</li><li><strong>Security and Privacy:</strong> Ensuring the model’s security and meeting privacy standards for sensitive data usage.</li></ul><p><strong>Monitoring Model Performance:</strong></p><ul><li><strong>Model Drift:</strong> A decline in accuracy over time due to changes in the data.</li><li><strong>Data Drift:</strong> Changes in the data from what the model was originally trained on.</li></ul><p><strong>Handling Model Errors and Retraining:</strong></p><ul><li><strong>Unexpected Errors: </strong>Addressing issues when the model starts producing inaccurate predictions.</li><li><strong>Retraining with New Data:</strong> Training the model again with new incoming data to improve performance.</li><li><strong>A/B Testing:</strong> Comparing a new model with the old one to ensure a safe transition to production.</li></ul><p><strong>Version Management and Rollback:</strong></p><ul><li><strong>Rollback Procedures:</strong> Reverting to a previous model version if an error occurs.</li><li><strong>Version Management:</strong> Keeping track of different versions of the model for reference.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d084e1226603" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Feature Engineering]]></title>
            <link>https://medium.com/@busrasurucu/feature-engineering-05d0d6557fe3?source=rss-3c3229b194a3------2</link>
            <guid isPermaLink="false">https://medium.com/p/05d0d6557fe3</guid>
            <category><![CDATA[feature-engineering]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Büşra Sürücü]]></dc:creator>
            <pubDate>Wed, 26 Jun 2024 06:57:20 GMT</pubDate>
            <atom:updated>2024-06-26T09:11:21.836Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*n2FceUw-sfx9l7sL.jpg" /></figure><p>Feature Engineering is a fundamental process used in data science and machine learning projects. It involves creating, selecting, and transforming meaningful features or variables from raw data in order to enhance the performance of machine learning models. It is often a crucial step that directly influences the success of a project.</p><p><strong>Why is it Important?</strong></p><p>The importance of Feature Engineering stems from several key reasons:</p><ol><li><strong>Improving Model Performance:</strong> Well-chosen or engineered features enable your model to make more accurate predictions, thereby increasing the success rate of your project.</li><li><strong>Adapting to Data:</strong> Raw data is often not suitable for direct use in machine learning models. Feature Engineering helps by creating features in a format that best represents your data, making it easier for your model to understand.</li><li><strong>Addressing Overfitting and Efficiency:</strong> Unnecessary or too many features can lead to overfitting or slow down your processes. Effective feature engineering can mitigate or prevent these issues.</li></ol><p><strong>The Role of Feature Engineering in Machine Learning Projects</strong></p><p>In machine learning projects, Feature Engineering plays the following crucial roles:</p><ul><li><strong>Data Preparation:</strong> Each feature in your dataset directly impacts your model’s ability to train and make predictions. Feature Engineering ensures your data is processed and prepared appropriately.</li><li><strong>Enhancing Performance:</strong> When the right features are selected or engineered, your model’s accuracy and predictive power improve significantly, thereby enhancing overall project success.</li><li><strong>Pre-processing:</strong> Handling tasks such as filling missing values, dealing with outliers, and encoding categorical variables are all part of Feature Engineering, making your dataset suitable for your model.</li></ul><p>These core aspects of Feature Engineering play a critical role in the success of a machine learning project. A well-executed feature engineering strategy can elevate your project’s performance and enable your model to make more reliable predictions.</p><p><strong>Feature Engineering Techniques</strong></p><p>Feature engineering techniques are used for purposes such as improving model performance, making the dataset cleaner and more meaningful, enhancing the model’s generalization ability, and reducing the dimensionality of features. These techniques include:</p><h3>Missing Value Handling :</h3><p>The process of handling missing values involves identifying these gaps and deciding on an appropriate method to address them. Here are some common techniques for handling missing values:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QoNRUwMMeaNUCh7l" /></figure><ol><li><strong>Filling with Mean, Median, or Mode:</strong></li></ol><ul><li><strong>Mean Imputation:</strong> For numerical variables, missing values can be replaced with the mean of the available values. This method is simple but can distort the data distribution if there are many missing values.</li><li><strong>Median Imputation:</strong> For numerical variables, replacing missing values with the median is useful when the data has outliers, as the median is less sensitive to extreme values.</li><li><strong>Mode Imputation:</strong> For categorical variables, missing values can be replaced with the most frequent value (mode).</li></ul><p><strong>2. Estimating with a Regression Model:</strong></p><ul><li><strong>Regression Imputation:</strong> This method involves predicting the missing values based on other available features in the dataset. A regression model is trained on the non-missing data, and the model is then used to predict the missing values.</li><li>Example: If a dataset has missing values for the ‘height’ column, you could use other columns like ‘age’, ‘weight’, and ‘gender’ to predict and fill the missing height values using a regression model.</li></ul><p><strong>3. Deleting Rows or Columns:</strong></p><ul><li><strong>List wise Deletion:</strong> This method involves removing rows that contain any missing values. It is straightforward but can lead to significant data loss if many rows have missing values.</li><li><strong>Column Deletion:</strong> If a column has a high percentage of missing values, it might be more practical to remove the entire column, especially if the column is not crucial for analysis.</li></ul><p><strong>4. Using Algorithms that Handle Missing Data:</strong></p><ul><li>Some machine learning algorithms can handle missing values internally. For instance, decision trees and algorithms based on them (like Random Forests) can handle missing data to some extent without requiring imputation.</li></ul><h3><strong>Outlier Detection and Treatment:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9Dwhaaccdv1mj4ZD.png" /><figcaption>Source:<a href="https://www.cuemath.com/data/outlier/">https://www.cuemath.com/data/outlier/</a></figcaption></figure><p>Outlier detection and treatment are essential steps in data preprocessing to ensure that anomalous data points do not adversely affect the analysis or modeling process. Here’s an explanation of the techniques mentioned:</p><ol><li><strong>Z-score Method:</strong></li></ol><ul><li>The Z-score method identifies outliers by calculating how many standard deviations a data point is away from the mean of the dataset.</li></ul><p>Steps:</p><ul><li>Compute the mean (μ) and standard deviation (σ) of the dataset.</li><li>Calculate the Z-score for each data point using the formula:</li></ul><p>Z=(x-μ)/σ , where x is the data point.</p><figure><img alt="Curtis, A. E., Smith, T. A., Ziganshin, B. A.,et al.(2016). The Mystery of the Z-Score. Thieme Medical Publishers." src="https://cdn-images-1.medium.com/max/356/1*WSjfBXFQqHh3NIxHKtoWLA.png" /><figcaption>Source: Curtis, A. E., Smith, T. A., Ziganshin, B. A.,et al.(2016). The Mystery of the Z-Score. Thieme Medical Publishers.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EwaTEW3Dh36cisbD2lQDqw.png" /><figcaption>Source: Curtis, A. E., Smith, T. A., Ziganshin, B. A.,et al.(2016). The Mystery of the Z-Score. Thieme Medical Publishers.</figcaption></figure><ul><li>Typically, data points with a Z-score greater than a threshold (commonly 3 or -3) are considered outliers.</li></ul><p><strong>2. Interquartile Range (IQR) Method:</strong></p><ul><li>The IQR method uses the quartiles of the dataset to detect outliers based on the spread of the data.</li></ul><p>Steps:</p><ul><li>Calculate the first quartile (Q1) and third quartile (Q3) of the dataset.</li><li>Compute the IQR as IQR=Q3−Q1.</li><li>Define outliers as data points that fall below Q1−1.5×IQR or above Q3+1.5×IQR.</li></ul><p><strong>Outlier Treatment Techniques:</strong></p><p>Once outliers are detected, various methods can be used to handle them:</p><figure><img alt="How to Make Your Machine Learning Models Robust to Outliers - KDnuggets" src="https://cdn-images-1.medium.com/proxy/0*_SHBO9KupWceAJsa." /><figcaption>Source:<a href="https://www.r-bloggers.com/2016/12/outlier-detection-and-treatment-with-r/">https://www.r-bloggers.com/2016/12/outlier-detection-and-treatment-with-r/</a></figcaption></figure><ol><li><strong>Imputation or Transformation:</strong></li></ol><ul><li>For mild outliers, you may choose to impute them with a statistical measure like the mean, median, or mode of the dataset.</li><li>Alternatively, transforming the data can help normalize the distribution and mitigate the impact of outliers.</li></ul><ol><li><strong>Trimming:</strong></li></ol><ul><li>Trimming involves removing outliers from the dataset completely. This approach is suitable when outliers are suspected to be errors or do not represent the typical behavior of the data.</li></ul><p><strong>2. Winsorization:</strong></p><ul><li>Winsorization replaces extreme outliers with less extreme values. For example, you can replace values above a certain percentile with the value at that percentile.</li></ul><p>In summary, outlier detection methods like Z-score and IQR help identify data points that deviate significantly from the norm.</p><h3><strong>Encoding Categorical Variables:</strong></h3><p>Encoding categorical variables is the process of converting categorical data into numerical values that can be used for machine learning algorithms.</p><ol><li><strong>One Hot Encoding</strong></li></ol><p>One-Hot Encoding is the transformation of categorical variables by creating new columns for each unique category. Each column indicates the presence or absence of the respective category, usually taking values of 0 or 1. For example, if the “color” variable has different colors such as red, green, and blue, One-Hot Encoding will create separate columns for these colors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/0*StdWO9pB8adOZqiB.png" /><figcaption>Source:<a href="https://towardsdatascience.com/encoding-categorical-variables-one-hot-vs-dummy-encoding-6d5b9c46e2db">https://towardsdatascience.com/encoding-categorical-variables-one-hot-vs-dummy-encoding-6d5b9c46e2db</a></figcaption></figure><p><strong>2. Label Encoding</strong></p><p>Label Encoding converts categorical values into numerical format by assigning a unique integer to each category. For instance, if we have a “country” variable with countries like Turkey, Germany, and France, Label Encoding would assign sequential integers starting from 0 to represent each country.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/0*N-xxvIs0URvUn04K.png" /><figcaption>Source: <a href="https://ai-ml-analytics.com/categorical-encoding-label-encoding/">https://ai-ml-analytics.com/categorical-encoding-label-encoding/</a></figcaption></figure><p>The choice of encoding method depends on the characteristics of your dataset and the machine learning algorithm you are using. One-Hot Encoding is typically preferred for nominal (unordered) data, while Label Encoding can be used for ordinal (ordered) data. Proper encoding ensures your dataset is correctly interpreted and your machine learning model produces accurate results.</p><h3><strong>Scaling and Normalization:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QKjVtfc4As4I9Ft_-TWayw.png" /><figcaption>Source: <a href="https://www.mathsisfun.com/data/standard-normal-distribution.html">https://www.mathsisfun.com/data/standard-normal-distribution.html</a></figcaption></figure><p>Scaling and normalization are preprocessing techniques used to standardize the range of independent variables or features of a dataset. This process is essential in machine learning algorithms that are sensitive to the scale of input features. Here are the two main techniques:</p><ol><li><strong>Min-Max Scaling (Normalization)</strong>:</li></ol><p><strong>Formula</strong>: X<em>norm</em>​=​(X − X<em>min)​​ / ( </em>X<em>max</em>​ − X<em>min)</em></p><p><strong>Description</strong>: This method rescales the features to a fixed range between 0 and 1. It works by subtracting the minimum value of the feature (X_min) and then dividing by the range of the feature (X_max — X_min).</p><p><strong>Usage</strong>: Min-Max scaling is sensitive to outliers since it compresses all inliers within a fixed range. It is suitable when the data distribution is not Gaussian(normal) or when the algorithm requires features to be on a 0–1 scale.</p><p><strong>2. Standardization (Z-score Normalization)</strong>:</p><p><strong>Formula</strong>: X<em>std</em>​=(X−μ​) / σ</p><p><strong>Description</strong>: This method transforms the data to have a mean (μ) of 0 and a standard deviation (σ) of 1. It achieves this by subtracting the mean of the feature (μ) and then dividing by the standard deviation (σ).</p><p><strong>Usage</strong>: Standardization is less affected by outliers compared to Min-Max scaling. It assumes that the data follows a Gaussian distribution (bell curve distribution) and is suitable when the algorithm assumes zero-centered data.</p><p><strong>Key Considerations</strong>:</p><ul><li>Scaling and normalization help improve the performance and convergence of machine learning algorithms.</li><li>The choice between Min-Max scaling and Standardization depends on the distribution of the data and the requirements of the specific algorithm being used.</li><li>It’s important to apply scaling and normalization only to the training data and then use the same scaling parameters to transform the test or validation data to avoid data leakage and ensure consistency.</li></ul><h3><strong>Feature Selection Methods:</strong></h3><p>Feature selection methods are techniques used to select the most relevant features from a dataset for use in model training. The main goal is to improve the model’s performance by removing irrelevant or redundant features, which can reduce the risk of overfitting, decrease computational cost, and enhance the model’s interpretability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/0*xzGxrINWjuv6ncmY" /><figcaption>Source: <a href="https://themanoftalent.medium.com/feature-selection-9b1609f1f6b0">https://themanoftalent.medium.com/feature-selection-9b1609f1f6b0</a></figcaption></figure><p>Here are some common feature selection methods:</p><p>The variance threshold method removes all features whose variance does not meet a certain threshold. This is based on the idea that low-variance features contain less information and are less likely to be useful for model training.</p><ul><li><strong>Example:</strong> If a feature has the same value across all samples, its variance is zero and it can be removed from the dataset.</li></ul><h4>2. Correlation Analysis:</h4><p>Correlation analysis involves measuring the correlation between features and the target variable or between pairs of features. Highly correlated features can be redundant, and removing one of the correlated pairs can simplify the model without significant loss of information.</p><ul><li><strong>Example:</strong> Using Pearson correlation to measure the linear relationship between features.</li></ul><h4>3. Recursive Feature Elimination (RFE):</h4><p>Recursive Feature Elimination is a wrapper method that works by recursively removing the least important features and building the model on the remaining features. It uses the model’s performance to determine the importance of each feature.</p><ul><li><strong>Example:</strong> Using a linear regression model to eliminate features step by step.</li></ul><p>In conclusion feature engineering is a crucial step in the data preprocessing pipeline. It involves various techniques such as handling missing values, detecting and treating outliers, encoding categorical variables, scaling and normalization, and extracting features from text and image data. These techniques help in transforming raw data into a form that is more suitable for modeling.</p><p>Feature engineering plays a pivotal role in enhancing model performance and ensuring that the models generalize well to unseen data. By carefully selecting and transforming features, we can improve the accuracy, efficiency, and interpretability of our machine learning models. Effective feature engineering can significantly reduce overfitting, handle data irregularities, and lead to better insights from the data. In essence, mastering feature engineering is key to building robust and high-performing machine learning systems.</p><p>Here is the End-to-End Feature Engineering &amp; Data Preprocessing. You can check my Github page:</p><p><a href="https://github.com/Bsrsrc/Diabetes-Feature-Engineering/tree/main">https://github.com/Bsrsrc/Diabetes-Feature-Engineering/tree/main</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c8JI7VOasf-9zRQdUWhJBA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=05d0d6557fe3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>