This commit is contained in:
mhjensen
2020-01-04 19:51:14 -05:00
parent 59d4b6253d
commit aa91b178d8
10 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -224,7 +224,7 @@ MathJax.Hub.Config({
<center>[2] <b>Department of Physics and Astronomy and National Superconducting Cyclotron Laboratory, Michigan State University</b></center>
<br>
<p>
<center><h4>Jan 3, 2020</h4></center> <!-- date -->
<center><h4>Jan 4, 2020</h4></center> <!-- date -->
<br>
<p>
+1 -1
View File
@@ -208,7 +208,7 @@ MathJax.Hub.Config({
<h2 id="___sec6" class="anchor">Why should we think of reducing the dimensionality </h2>
<p>
In addition to the plot of the features, we study now also the covariance (or rather the correlation matrix).
In addition to the plot of the features, we study now also the covariance (and the correlation matrix).
We use also <b>Pandas</b> to compute the correlation matrix.
<p>
+1 -1
View File
@@ -224,7 +224,7 @@ MathJax.Hub.Config({
<center>[2] <b>Department of Physics and Astronomy and National Superconducting Cyclotron Laboratory, Michigan State University</b></center>
<br>
<p>
<center><h4>Jan 3, 2020</h4></center> <!-- date -->
<center><h4>Jan 4, 2020</h4></center> <!-- date -->
<br>
<p>
+2 -2
View File
@@ -148,7 +148,7 @@ MathJax.Hub.Config({
<center>[2] <b>Department of Physics and Astronomy and National Superconducting Cyclotron Laboratory, Michigan State University</b></center>
<br>
<p>&nbsp;<br>
<center><h4>Jan 3, 2020</h4></center> <!-- date -->
<center><h4>Jan 4, 2020</h4></center> <!-- date -->
<br>
<p>
@@ -435,7 +435,7 @@ logreg.fit(X_train_scaled, y_train)
<h2 id="___sec6">Why should we think of reducing the dimensionality </h2>
<p>
In addition to the plot of the features, we study now also the covariance (or rather the correlation matrix).
In addition to the plot of the features, we study now also the covariance (and the correlation matrix).
We use also <b>Pandas</b> to compute the correlation matrix.
<p>
+2 -2
View File
@@ -179,7 +179,7 @@ MathJax.Hub.Config({
<center>[2] <b>Department of Physics and Astronomy and National Superconducting Cyclotron Laboratory, Michigan State University</b></center>
<br>
<p>
<center><h4>Jan 3, 2020</h4></center> <!-- date -->
<center><h4>Jan 4, 2020</h4></center> <!-- date -->
<br>
<p>
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
@@ -463,7 +463,7 @@ logreg.fit(X_train_scaled, y_train)
<h2 id="___sec6">Why should we think of reducing the dimensionality </h2>
<p>
In addition to the plot of the features, we study now also the covariance (or rather the correlation matrix).
In addition to the plot of the features, we study now also the covariance (and the correlation matrix).
We use also <b>Pandas</b> to compute the correlation matrix.
<p>
+2 -2
View File
@@ -184,7 +184,7 @@ MathJax.Hub.Config({
<center>[2] <b>Department of Physics and Astronomy and National Superconducting Cyclotron Laboratory, Michigan State University</b></center>
<br>
<p>
<center><h4>Jan 3, 2020</h4></center> <!-- date -->
<center><h4>Jan 4, 2020</h4></center> <!-- date -->
<br>
<p>
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
@@ -468,7 +468,7 @@ logreg<span style="color: #666666">.</span>fit(X_train_scaled, y_train)
<h2 id="___sec6">Why should we think of reducing the dimensionality </h2>
<p>
In addition to the plot of the features, we study now also the covariance (or rather the correlation matrix).
In addition to the plot of the features, we study now also the covariance (and the correlation matrix).
We use also <b>Pandas</b> to compute the correlation matrix.
<p>
+2 -2
View File
@@ -10,7 +10,7 @@
"<!-- Author: --> \n",
"**Morten Hjorth-Jensen**, Department of Physics, University of Oslo and Department of Physics and Astronomy and National Superconducting Cyclotron Laboratory, Michigan State University\n",
"\n",
"Date: **Jan 3, 2020**\n",
"Date: **Jan 4, 2020**\n",
"\n",
"Copyright 1999-2020, Morten Hjorth-Jensen. Released under CC Attribution-NonCommercial 4.0 license\n",
"\n",
@@ -296,7 +296,7 @@
"source": [
"## Why should we think of reducing the dimensionality\n",
"\n",
"In addition to the plot of the features, we study now also the covariance (or rather the correlation matrix).\n",
"In addition to the plot of the features, we study now also the covariance (and the correlation matrix).\n",
"We use also **Pandas** to compute the correlation matrix."
]
},
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -263,7 +263,7 @@ print("Test set accuracy scaled data: {:.2f}".format(logreg.score(X_test_scaled,
!split
===== Why should we think of reducing the dimensionality =====
In addition to the plot of the features, we study now also the covariance (or rather the correlation matrix).
In addition to the plot of the features, we study now also the covariance (and the correlation matrix).
We use also _Pandas_ to compute the correlation matrix.
!bc pycod
import matplotlib.pyplot as plt