Skip to content

Instantly share code, notes, and snippets.

@kekley
kekley / pca.py
Created October 5, 2025 05:52
Applying PCA to heart disease dataset
# -------------------------------------------------------------------------
# AUTHOR: Jesus Macias
# FILENAME:pca.py
# SPECIFICATION: Applying PCA to heart disease dataset
# FOR: CS 4440 (Data Mining) - Assignment #2
# TIME SPENT: 3 hours
# -----------------------------------------------------------*/
# importing some Python libraries
import numpy as np