Zero Labs
Industry News / AI

Do You Speak “Data”?

Source · Towards AI By Akshada Kashyap

From the publisher’s feed, collected in the ZeroLabs newsroom.

The base of a good machine learning model is always good data. The cleaner and better understood your data is, the stronger your predictions will be. It is much easier to predict the behavior of a habitual person than someone who lives with zero routine — pattern recognition relies on the assumption that a system behaves consistently, free from hidden noise or unexamined quirks.I have taken multiple courses during my bachelor’s degree focused on data science and machine learning, yet none of them truly taught me how to speak with data. Today, I’ll walk you through a diabetes prediction dataset to show you how to interrogate your data, uncover hidden anomalies, and translate those insights into a baseline machine learning model.Let’s dive into it.The RecipeThe dataset (obviously): https://www.kaggle.com/datasets/iammustafatz/diabetes-prediction-datasetAny Python environment (feel free to use Google Colab or Kaggle Notebooks)And a little bit of curiosity 🥸The Code WalkthroughWe begin with importing the dataset through Kaggle:import kagglehub# Download latest version path = kagglehub.dataset_download("iammustafatz/diabetes-prediction-dataset")print("Path to dataset files:", path)You can find your dataset using:# List files in the downloaded directoryprint("Files in dataset directory:", os.listdir(path))data_file_path = os.path.join(path, 'diabetes_prediction_dataset.csv')data_file_pathInspect the datasetLike with any project, you must be curious about the data. It helps to ask a few questions like:What are we working with?How much are we working with?Are there any data points that look out of place?How would I translate (transform) this data into something that is easier to work with?We take our first look at the dataset using .head()df = pd.read_csv(data_file_path)print(df.head())This gives us an idea of what the dataset & its values look like. Before we jump to noting down any observations, we execute a few more lines of code:Printing the last 5 rows of the datasetUsing Pandas’ .describe() is an easy way to understand the numbers in your dataset. It shows you the summary statistics of your data, including the min value per column, max value per column, the number of values per column and even the mean value per column. These values can help you understand if there’s any data that’s out of place.df.describe()We finish off with printing the datatypes of each column and also the shape of the dataset, which tells us how many rows and columns we are working with.for item in df.columns.to_list(): print(item, ":", df[item].dtype)Now, we can delve into the output of each piece of code, and understand what the dataset is comprised of.You would have noticed from the output of df.head() that the values of the column smoking_history seem very inconsistent: “never”, “No Info”, “current”, etc. Can you rule out the rows with “No Info” under smoking history as “missing information”? This is worth exploring.Multiple values with multiple meanings in this columnExamine the output of df.describe(), especially the min, max, mean, and percentile values. Remember that min represents the 0th percentile and max is the 100th percentile. Try to compare these values together and note down any anomalies. There’s something hiding in plain sight in the picture below:Summary statistics of the datasetIf you also noticed how the max value of the bmi column is a little high when compared against the 75% percentile, you have a keen eye! The huge jump from 29.580000 to 95.690000 is crazy big, and realistically speaking, even amongst 100,000 people (which is the number of rows of the dataset), there aren’t going to be very many people of this size. For context, a 6 ft. tall individual would have to weigh 318 kgs.Outlier in the “BMI” columnAnother good observation would be to note that out of all the columns, only gender and smoking_history have non-numeric values. An even better observation is that while the columns hypertension and heart_disease are numeric, they do not represent continuous measurements. They are categorical classes disguised as numbers, where each integer corresponds to a distinct state. For the value 0 in hypertension or heart_disease, the meaning translates to "no" / "negative" (the person does not have hypertension or heart disease), while 1 translates to "yes" / "positive" (the person has been diagnosed). This concept of representing categories with numbers is called label encoding (or binary encoding for two classes). In contrast, columns like gender and smoking_history are still raw text and will need to be encoded to maintain consistency.A lot of the times, we jump to conclusions and believe that our assumptions are right. For example, you might have assumed that there are 2 genders within the dataset through the df.head() code or the df.tail() code: "Male" and "Female". Some of you might have assumed that the dataset could be gender-inclusive and have many more identities recorded. Assumptions might be great for physics, but with data, we must always ensure we know what we are working with.To answer the question, “How many gender values have been recorded in the dataset?”, or generally speaking, “How many different classes have been recorded per categorical field?”, we use the following code snippet:No. of classes per categorical columnJudging from the output, hypertension, heart_disease and diabetes are binary encoded columns with 0/1 as values. gender has 3 values and smoking_history has 6! We can print them using the following code to understand what values have been recorded and what they mean.Printing all unique values per categorical columnHmm. Are you also confused about the multiple values under “smoking_history”? What the hell does “ever” stand for? Maybe we should assume it to be representation of “has smoked at least once in their lives”? But how would we distinguish it from the “not current” value? What if “ever” is a misspelling for “never”? This seems to be the more likely option.To confirm this, we must hope to not see >0.1% of the dataset having such an erroneous spelling. We can print the number of rows where “smoking_history” = “ever” using the following code snippet:Printing all the rows where “smoking_history” = “ever”4000+ rows is indicative that maybe such an error is unlikely. What’s great about living in this day and age is having tools to consult about questions like these; which is when I decided to ask Gemini on Colab, who was very helpful with the answer.Gemini’s answer on the difference between “ever” and “not current” smokersWith a quick Google search to verify the same, it is easy to understand how each class of smoker in the given dataset mean different things:“ever” smokers: These refer to people who have smoked at least 100+ cigarettes at some points in their lives, with no data indicative of whether they currently smoke or have stopped. You can look at the definition of this here: https://en.wiktionary.org/wiki/ever-smoker“current” smokers: These refer to people who are actively smoking at the time of conducting the research survey.“not current” smokers: These refer to people who have stopped smoking, but were formerly engaged with the habit.Another issue with the field “smoking_history” is the value “No Info” — this usually classifies as “missing information” for any dataset. Before we decide to follow through with the usual methods to handle missing data, we must check if it would affect the overall dataset. This means that we must ensure that the number of rows with “missing information” for “smoking_history” must be very small, which would allow us to remove these rows.Printing the rows where “smoking_history” = “No Info”Over 35,000 rows in the dataset have no information recorded for the smoking history of patients! Removing 35% of the dataset because we believe this lack of information to be insufficient information would be the wrong call. We shall continue without making any changes to the dataset as of now. There is still much to explore.Univariate analysis of data refers to using methods to analyze each feature within a dataset independently. This method does not involve or take into account any interdependent relationships between the features of a dataset. While there are several methods to perform univariate analysis, we will use simple histogram plots to analyze the numerical fields in our dataset: age, bmi, hba1c, and blood_glucose_level.import matplotlib.pyplot as pltimport seaborn as sns# Set the aesthetic style of the plotssns.set_style("whitegrid")# Get the list of column names, excluding the specified onesexcluded_cols = ['gender', 'hypertension', 'heart_disease', 'diabetes', 'smoking_history']columns = [col for col in df.columns.tolist() if col not in excluded_cols]# Determine the number of rows and columns for the subplot grid# A common practice is to have 3 columns per row for better readabilityn_cols = 3n_rows = (len(columns) + n_cols - 1) // n_cols# Create subplots for each featureplt.figure(figsize=(n_cols * 5, n_rows * 4))for i, col in enumerate(columns): plt.subplot(n_rows, n_cols, i + 1) sns.histplot(data=df, x=col, kde=True) # kde=True adds a Kernel Density Estimate plt.title(f'Distribution of {col}') plt.xlabel(col) plt.ylabel('Count')plt.tight_layout()plt.show()Histograms for “age”, “bmi”, “hba1c”, and “blood_glucose_level”Some important observations to make from the above histograms:Notice how in the histogram for age, the distribution seems to be fairly evenly spread out until the sudden spike in number when the age reaches 80? Is this indicative of how the largest demographic in the dataset is people around the age of 80? Actually, the more likely cause for this is a concept called “top-coding” or “age-capping”, where people of the age 80 or above are all grouped into the same category as 80 as per a HIPAA privacy compliance method.In the histogram for bmi, we notice how there is a peak near 25–30, which is in-line with the values we noted through df.describe(): the mean, 25th, 50thand 75thpercentile all lie in or around this range. But the graph still stretches out (skews) to the far right, which is probably due to the max value of 95+ BMI. This graph is also a textbook example of a right-skewed graph (a graph with its single peak leaning towards the left), which means that there are statistical outliers in the dataset causing this. Another important observation is the needle spike in the middle, which means that there is one point that has been heavily repeated across the dataset, which is something to look into further.In the histograms for both hba1c annd blood_glucose_level, there are multiple peaks with no clear pattern immediately visible to us. These are called multimodal graphs, which are graphs with multiple peaks instead of a single peak.Investigating the “needle spike” in the bmi histogram further involves making an assumption and attempting to prove it right. Is it possible that the dataset curator maybe filled some data for this column? This would mean that the number of rows with a specific number (possibly the mean, because of its position in the graph) as the value for BMI would be abnormally high. We can confirm it using:Printing the rows where “bmi” = mean of “bmi”Approximately 25% of the dataset has the same value for BMI, a metric that is directly dependent on a person’s height & weight. It is safe to assume that the data for these 25k+ rows was filled using a method called mean imputation, which is used to fill missing data with the column’s overall average.Having analysed each feature independently, we now move into analysing the interdependency between 2 features (at a time) in the dataset. This involves a bunch of bivariate analysis techniques. We can figure out if and how feature A affects feature B in the dataset. For example, let’s try to use these techniques to answer the following few questions:Is a person’s smoking history directly correlated to diabetes?How much more likely is someone with heart_disease or hypertension to also have diabetes?Are people with higher BMIs more likely to get diabetes?Does the older population have a higher prevalence of diabetic patients?Notice how each question is attempting to find the correlation between 2 factors only. Of course, one can analyze the interdependency of multiple (2+) factors in a dataset, but I will not be including any multivariate analysis techniques in this blog post here.Let’s answer the questions from above now. To understand the correlation between smoking history and diabetes, we use the following code snippet:# Calculate the number of people with and without diabetes for each smoking history categorysmoking_diabetes_counts = df.groupby(['smoking_history', 'diabetes']).size().unstack(fill_value=0)# Calculate the total number of people for each smoking history categorysmoking_diabetes_counts['Total'] = smoking_diabetes_counts[0] + smoking_diabetes_counts[1]# Calculate the percentage of people with diabetes for each smoking history categorysmoking_diabetes_counts['Diabetes_Prevalence'] = (smoking_diabetes_counts[1] / smoking_diabetes_counts['Total']) * 100# Display the resultsdisplay(smoking_diabetes_counts.sort_values(by='Diabetes_Prevalence', ascending=False))import matplotlib.pyplot as pltimport seaborn as sns# Create a bar plot to visualize diabetes prevalence by smoking historyplt.figure(figsize=(10, 6))sns.barplot(x=smoking_diabetes_counts.index, y=smoking_diabetes_counts['Diabetes_Prevalence'], palette='viridis')plt.title('Diabetes Prevalence by Smoking History')plt.xlabel('Smoking History')plt.ylabel('Diabetes Prevalence (%)')plt.xticks(rotation=45, ha='right')plt.tight_layout()plt.show()Bar graph of smoking history vs. diabetes prevalenceFrom the bar graph above, we notice that former smokers have the highest prevalence of diabetes (~17%). This is higher than the prevalence of diabetes amongst current smokers. This could be because:People tend to quit smoking due to age (after reaching a specific age)People tend to quit smoking due to medical issues like heart disease or hypertensionTo confirm this, it would require doing multivariate analysis between smoking_history, age, heart_disease, and hypertension. You would compare the first subgroup of people that are younger (age To understand how much more likely a person with hypertension and/or heart disease is to have diabetes, we use the following code snippet:import matplotlib.pyplot as pltimport seaborn as snscategorical_cols = ['hypertension', 'heart_disease']plt.figure(figsize=(15, 5))for i, col in enumerate(categorical_cols): plt.subplot(1, len(categorical_cols), i + 1) # Calculate diabetes prevalence for each category prevalence = df.groupby(col)['diabetes'].mean() * 100 sns.barplot(x=prevalence.index, y=prevalence.values, palette='coolwarm') plt.title(f'Diabetes Prevalence by {col}') plt.xlabel(col) plt.ylabel('Diabetes Prevalence (%)') plt.xticks(rotation=45, ha='right')plt.tight_layout()plt.show()Plots showing diabetes prevalence in people with & without hypertension / heart diseaseFrom the visualization above, it is easy to understand that diabetes is much more prevalent in populations that have heart disease and/or hypertension. While there seems to be a higher correlation of diabetes with hypertension/heart disease, this is not conclusive of whether one medical issue causes the other, i.e., we cannot confirm that diabetes causes hypertension/heart disease (or the other way around). Correlation is not causation.This brings us to answering our next question: Are people with higher BMIs more likely to get diabetes? While we cannot answer whether a higher BMI can cause diabetes in a person, we can definitely visualize the prevalence of diabetes in people with higher BMIs.Alongside BMI, we can analyze the correlation between other numerical categories vs. diabetes as well:numerical_cols = ['age', 'bmi', 'HbA1c_level', 'blood_glucose_level']plt.figure(figsize=(18, 10))for i, col in enumerate(numerical_cols): plt.subplot(2, 2, i + 1) # 2 rows, 2 columns for subplots sns.boxplot(data=df, x='diabetes', y=col, palette='viridis') plt.title(f'{col} Distribution by Diabetes Status') plt.xlabel('Diabetes (0: No, 1: Yes)') plt.ylabel(col)plt.tight_layout()plt.show()Box plots of numerical categories vs. diabetes statusThe box plots of all numerical categories vs. diabetes is shown above. Our general knowledge of high HbA1c_level and blood_glucose_level levels being associated with diabetes is also aligned with in the dataset. In the box plots for age and bmi, though, there are circular points outside the upper and lower bound limits, which represent outliers in their distributions.We can use simple IQR methods (interquartile methods) to remove the outliers in both the age and bmi categories and re-plot these analyses.Q1 = df['bmi'].quantile(0.25)Q3 = df['bmi'].quantile(0.75)IQR = Q3 - Q1lower_bound = Q1 - 3 * IQRupper_bound = Q3 + 3 * IQRprint(f"lower bound: {lower_bound}")print(f"upper bound: {upper_bound}")df_no_outliers = df[(df['bmi'] >= lower_bound) & (df['bmi'] print(f"Original DataFrame shape: {df.shape}")print(f"DataFrame shape after removing BMI outliers: {df_no_outliers.shape}")df = df_no_outliers.copy()Outlier removal for “bmi” column in datasetThe code snippet above removes the outliers for the bmi column. You can extend it to remove outliers for the age column as well. The following code snippet is to visualize the histogram of bmi (univariate analysis) after outlier removal.plt.figure(figsize=(8, 5))sns.histplot(data=df, x='bmi', kde=True)plt.title('Distribution of BMI After Outlier Removal')plt.xlabel('BMI')plt.ylabel('Count')plt.tight_layout()plt.show()Distribution of BMI after outlier removalCompare the image above to the distribution of bmibefore outlier removal — you would notice how the peak is no longer leaning towards the left and is in the middle! We have effectively done away with the right-skew in its distribution.We can re-examine the box plots for all numerical categories vs. diabetes prevalence through the following piece of code to understand how the plots changed after outlier removal:numerical_cols = ['age', 'bmi', 'HbA1c_level', 'blood_glucose_level']plt.figure(figsize=(18, 10))for i, col in enumerate(numerical_cols): plt.subplot(2, 2, i + 1) # 2 rows, 2 columns for subplots sns.boxplot(data=df, x='diabetes', y=col, hue='diabetes', palette='viridis', legend=False) plt.title(f'{col} Distribution by Diabetes Status') plt.xlabel('Diabetes (0: No, 1: Yes)') plt.ylabel(col)plt.tight_layout()plt.show()Box Plots of numerical categories vs. diabetes after outlier removalThe box plot of bmi vs. diabetes has improved by so much! The correlation between diabetes and bmi is also easier to see in this graph.The last question asks: does the older population have a higher prevalence of diabetes? This time, we can visualize the relationship between age and diabetes through a line graph:import matplotlib.pyplot as pltimport seaborn as sns# Calculate the probability of diabetes for each ageage_diabetes_probability = df.groupby('age')['diabetes'].mean().reset_index()age_diabetes_probability['diabetes_probability'] = age_diabetes_probability['diabetes'] * 100plt.figure(figsize=(12, 6))sns.lineplot(data=age_diabetes_probability, x='age', y='diabetes_probability')plt.title('Probability of Diabetes by Age')plt.xlabel('Age')plt.ylabel('Probability of Diabetes (%)')plt.grid(True)plt.tight_layout()plt.show()Line graph showing probability of diabetes by ageThe line graph moves upward as it moves to the right, indicating that the probability of diabetes goes up with age.Having finished answering our questions for the dataset, we move into training.Up until now, we inspected the data, made a few assumptions about the data, and confirmed our assumptions about it. Now, we move into understanding what this data can do for us.From all the features in the dataset, I would rank them in the following order (from highest significance to the least) based on how much of an impact it has on the prevalence of diabetes:blood_glucosehba1cheart_diseaseand hypertensionagebmismoking_historygenderWe could also train models on our dataset consuming 1 feature at a time to test how much predictive power each feature adds. I used logistic regression, a very basic classification algorithm to train my model on the dataset in a hierarchical (step-by-step) feature addition approach.from sklearn.model_selection import train_test_splitfrom sklearn.preprocessing import OneHotEncoder, StandardScalerfrom sklearn.linear_model import LogisticRegressionfrom sklearn.metrics import accuracy_score, roc_auc_scoreimport pandas as pd# --- 1. Preprocessing ---# Make a copy to avoid modifying the original 'df' in place for this stepdf_processed = df.copy()# One-hot encode 'gender' and 'smoking_history'categorical_features = ['gender', 'smoking_history']df_processed = pd.get_dummies(df_processed, columns=categorical_features, drop_first=True)# Define target variabley = df_processed['diabetes']X = df_processed.drop('diabetes', axis=1)# --- 2. Train-Validation-Test Split ---# Split into training (70%) and temp (30%)X_train, X_temp, y_train, y_temp = train_test_split(X, y, test_size=0.3, random_state=42, stratify=y)# Split temp into validation (15%) and test (15%)X_val, X_test, y_val, y_test = train_test_split(X_temp, y_temp, test_size=0.5, random_state=42, stratify=y_temp)print(f"Train set shape: {X_train.shape}")print(f"Validation set shape: {X_val.shape}")print(f"Test set shape: {X_test.shape}")# --- 3. Define feature subsets for hierarchical approach ---feature_subsets = { "glucose only": ['blood_glucose_level'], "glucose + hba1c": ['blood_glucose_level', 'HbA1c_level'], "glucose + hba1c + heart_disease + hypertension": ['blood_glucose_level', 'HbA1c_level', 'heart_disease', 'hypertension'], "glucose + hba1c + heart_disease + hypertension + age": ['blood_glucose_level', 'HbA1c_level', 'heart_disease', 'hypertension', 'age'], "glucose + hba1c + heart_disease + hypertension + age + bmi": ['blood_glucose_level', 'HbA1c_level', 'heart_disease', 'hypertension', 'age', 'bmi'], "glucose + hba1c + heart_disease + hypertension + age + bmi + smoking_history": ['blood_glucose_level', 'HbA1c_level', 'heart_disease', 'hypertension', 'age', 'bmi'] + [col for col in X.columns if col.startswith('smoking_history_')], "glucose + hba1c + heart_disease + hypertension + age + bmi + smoking_history + gender": ['blood_glucose_level', 'HbA1c_level', 'heart_disease', 'hypertension', 'age', 'bmi'] + [col for col in X.columns if col.startswith('smoking_history_')] + [col for col in X.columns if col.startswith('gender_')]}# Store resultsmodel_results = []# --- 4. Train and Evaluate Models Hierarchically ---print("\n--- Hierarchical Model Training and Evaluation ---")for name, features in feature_subsets.items(): print(f"\nTraining model with: {name}") # Select features for the current subset current_X_train = X_train[features] current_X_val = X_val[features] # Initialize and train Logistic Regression model # max_iter is increased to ensure convergence, class_weight handles imbalance model = LogisticRegression(max_iter=1000, random_state=42, class_weight='balanced') model.fit(current_X_train, y_train) # Make predictions on the validation set y_pred_val = model.predict(current_X_val) y_proba_val = model.predict_proba(current_X_val)[:, 1] # Evaluate performance accuracy = accuracy_score(y_val, y_pred_val) roc_auc = roc_auc_score(y_val, y_proba_val) print(f" Validation Accuracy: {accuracy:.4f}") print(f" Validation ROC AUC: {roc_auc:.4f}") model_results.append({ 'features': name, 'accuracy': accuracy, 'roc_auc': roc_auc })print("\n--- Summary of Model Results ---")for result in model_results: print(f"Features: {result['features']}") print(f" Accuracy: {result['accuracy']:.4f}") print(f" ROC AUC: {result['roc_auc']:.4f}") print("---------------------------------")First, we convert our remaining text columns (gender and smoking_history) into binary numeric columns. Then, we split the data into a 70% training, 15% validation, and 15% test split—using stratify=y so that the ratio of positive and negative diabetes cases stays consistent across all three sets.We train the model by adding features hierarchically and measure the ROC AUC and Accuracy as evaluation metrics for each model.Output of each level’s evaluation metricsThe image above showcases the ROC AUC and Accuracy metrics after training the model level-by-level. The initial accuracy is at 69% when trained only using blood_glucose levels, but it dramatically increases to 84% when hba1c feature is used as well. From there on, there are only small increases, bringing the final accuracy to 88.72% and ROC AUC to 96.6%.We can use the code below to visualize the ROC AUC graphs:from sklearn.metrics import roc_curve, aucimport matplotlib.pyplot as pltplt.figure(figsize=(10, 8))# Re-train models and plot ROC curvesfor result in model_results: features_name = result['features'] # Reconstruct the feature list based on the name from feature_subsets features_to_use = feature_subsets[features_name] current_X_train = X_train[features_to_use] current_X_val = X_val[features_to_use] model = LogisticRegression(max_iter=1000, random_state=42, class_weight='balanced') model.fit(current_X_train, y_train) y_proba_val = model.predict_proba(current_X_val)[:, 1] fpr, tpr, _ = roc_curve(y_val, y_proba_val) roc_auc = auc(fpr, tpr) plt.plot(fpr, tpr, label=f'{features_name} (AUC = {roc_auc:.4f})')plt.plot([0, 1], [0, 1], 'k--', label='Random (AUC = 0.50)')plt.xlabel('False Positive Rate')plt.ylabel('True Positive Rate')plt.title('ROC Curves for Hierarchical Logistic Regression Models')plt.legend(loc='lower right')plt.grid(True)plt.show()ROC AUC for hierarchical logistic regressionNotice how the ROC area-under-curve as we add smoking_historyand gender mostly remains the same? This shows that in this dataset, these 2 features do not have as much influence on diabetes as the blood_glucose or hba1c levels do.We wrap up with evaluating the model on the test split of the dataset:# Identify the best feature subset based on ROC AUC from model_resultsbest_roc_auc = -1best_features_name = ''for result in model_results: if result['roc_auc'] > best_roc_auc: best_roc_auc = result['roc_auc'] best_features_name = result['features']print(f"Best feature subset identified: {best_features_name}")# Get the actual feature list for the best subsetbest_features = feature_subsets[best_features_name]# Select features for the best subset in training and test setsX_train_best = X_train[best_features]X_test_best = X_test[best_features]# Initialize and train Logistic Regression model on the training setfinal_model = LogisticRegression(max_iter=1000, random_state=42, class_weight='balanced')final_model.fit(X_train_best, y_train)# Make predictions on the test sety_pred_test = final_model.predict(X_test_best)y_proba_test = final_model.predict_proba(X_test_best)[:, 1]# Evaluate performance on the test setfinal_accuracy = accuracy_score(y_test, y_pred_test)final_roc_auc = roc_auc_score(y_test, y_proba_test)print(f"\nFinal Model Performance on Test Set (using {best_features_name}):")print(f" Test Accuracy: {final_accuracy:.4f}")print(f" Test ROC AUC: {final_roc_auc:.4f}")Test Model Accuracy and ROC AUCThis also yields a similar accuracy of ~88%.The confusion matrix and other evaluation metrics for the model are as below:Confusion Matrix for hierarchical modelPrecision, Recall, and F1 Scores for final modelNotice that while overall accuracy sits at 89%, our recall for Diabetes is a strong 0.88 (catching roughly 1,080 out of 1,222 positive cases) at the cost of lower precision (0.41). Because we used class_weight='balanced', the model prioritizes minimizing false negatives—which is actually desirable in medical screening, where missing a true diabetic case is far costlier than flagging a patient for a follow-up test.An 88% baseline proves that deliberate exploration beats blindly throwing raw data at a model. Still, there is plenty left on the table. Would you experiment with other non-linear models, or revisit the quirks we uncovered earlier — like the bmi imputation spike and smoking_history categories? Pick a hypothesis, test it on the validation set, and comment what you learnt!Do You Speak “Data”? was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.