Skip to content

Commit e25c288

Browse files
updated feature selection tool
1 parent a00b766 commit e25c288

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

feature_selection.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def return_feature_selection():
2323
st.markdown("""
2424
Correlation is a statistical term which refers to how close two variables have a linear relationship to each other.
2525
Variables that have a linear relationship tell us less about our dataset, since measuring one tells you something about the other.
26-
In other words, if two variables have a high correlation, we can drop on of the two!
26+
In other words, if two variables have a high correlation, we can drop one of the two!
2727
""")
2828
import pandas as pd
2929
# iris_correlation = pd.read_csv("https://raw.githubusercontent.com/uiuc-cse/data-fa14/gh-pages/data/iris.csv")
@@ -40,6 +40,12 @@ def return_feature_selection():
4040
], overwrite=False)\
4141

4242
.set_caption('Table 1.'))
43+
44+
st.markdown("""
45+
Here you can see a correlation table where a 1 means two variables correlate and 0 means they don't.
46+
If you want to test this on your own data, try out the Data Analytics tool!
47+
""")
48+
4349
corr = iris_correlation.corr().round(2)
4450
corr.style.background_gradient(cmap='coolwarm')
4551
st.table(corr.style.background_gradient(cmap='coolwarm')\
@@ -116,7 +122,7 @@ def return_feature_selection():
116122
st.title('PCA Analysis')
117123
st.markdown('''
118124
Another technique to reduce the dimensionality of your dataset is by performing Principal Component Analysis.
119-
PCA uses a set of large variables by combining them together to retain as much as information as possible.
125+
PCA uses a set of large variables by combining them together to retain as much information as possible.
120126
PCA dates back to the 1990's and is one of the most widely used analysis techniques in Data Science.
121127
''')
122128

0 commit comments

Comments
 (0)