mirror of
https://github.com/rodneyosodo/variational-quantum-classifier-on-heartattack.git
synced 2026-06-23 04:10:30 +00:00
🔥
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
# Basis encoding example with PennyLane
|
||||
import pandas as pd
|
||||
from sklearn.utils import shuffle
|
||||
|
||||
def normalize(DATA_PATH: str = "../../Data/Processed/data.csv"):
|
||||
"""
|
||||
Normalizes the data
|
||||
"""
|
||||
# Reads the data
|
||||
data = pd.read_csv(DATA_PATH)
|
||||
X, Y = data[['sex', 'cp', 'exang', 'oldpeak']].values, data['num'].values
|
||||
# normalize the data
|
||||
X = normalize(X)
|
||||
return X, Y
|
||||
|
||||
|
||||
Reference in New Issue
Block a user