Skip to content

Commit

Permalink
Update featurization.py
Browse files Browse the repository at this point in the history
  • Loading branch information
swarajpande5 authored Apr 12, 2024
1 parent 07fafa0 commit 8dbd34f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/featurization.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def featurization():

# Create PCA object of the 20 most important components
print("Creating PCA object...")
pca = PCA(n_components=20, whiten=True)
pca = PCA(n_components=25, whiten=True)
pca.fit(train_data[:, 1:])
train_labels = train_data[:, 0].reshape([train_data.shape[0], 1])
test_labels = test_data[:, 0].reshape([test_data.shape[0], 1])
Expand All @@ -35,4 +35,4 @@ def featurization():


if __name__ == '__main__':
featurization()
featurization()

0 comments on commit 8dbd34f

Please sign in to comment.