From bb9270d2411b633af310372f9e25a665a505aa0f Mon Sep 17 00:00:00 2001
From: Devon Harstrom <devonharstrom@gmail.com>
Date: Fri, 14 Mar 2025 19:12:40 -0600
Subject: [PATCH] Just fixed up some comments that no longer apply and some
 other code

---
 Main/Main Stage 2/main2.py     | 2 +-
 Main/Main Stage 4/main4.py     | 5 -----
 Part 1/MNIST-Complete98+.py    | 1 -
 Part 2/nonMNIST-Complete.py    | 1 -
 Part 2/nonMNIST-Complete95+.py | 1 -
 Part 3/CHDModel.py             | 1 +
 6 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/Main/Main Stage 2/main2.py b/Main/Main Stage 2/main2.py
index e66e740..d652c7b 100644
--- a/Main/Main Stage 2/main2.py	
+++ b/Main/Main Stage 2/main2.py	
@@ -7,7 +7,7 @@ import tensorflow as tf
 df = pd.read_csv("data-input.csv") # read the data
 df.to_csv("data.csv", index=False) # this is also just data-input as it wasn't combined
 df['legendary'] = df['legendary'].astype(int)
-df = df.fillna({"type2": "No Secondary"}) # clean the empty, type 2 with 'None' so it its just fire type its Fire, None
+df = df.fillna({"type2": "No Secondary"}) # clean the empty, type 2 with 'No Secondary' so if its just fire type its Fire, No secondary
 df.to_csv("data-cleaned.csv", index=False)
 print("--Done Cleaning--")
 print(df.head())
diff --git a/Main/Main Stage 4/main4.py b/Main/Main Stage 4/main4.py
index dba9cd4..0880d8a 100644
--- a/Main/Main Stage 4/main4.py	
+++ b/Main/Main Stage 4/main4.py	
@@ -10,11 +10,6 @@ df['legendary'] = df['legendary'].astype(int)
 df = df.fillna({"type2": "No Secondary"}) # clean the empty, type 2 with 'None' so it its just fire type its Fire, None
 df = df.drop(columns=["name"]) # dont need
 df = df.drop(columns=["generation"]) # dont need
-# df.to_csv("data-cleaned.csv", index=False)
-# print("--Done Cleaning--")
-# print(df.head())
-# drop name and drop generation they should have no effect
-# df = pd.read_csv("data-cleaned.csv")
 
 numeric_feature_names = ["total", "hp", "attack", "defense", "sp_attack", "sp_defense", "speed"]
 categorical_feature_names = ["type1", "type2"]
diff --git a/Part 1/MNIST-Complete98+.py b/Part 1/MNIST-Complete98+.py
index fdee7e8..7fb78e6 100644
--- a/Part 1/MNIST-Complete98+.py	
+++ b/Part 1/MNIST-Complete98+.py	
@@ -16,7 +16,6 @@ model = tf.keras.models.Sequential([
     tf.keras.layers.BatchNormalization(),
     tf.keras.layers.MaxPooling2D((2, 2)),
 
-    # added kernel_regularizer to help
     tf.keras.layers.Conv2D(32, (3, 3), activation='relu', padding='same', strides=(2, 2)),
     tf.keras.layers.BatchNormalization(),
     tf.keras.layers.MaxPooling2D((2, 2)),
diff --git a/Part 2/nonMNIST-Complete.py b/Part 2/nonMNIST-Complete.py
index 83cd4d6..2eead63 100644
--- a/Part 2/nonMNIST-Complete.py	
+++ b/Part 2/nonMNIST-Complete.py	
@@ -24,7 +24,6 @@ model = tf.keras.models.Sequential([
     tf.keras.layers.BatchNormalization(),
     tf.keras.layers.MaxPooling2D((2, 2)),
 
-    # added kernel_regularizer to help
     tf.keras.layers.Conv2D(32, (3, 3), activation='relu', padding='same', strides=(2, 2)),
     tf.keras.layers.BatchNormalization(),
     tf.keras.layers.MaxPooling2D((2, 2)),
diff --git a/Part 2/nonMNIST-Complete95+.py b/Part 2/nonMNIST-Complete95+.py
index 8fe1ed3..eae42db 100644
--- a/Part 2/nonMNIST-Complete95+.py	
+++ b/Part 2/nonMNIST-Complete95+.py	
@@ -24,7 +24,6 @@ model = tf.keras.models.Sequential([
     tf.keras.layers.BatchNormalization(),
     tf.keras.layers.MaxPooling2D((2, 2)),
 
-    # added kernel_regularizer to help
     tf.keras.layers.Conv2D(64, (3, 3), activation='relu', padding='same', strides=(2, 2)),
     tf.keras.layers.BatchNormalization(),
     tf.keras.layers.MaxPooling2D((2, 2)),
diff --git a/Part 3/CHDModel.py b/Part 3/CHDModel.py
index 1d5e9f0..60e4382 100644
--- a/Part 3/CHDModel.py	
+++ b/Part 3/CHDModel.py	
@@ -64,6 +64,7 @@ model = tf.keras.Sequential([
     tf.keras.layers.Dense(1, activation='sigmoid')
 ])
 
+# added from doc online
 early_stopping = tf.keras.callbacks.EarlyStopping(monitor='val_loss', patience=10, restore_best_weights=True)
 
 num_runs = 1  # setting it to 1 for right now, Was used to debug changes/improvements in the model
-- 
GitLab