mirror of
https://github.com/gsi-upm/sitc
synced 2025-01-05 02:41:29 +00:00
Compare commits
2 Commits
78e62af098
...
0150ce7cf7
Author | SHA1 | Date | |
---|---|---|---|
|
0150ce7cf7 | ||
|
08dfe5c147 |
@ -220,7 +220,7 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"# Analise distributon\n",
|
"# Analise distribution\n",
|
||||||
"df.hist(figsize=(10,10))\n",
|
"df.hist(figsize=(10,10))\n",
|
||||||
"plt.show()"
|
"plt.show()"
|
||||||
]
|
]
|
||||||
@ -233,7 +233,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"# We can see the pairwise correlation between variables. A value near 0 means low correlation\n",
|
"# We can see the pairwise correlation between variables. A value near 0 means low correlation\n",
|
||||||
"# while a value near -1 or 1 indicates strong correlation.\n",
|
"# while a value near -1 or 1 indicates strong correlation.\n",
|
||||||
"df.corr()"
|
"df.corr(numeric_only = True)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -249,11 +249,10 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"# General description of relationship betweek variables uwing Seaborn PairGrid\n",
|
"# General description of relationship between variables uwing Seaborn PairGrid\n",
|
||||||
"# We use df_clean, since the null values of df would gives us an error, you can check it.\n",
|
"# We use df_clean, since the null values of df would gives us an error, you can check it.\n",
|
||||||
"g = sns.PairGrid(df_clean, hue=\"Survived\")\n",
|
"g = sns.PairGrid(df_clean, hue=\"Survived\")\n",
|
||||||
"g.map_diag(plt.hist)\n",
|
"g.map(sns.scatterplot)\n",
|
||||||
"g.map_offdiag(plt.scatter)\n",
|
|
||||||
"g.add_legend()"
|
"g.add_legend()"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -351,10 +351,10 @@
|
|||||||
"We can obtain more information from the confussion matrix and the metric F1-score.\n",
|
"We can obtain more information from the confussion matrix and the metric F1-score.\n",
|
||||||
"In a confussion matrix, we can see:\n",
|
"In a confussion matrix, we can see:\n",
|
||||||
"\n",
|
"\n",
|
||||||
"||**Predicted**: 0| **Predicted: 1**|\n",
|
"| |**Predicted**: 0| **Predicted: 1**|\n",
|
||||||
"|---------------------------|\n",
|
"|-------------|----------------|-----------------|\n",
|
||||||
"|**Actual: 0**| TN | FP |\n",
|
"|**Actual: 0**| TN | FP |\n",
|
||||||
"|**Actual: 1**| FN|TP|\n",
|
"|**Actual: 1**| FN | TP |\n",
|
||||||
"\n",
|
"\n",
|
||||||
"* **True negatives (TN)**: actual negatives that were predicted as negatives\n",
|
"* **True negatives (TN)**: actual negatives that were predicted as negatives\n",
|
||||||
"* **False positives (FP)**: actual negatives that were predicted as positives\n",
|
"* **False positives (FP)**: actual negatives that were predicted as positives\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user