Fixed the logistic regression code as well.

This commit is contained in:
Batuhan Berk Başoğlu 2025-09-26 21:21:07 -04:00
parent 1eb6609e9f
commit bc377aa9fa
Signed by: batuhan-basoglu
SSH key fingerprint: SHA256:kEsnuHX+qbwhxSAXPUQ4ox535wFHu/hIRaa53FzxRpo
2 changed files with 64 additions and 4 deletions

View file

@ -211,8 +211,9 @@ if __name__ == "__main__":
# check for weak correlation with target --> worsts have the most impact
target_corr = df.corr()['Diagnosis'].abs().sort_values(ascending=False)
print("Correlation with target variable descending order:")
print("\nCorrelation with target variable descending order:")
print(target_corr)
print("") # \n splitter
rng = np.random.default_rng(seed=42)
n_train = len(df)