Skip to content

Commit 877a43c

Browse files
committed
Fixed Issues:
- Fixed the manual upload of data - Data retrieval from GNPS1 resolved - Random Forest error for few classes resolved - Summary tab in the Data prep page updates the prep stages correctly
2 parents 2dd9997 + efdd764 commit 877a43c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/pca.py

+9
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,19 @@
77

88
@st.cache_data
99
def get_pca_df(scaled, n=5):
10+
<<<<<<< HEAD
1011
# calculating Principal components
1112
pca = PCA(n_components=n)
1213
pca_df = pd.DataFrame(
1314
data=pca.fit_transform(scaled), columns=[f"PC{x}" for x in range(1, n + 1)]
15+
=======
16+
17+
# calculating Principal components
18+
pca = PCA(n_components=n)
19+
pca_df = pd.DataFrame(
20+
data=pca.fit_transform(scaled),
21+
columns=[f"PC{x}" for x in range(1, n + 1)]
22+
>>>>>>> efdd76467755ddb96598832b0740cb7149a9cefb
1423
)
1524
pca_df.index = scaled.index
1625
return pca.explained_variance_ratio_, pca_df

0 commit comments

Comments
 (0)