This commit is contained in:
mhjensen
2020-09-18 06:00:12 +02:00
parent cd091dd4fc
commit 4fb87df214
47 changed files with 842 additions and 459 deletions
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -242,7 +246,7 @@ MathJax.Hub.Config({
<li><a href="._week38-bs008.html">9</a></li>
<li><a href="._week38-bs009.html">10</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs001.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -222,7 +226,7 @@ MathJax.Hub.Config({
<li><a href="._week38-bs009.html">10</a></li>
<li><a href="._week38-bs010.html">11</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs002.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -222,7 +226,7 @@ MathJax.Hub.Config({
<li><a href="._week38-bs010.html">11</a></li>
<li><a href="._week38-bs011.html">12</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs003.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -273,7 +277,7 @@ $$
<li><a href="._week38-bs011.html">12</a></li>
<li><a href="._week38-bs012.html">13</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs004.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -237,7 +241,7 @@ cross-validation (LOOCV).
<li><a href="._week38-bs012.html">13</a></li>
<li><a href="._week38-bs013.html">14</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs005.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -249,7 +253,7 @@ $$
<li><a href="._week38-bs013.html">14</a></li>
<li><a href="._week38-bs014.html">15</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs006.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -240,7 +244,7 @@ For the various values of \( k \)
<li><a href="._week38-bs014.html">15</a></li>
<li><a href="._week38-bs015.html">16</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs007.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -319,7 +323,7 @@ plt<span style="color: #666666">.</span>show()
<li><a href="._week38-bs015.html">16</a></li>
<li><a href="._week38-bs016.html">17</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs008.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -274,7 +278,7 @@ plt<span style="color: #666666">.</span>show()
<li><a href="._week38-bs016.html">17</a></li>
<li><a href="._week38-bs017.html">18</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs009.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -300,7 +304,7 @@ plt<span style="color: #666666">.</span>show()
<li><a href="._week38-bs017.html">18</a></li>
<li><a href="._week38-bs018.html">19</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs010.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -265,7 +269,7 @@ plt<span style="color: #666666">.</span>show()
<li><a href="._week38-bs018.html">19</a></li>
<li><a href="._week38-bs019.html">20</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs011.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -279,7 +283,7 @@ the coupling constant to achieve this.
<li><a href="._week38-bs019.html">20</a></li>
<li><a href="._week38-bs020.html">21</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs012.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -272,7 +276,7 @@ X_train, X_test, y_train, y_test <span style="color: #666666">=</span> train_tes
<li><a href="._week38-bs020.html">21</a></li>
<li><a href="._week38-bs021.html">22</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs013.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -270,7 +274,7 @@ beta <span style="color: #666666">=</span> ols_inv(X_train_own, y_train)
<li><a href="._week38-bs021.html">22</a></li>
<li><a href="._week38-bs022.html">23</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs014.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -309,7 +313,7 @@ In this case our matrix inversion was actually possible. The obvious question no
<li><a href="._week38-bs022.html">23</a></li>
<li><a href="._week38-bs023.html">24</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs015.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -356,7 +360,7 @@ The results perfectly with our previous discussion where we used our own code.
<li><a href="._week38-bs023.html">24</a></li>
<li><a href="._week38-bs024.html">25</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs016.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -257,7 +261,7 @@ plt<span style="color: #666666">.</span>show()
<li><a href="._week38-bs024.html">25</a></li>
<li><a href="._week38-bs025.html">26</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs017.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -260,7 +264,7 @@ constant as opposed to ridge and OLS. We get a sparse solution with
<li><a href="._week38-bs025.html">26</a></li>
<li><a href="._week38-bs026.html">27</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs018.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -276,7 +280,7 @@ much. Ridge is more stable over a larger range of values for
<li><a href="._week38-bs026.html">27</a></li>
<li><a href="._week38-bs027.html">28</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs019.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -274,7 +278,7 @@ other models for all values of \( \lambda \).
<li><a href="._week38-bs027.html">28</a></li>
<li><a href="._week38-bs028.html">29</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs020.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -230,7 +234,7 @@ MathJax.Hub.Config({
<li><a href="._week38-bs028.html">29</a></li>
<li><a href="._week38-bs029.html">30</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs021.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -240,7 +244,7 @@ simple recipe for fitting our data.
<li><a href="._week38-bs029.html">30</a></li>
<li><a href="._week38-bs030.html">31</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs022.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -245,7 +249,7 @@ failure etc.
<li><a href="._week38-bs030.html">31</a></li>
<li><a href="._week38-bs031.html">32</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs023.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -243,7 +247,7 @@ models, as we will see later.
<li><a href="._week38-bs031.html">32</a></li>
<li><a href="._week38-bs032.html">33</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs024.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -249,7 +253,7 @@ $$
<li><a href="._week38-bs032.html">33</a></li>
<li><a href="._week38-bs033.html">34</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs025.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -246,7 +250,7 @@ where \( \hat{y} \) is a vector representing the possible outcomes, \( \hat{X} \
<li><a href="._week38-bs033.html">34</a></li>
<li><a href="._week38-bs034.html">35</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs026.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -244,7 +248,7 @@ the probability of a given category. This leads us to the logistic function.
<li><a href="._week38-bs034.html">35</a></li>
<li><a href="._week38-bs035.html">36</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs027.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -288,7 +292,7 @@ plt<span style="color: #666666">.</span>show()
<li><a href="._week38-bs035.html">36</a></li>
<li><a href="._week38-bs036.html">37</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs028.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -261,7 +265,7 @@ representing the probability for finding a value of \( y_i \) with a given
<li><a href="._week38-bs036.html">37</a></li>
<li><a href="._week38-bs037.html">38</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs029.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -245,7 +249,7 @@ Note that \( 1-p(t)= p(-t) \).
<li><a href="._week38-bs037.html">38</a></li>
<li><a href="._week38-bs038.html">39</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs030.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -288,7 +292,7 @@ plt<span style="color: #666666">.</span>show()
<li><a href="._week38-bs038.html">39</a></li>
<li><a href="._week38-bs039.html">40</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs031.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+8 -2
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -243,6 +247,8 @@ $$
<li><a href="._week38-bs038.html">39</a></li>
<li><a href="._week38-bs039.html">40</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs032.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+9 -2
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -243,6 +247,9 @@ $$
<li><a href="._week38-bs038.html">39</a></li>
<li><a href="._week38-bs039.html">40</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs041.html">42</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs033.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+8 -2
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -240,6 +244,8 @@ in practice we often supplement the cross-entropy with additional regularization
<li><a href="._week38-bs038.html">39</a></li>
<li><a href="._week38-bs039.html">40</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs041.html">42</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs034.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+8 -2
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -240,6 +244,8 @@ $$
<li><a href="._week38-bs038.html">39</a></li>
<li><a href="._week38-bs039.html">40</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs041.html">42</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs035.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+8 -2
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -240,6 +244,8 @@ $$
<li><a href="._week38-bs038.html">39</a></li>
<li><a href="._week38-bs039.html">40</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs041.html">42</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs036.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+8 -2
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -232,6 +236,8 @@ $$
<li><a href="._week38-bs038.html">39</a></li>
<li><a href="._week38-bs039.html">40</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs041.html">42</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs037.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+8 -2
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -243,6 +247,8 @@ and the model is specified in term of \( K-1 \) so-called log-odds or
<li><a href="._week38-bs038.html">39</a></li>
<li><a href="._week38-bs039.html">40</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs041.html">42</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs038.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+8 -2
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -257,6 +261,8 @@ This will be discussed next week. Before we develop our own codes for logistic r
<li class="active"><a href="._week38-bs038.html">39</a></li>
<li><a href="._week38-bs039.html">40</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs041.html">42</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs039.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+14 -2
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -200,6 +204,12 @@ MathJax.Hub.Config({
<!-- !split -->
<h2 id="___sec38" class="anchor">Wisconsin Cancer Data </h2>
<p>
We show here how we can use a simple regression case on the breast
cancer data using Logistic regression as our algorithm for
classification.
<p>
<!-- code=python (!bc pycod) typeset with pygments style "default" -->
@@ -246,6 +256,8 @@ logreg<span style="color: #666666">.</span>fit(X_train_scaled, y_train)
<li><a href="._week38-bs038.html">39</a></li>
<li class="active"><a href="._week38-bs039.html">40</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs041.html">42</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs040.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+41 -38
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -199,7 +203,11 @@ MathJax.Hub.Config({
<a name="part0040"></a>
<!-- !split -->
<h2 id="___sec39" class="anchor">Other measures in classification studies: Cancer Data again </h2>
<h2 id="___sec39" class="anchor">Using the correlation matrix </h2>
<p>
In addition to the above scores, we could also study the covariance (and the correlation matrix).
We use <b>Pandas</b> to compute the correlation matrix.
<p>
<!-- code=python (!bc pycod) typeset with pygments style "default" -->
@@ -208,48 +216,40 @@ MathJax.Hub.Config({
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">sklearn.model_selection</span> <span style="color: #008000; font-weight: bold">import</span> train_test_split
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">sklearn.datasets</span> <span style="color: #008000; font-weight: bold">import</span> load_breast_cancer
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">sklearn.linear_model</span> <span style="color: #008000; font-weight: bold">import</span> LogisticRegression
<span style="color: #408080; font-style: italic"># Load the data</span>
cancer <span style="color: #666666">=</span> load_breast_cancer()
<span style="color: #008000; font-weight: bold">import</span> <span style="color: #0000FF; font-weight: bold">pandas</span> <span style="color: #008000; font-weight: bold">as</span> <span style="color: #0000FF; font-weight: bold">pd</span>
<span style="color: #408080; font-style: italic"># Making a data frame</span>
cancerpd <span style="color: #666666">=</span> pd<span style="color: #666666">.</span>DataFrame(cancer<span style="color: #666666">.</span>data, columns<span style="color: #666666">=</span>cancer<span style="color: #666666">.</span>feature_names)
X_train, X_test, y_train, y_test <span style="color: #666666">=</span> train_test_split(cancer<span style="color: #666666">.</span>data,cancer<span style="color: #666666">.</span>target,random_state<span style="color: #666666">=0</span>)
<span style="color: #008000; font-weight: bold">print</span>(X_train<span style="color: #666666">.</span>shape)
<span style="color: #008000; font-weight: bold">print</span>(X_test<span style="color: #666666">.</span>shape)
<span style="color: #408080; font-style: italic"># Logistic Regression</span>
logreg <span style="color: #666666">=</span> LogisticRegression(solver<span style="color: #666666">=</span><span style="color: #BA2121">&#39;lbfgs&#39;</span>)
logreg<span style="color: #666666">.</span>fit(X_train, y_train)
<span style="color: #008000; font-weight: bold">print</span>(<span style="color: #BA2121">&quot;Test set accuracy with Logistic Regression: {:.2f}&quot;</span><span style="color: #666666">.</span>format(logreg<span style="color: #666666">.</span>score(X_test,y_test)))
<span style="color: #408080; font-style: italic">#now scale the data</span>
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">sklearn.preprocessing</span> <span style="color: #008000; font-weight: bold">import</span> StandardScaler
scaler <span style="color: #666666">=</span> StandardScaler()
scaler<span style="color: #666666">.</span>fit(X_train)
X_train_scaled <span style="color: #666666">=</span> scaler<span style="color: #666666">.</span>transform(X_train)
X_test_scaled <span style="color: #666666">=</span> scaler<span style="color: #666666">.</span>transform(X_test)
<span style="color: #408080; font-style: italic"># Logistic Regression</span>
logreg<span style="color: #666666">.</span>fit(X_train_scaled, y_train)
<span style="color: #008000; font-weight: bold">print</span>(<span style="color: #BA2121">&quot;Test set accuracy Logistic Regression with scaled data: {:.2f}&quot;</span><span style="color: #666666">.</span>format(logreg<span style="color: #666666">.</span>score(X_test_scaled,y_test)))
fig, axes <span style="color: #666666">=</span> plt<span style="color: #666666">.</span>subplots(<span style="color: #666666">15</span>,<span style="color: #666666">2</span>,figsize<span style="color: #666666">=</span>(<span style="color: #666666">10</span>,<span style="color: #666666">20</span>))
malignant <span style="color: #666666">=</span> cancer<span style="color: #666666">.</span>data[cancer<span style="color: #666666">.</span>target <span style="color: #666666">==</span> <span style="color: #666666">0</span>]
benign <span style="color: #666666">=</span> cancer<span style="color: #666666">.</span>data[cancer<span style="color: #666666">.</span>target <span style="color: #666666">==</span> <span style="color: #666666">1</span>]
ax <span style="color: #666666">=</span> axes<span style="color: #666666">.</span>ravel()
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">sklearn.preprocessing</span> <span style="color: #008000; font-weight: bold">import</span> LabelEncoder
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">sklearn.model_selection</span> <span style="color: #008000; font-weight: bold">import</span> cross_validate
<span style="color: #408080; font-style: italic">#Cross validation</span>
accuracy <span style="color: #666666">=</span> cross_validate(logreg,X_test_scaled,y_test,cv<span style="color: #666666">=10</span>)[<span style="color: #BA2121">&#39;test_score&#39;</span>]
<span style="color: #008000; font-weight: bold">print</span>(accuracy)
<span style="color: #008000; font-weight: bold">print</span>(<span style="color: #BA2121">&quot;Test set accuracy with Logistic Regression and scaled data: {:.2f}&quot;</span><span style="color: #666666">.</span>format(logreg<span style="color: #666666">.</span>score(X_test_scaled,y_test)))
<span style="color: #008000; font-weight: bold">import</span> <span style="color: #0000FF; font-weight: bold">scikitplot</span> <span style="color: #008000; font-weight: bold">as</span> <span style="color: #0000FF; font-weight: bold">skplt</span>
y_pred <span style="color: #666666">=</span> logreg<span style="color: #666666">.</span>predict(X_test_scaled)
skplt<span style="color: #666666">.</span>metrics<span style="color: #666666">.</span>plot_confusion_matrix(y_test, y_pred, normalize<span style="color: #666666">=</span><span style="color: #008000">True</span>)
<span style="color: #008000; font-weight: bold">for</span> i <span style="color: #AA22FF; font-weight: bold">in</span> <span style="color: #008000">range</span>(<span style="color: #666666">30</span>):
_, bins <span style="color: #666666">=</span> np<span style="color: #666666">.</span>histogram(cancer<span style="color: #666666">.</span>data[:,i], bins <span style="color: #666666">=50</span>)
ax[i]<span style="color: #666666">.</span>hist(malignant[:,i], bins <span style="color: #666666">=</span> bins, alpha <span style="color: #666666">=</span> <span style="color: #666666">0.5</span>)
ax[i]<span style="color: #666666">.</span>hist(benign[:,i], bins <span style="color: #666666">=</span> bins, alpha <span style="color: #666666">=</span> <span style="color: #666666">0.5</span>)
ax[i]<span style="color: #666666">.</span>set_title(cancer<span style="color: #666666">.</span>feature_names[i])
ax[i]<span style="color: #666666">.</span>set_yticks(())
ax[<span style="color: #666666">0</span>]<span style="color: #666666">.</span>set_xlabel(<span style="color: #BA2121">&quot;Feature magnitude&quot;</span>)
ax[<span style="color: #666666">0</span>]<span style="color: #666666">.</span>set_ylabel(<span style="color: #BA2121">&quot;Frequency&quot;</span>)
ax[<span style="color: #666666">0</span>]<span style="color: #666666">.</span>legend([<span style="color: #BA2121">&quot;Malignant&quot;</span>, <span style="color: #BA2121">&quot;Benign&quot;</span>], loc <span style="color: #666666">=</span><span style="color: #BA2121">&quot;best&quot;</span>)
fig<span style="color: #666666">.</span>tight_layout()
plt<span style="color: #666666">.</span>show()
y_probas <span style="color: #666666">=</span> logreg<span style="color: #666666">.</span>predict_proba(X_test_scaled)
skplt<span style="color: #666666">.</span>metrics<span style="color: #666666">.</span>plot_roc(y_test, y_probas)
plt<span style="color: #666666">.</span>show()
skplt<span style="color: #666666">.</span>metrics<span style="color: #666666">.</span>plot_cumulative_gain(y_test, y_probas)
<span style="color: #008000; font-weight: bold">import</span> <span style="color: #0000FF; font-weight: bold">seaborn</span> <span style="color: #008000; font-weight: bold">as</span> <span style="color: #0000FF; font-weight: bold">sns</span>
correlation_matrix <span style="color: #666666">=</span> cancerpd<span style="color: #666666">.</span>corr()<span style="color: #666666">.</span>round(<span style="color: #666666">1</span>)
<span style="color: #408080; font-style: italic"># use the heatmap function from seaborn to plot the correlation matrix</span>
<span style="color: #408080; font-style: italic"># annot = True to print the values inside the square</span>
sns<span style="color: #666666">.</span>heatmap(data<span style="color: #666666">=</span>correlation_matrix, annot<span style="color: #666666">=</span><span style="color: #008000">True</span>)
plt<span style="color: #666666">.</span>show()
<span style="color: #408080; font-style: italic">#print eigvalues of correlation matrix</span>
EigValues, EigVectors <span style="color: #666666">=</span> np<span style="color: #666666">.</span>linalg<span style="color: #666666">.</span>eig(correlation_matrix)
<span style="color: #008000; font-weight: bold">print</span>(EigValues)
</pre></div>
<p>
<p>
<!-- navigation buttons at the bottom of the page -->
<ul class="pagination">
@@ -265,6 +265,9 @@ plt<span style="color: #666666">.</span>show()
<li><a href="._week38-bs038.html">39</a></li>
<li><a href="._week38-bs039.html">40</a></li>
<li class="active"><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs041.html">42</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs041.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+7 -3
View File
@@ -103,10 +103,12 @@ Automatically generated HTML file from DocOnce source
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -183,7 +185,9 @@ MathJax.Hub.Config({
<!-- navigation toc: --> <li><a href="._week38-bs037.html#___sec36" style="font-size: 80%;">Including more classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs038.html#___sec37" style="font-size: 80%;">More classes</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs039.html#___sec38" style="font-size: 80%;">Wisconsin Cancer Data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs040.html#___sec39" style="font-size: 80%;">Using the correlation matrix</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs041.html#___sec40" style="font-size: 80%;">Discussing the correlation data</a></li>
<!-- navigation toc: --> <li><a href="._week38-bs042.html#___sec41" style="font-size: 80%;">Other measures in classification studies: Cancer Data again</a></li>
</ul>
</li>
@@ -242,7 +246,7 @@ MathJax.Hub.Config({
<li><a href="._week38-bs008.html">9</a></li>
<li><a href="._week38-bs009.html">10</a></li>
<li><a href="">...</a></li>
<li><a href="._week38-bs040.html">41</a></li>
<li><a href="._week38-bs042.html">43</a></li>
<li><a href="._week38-bs001.html">&raquo;</a></li>
</ul>
<!-- ------------------- end of main content --------------- -->
+96 -1
View File
@@ -1774,6 +1774,12 @@ This will be discussed next week. Before we develop our own codes for logistic r
<section>
<h2 id="___sec38">Wisconsin Cancer Data </h2>
<p>
We show here how we can use a simple regression case on the breast
cancer data using Logistic regression as our algorithm for
classification.
<p>
<!-- code=python (!bc pycod) typeset with pygments style "perldoc" -->
@@ -1807,7 +1813,96 @@ logreg.fit(X_train_scaled, y_train)
<section>
<h2 id="___sec39">Other measures in classification studies: Cancer Data again </h2>
<h2 id="___sec39">Using the correlation matrix </h2>
<p>
In addition to the above scores, we could also study the covariance (and the correlation matrix).
We use <b>Pandas</b> to compute the correlation matrix.
<p>
<!-- code=python (!bc pycod) typeset with pygments style "perldoc" -->
<div class="highlight" style="background: #eeeedd"><pre style="font-size: 80%; line-height: 125%"><span></span><span style="color: #8B008B; font-weight: bold">import</span> <span style="color: #008b45; text-decoration: underline">matplotlib.pyplot</span> <span style="color: #8B008B; font-weight: bold">as</span> <span style="color: #008b45; text-decoration: underline">plt</span>
<span style="color: #8B008B; font-weight: bold">import</span> <span style="color: #008b45; text-decoration: underline">numpy</span> <span style="color: #8B008B; font-weight: bold">as</span> <span style="color: #008b45; text-decoration: underline">np</span>
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.model_selection</span> <span style="color: #8B008B; font-weight: bold">import</span> train_test_split
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.datasets</span> <span style="color: #8B008B; font-weight: bold">import</span> load_breast_cancer
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.linear_model</span> <span style="color: #8B008B; font-weight: bold">import</span> LogisticRegression
cancer = load_breast_cancer()
<span style="color: #8B008B; font-weight: bold">import</span> <span style="color: #008b45; text-decoration: underline">pandas</span> <span style="color: #8B008B; font-weight: bold">as</span> <span style="color: #008b45; text-decoration: underline">pd</span>
<span style="color: #228B22"># Making a data frame</span>
cancerpd = pd.DataFrame(cancer.data, columns=cancer.feature_names)
fig, axes = plt.subplots(<span style="color: #B452CD">15</span>,<span style="color: #B452CD">2</span>,figsize=(<span style="color: #B452CD">10</span>,<span style="color: #B452CD">20</span>))
malignant = cancer.data[cancer.target == <span style="color: #B452CD">0</span>]
benign = cancer.data[cancer.target == <span style="color: #B452CD">1</span>]
ax = axes.ravel()
<span style="color: #8B008B; font-weight: bold">for</span> i <span style="color: #8B008B">in</span> <span style="color: #658b00">range</span>(<span style="color: #B452CD">30</span>):
_, bins = np.histogram(cancer.data[:,i], bins =<span style="color: #B452CD">50</span>)
ax[i].hist(malignant[:,i], bins = bins, alpha = <span style="color: #B452CD">0.5</span>)
ax[i].hist(benign[:,i], bins = bins, alpha = <span style="color: #B452CD">0.5</span>)
ax[i].set_title(cancer.feature_names[i])
ax[i].set_yticks(())
ax[<span style="color: #B452CD">0</span>].set_xlabel(<span style="color: #CD5555">&quot;Feature magnitude&quot;</span>)
ax[<span style="color: #B452CD">0</span>].set_ylabel(<span style="color: #CD5555">&quot;Frequency&quot;</span>)
ax[<span style="color: #B452CD">0</span>].legend([<span style="color: #CD5555">&quot;Malignant&quot;</span>, <span style="color: #CD5555">&quot;Benign&quot;</span>], loc =<span style="color: #CD5555">&quot;best&quot;</span>)
fig.tight_layout()
plt.show()
<span style="color: #8B008B; font-weight: bold">import</span> <span style="color: #008b45; text-decoration: underline">seaborn</span> <span style="color: #8B008B; font-weight: bold">as</span> <span style="color: #008b45; text-decoration: underline">sns</span>
correlation_matrix = cancerpd.corr().round(<span style="color: #B452CD">1</span>)
<span style="color: #228B22"># use the heatmap function from seaborn to plot the correlation matrix</span>
<span style="color: #228B22"># annot = True to print the values inside the square</span>
sns.heatmap(data=correlation_matrix, annot=<span style="color: #658b00">True</span>)
plt.show()
<span style="color: #228B22">#print eigvalues of correlation matrix</span>
EigValues, EigVectors = np.linalg.eig(correlation_matrix)
<span style="color: #8B008B; font-weight: bold">print</span>(EigValues)
</pre></div>
</section>
<section>
<h2 id="___sec40">Discussing the correlation data </h2>
<p>
In the above example we note two things. In the first plot we display
the overlap of benign and malignant tumors as functions of the various
features in the Wisconsing breast cancer data set. We see that for
some of the features we can distinguish clearly the benign and
malignant cases while for other features we cannot. This can point to
us which features may be of greater interest when we wish to classify
a benign or not benign tumour.
<p>
In the second figure we have computed the so-called correlation
matrix, which in our case with thirty features becomes a \( 30\times 30 \)
matrix.
<p>
We constructed this matrix using <b>pandas</b> via the statements
<p>
<!-- code=python (!bc pycod) typeset with pygments style "perldoc" -->
<div class="highlight" style="background: #eeeedd"><pre style="font-size: 80%; line-height: 125%"><span></span>cancerpd = pd.DataFrame(cancer.data, columns=cancer.feature_names)
</pre></div>
<p>
and then
<p>
<!-- code=python (!bc pycod) typeset with pygments style "perldoc" -->
<div class="highlight" style="background: #eeeedd"><pre style="font-size: 80%; line-height: 125%"><span></span>correlation_matrix = cancerpd.corr().round(<span style="color: #B452CD">1</span>)
</pre></div>
<p>
Diagonalizing this matrix we can in turn say something about which
features are of relevance and which are not. This leads us to
the classical Principal Component Analysis (PCA) theorem with
applications. This will be discussed later this semester (<a href="https://compphysics.github.io/MachineLearning/doc/pub/week43/html/week43-bs.html" target="_blank">week 43</a>).
</section>
<section>
<h2 id="___sec41">Other measures in classification studies: Cancer Data again </h2>
<p>
<!-- code=python (!bc pycod) typeset with pygments style "perldoc" -->
+98 -2
View File
@@ -97,10 +97,12 @@ div { text-align: justify; text-justify: inter-word; }
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -1664,6 +1666,12 @@ This will be discussed next week. Before we develop our own codes for logistic r
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
<h2 id="___sec38">Wisconsin Cancer Data </h2>
<p>
We show here how we can use a simple regression case on the breast
cancer data using Logistic regression as our algorithm for
classification.
<p>
<!-- code=python (!bc pycod) typeset with pygments style "perldoc" -->
@@ -1696,7 +1704,95 @@ logreg.fit(X_train_scaled, y_train)
<p>
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
<h2 id="___sec39">Other measures in classification studies: Cancer Data again </h2>
<h2 id="___sec39">Using the correlation matrix </h2>
<p>
In addition to the above scores, we could also study the covariance (and the correlation matrix).
We use <b>Pandas</b> to compute the correlation matrix.
<p>
<!-- code=python (!bc pycod) typeset with pygments style "perldoc" -->
<div class="highlight" style="background: #eeeedd"><pre style="line-height: 125%"><span></span><span style="color: #8B008B; font-weight: bold">import</span> <span style="color: #008b45; text-decoration: underline">matplotlib.pyplot</span> <span style="color: #8B008B; font-weight: bold">as</span> <span style="color: #008b45; text-decoration: underline">plt</span>
<span style="color: #8B008B; font-weight: bold">import</span> <span style="color: #008b45; text-decoration: underline">numpy</span> <span style="color: #8B008B; font-weight: bold">as</span> <span style="color: #008b45; text-decoration: underline">np</span>
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.model_selection</span> <span style="color: #8B008B; font-weight: bold">import</span> train_test_split
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.datasets</span> <span style="color: #8B008B; font-weight: bold">import</span> load_breast_cancer
<span style="color: #8B008B; font-weight: bold">from</span> <span style="color: #008b45; text-decoration: underline">sklearn.linear_model</span> <span style="color: #8B008B; font-weight: bold">import</span> LogisticRegression
cancer = load_breast_cancer()
<span style="color: #8B008B; font-weight: bold">import</span> <span style="color: #008b45; text-decoration: underline">pandas</span> <span style="color: #8B008B; font-weight: bold">as</span> <span style="color: #008b45; text-decoration: underline">pd</span>
<span style="color: #228B22"># Making a data frame</span>
cancerpd = pd.DataFrame(cancer.data, columns=cancer.feature_names)
fig, axes = plt.subplots(<span style="color: #B452CD">15</span>,<span style="color: #B452CD">2</span>,figsize=(<span style="color: #B452CD">10</span>,<span style="color: #B452CD">20</span>))
malignant = cancer.data[cancer.target == <span style="color: #B452CD">0</span>]
benign = cancer.data[cancer.target == <span style="color: #B452CD">1</span>]
ax = axes.ravel()
<span style="color: #8B008B; font-weight: bold">for</span> i <span style="color: #8B008B">in</span> <span style="color: #658b00">range</span>(<span style="color: #B452CD">30</span>):
_, bins = np.histogram(cancer.data[:,i], bins =<span style="color: #B452CD">50</span>)
ax[i].hist(malignant[:,i], bins = bins, alpha = <span style="color: #B452CD">0.5</span>)
ax[i].hist(benign[:,i], bins = bins, alpha = <span style="color: #B452CD">0.5</span>)
ax[i].set_title(cancer.feature_names[i])
ax[i].set_yticks(())
ax[<span style="color: #B452CD">0</span>].set_xlabel(<span style="color: #CD5555">&quot;Feature magnitude&quot;</span>)
ax[<span style="color: #B452CD">0</span>].set_ylabel(<span style="color: #CD5555">&quot;Frequency&quot;</span>)
ax[<span style="color: #B452CD">0</span>].legend([<span style="color: #CD5555">&quot;Malignant&quot;</span>, <span style="color: #CD5555">&quot;Benign&quot;</span>], loc =<span style="color: #CD5555">&quot;best&quot;</span>)
fig.tight_layout()
plt.show()
<span style="color: #8B008B; font-weight: bold">import</span> <span style="color: #008b45; text-decoration: underline">seaborn</span> <span style="color: #8B008B; font-weight: bold">as</span> <span style="color: #008b45; text-decoration: underline">sns</span>
correlation_matrix = cancerpd.corr().round(<span style="color: #B452CD">1</span>)
<span style="color: #228B22"># use the heatmap function from seaborn to plot the correlation matrix</span>
<span style="color: #228B22"># annot = True to print the values inside the square</span>
sns.heatmap(data=correlation_matrix, annot=<span style="color: #658b00">True</span>)
plt.show()
<span style="color: #228B22">#print eigvalues of correlation matrix</span>
EigValues, EigVectors = np.linalg.eig(correlation_matrix)
<span style="color: #8B008B; font-weight: bold">print</span>(EigValues)
</pre></div>
<p>
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
<h2 id="___sec40">Discussing the correlation data </h2>
<p>
In the above example we note two things. In the first plot we display
the overlap of benign and malignant tumors as functions of the various
features in the Wisconsing breast cancer data set. We see that for
some of the features we can distinguish clearly the benign and
malignant cases while for other features we cannot. This can point to
us which features may be of greater interest when we wish to classify
a benign or not benign tumour.
<p>
In the second figure we have computed the so-called correlation
matrix, which in our case with thirty features becomes a \( 30\times 30 \)
matrix.
<p>
We constructed this matrix using <b>pandas</b> via the statements
<p>
<!-- code=python (!bc pycod) typeset with pygments style "perldoc" -->
<div class="highlight" style="background: #eeeedd"><pre style="line-height: 125%"><span></span>cancerpd = pd.DataFrame(cancer.data, columns=cancer.feature_names)
</pre></div>
<p>
and then
<p>
<!-- code=python (!bc pycod) typeset with pygments style "perldoc" -->
<div class="highlight" style="background: #eeeedd"><pre style="line-height: 125%"><span></span>correlation_matrix = cancerpd.corr().round(<span style="color: #B452CD">1</span>)
</pre></div>
<p>
Diagonalizing this matrix we can in turn say something about which
features are of relevance and which are not. This leads us to
the classical Principal Component Analysis (PCA) theorem with
applications. This will be discussed later this semester (<a href="https://compphysics.github.io/MachineLearning/doc/pub/week43/html/week43-bs.html" target="_blank">week 43</a>).
<p>
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
<h2 id="___sec41">Other measures in classification studies: Cancer Data again </h2>
<p>
<!-- code=python (!bc pycod) typeset with pygments style "perldoc" -->
+98 -2
View File
@@ -102,10 +102,12 @@ div { text-align: justify; text-justify: inter-word; }
('Including more classes', 2, None, '___sec36'),
('More classes', 2, None, '___sec37'),
('Wisconsin Cancer Data', 2, None, '___sec38'),
('Using the correlation matrix', 2, None, '___sec39'),
('Discussing the correlation data', 2, None, '___sec40'),
('Other measures in classification studies: Cancer Data again',
2,
None,
'___sec39')]}
'___sec41')]}
end of tocinfo -->
<body>
@@ -1669,6 +1671,12 @@ This will be discussed next week. Before we develop our own codes for logistic r
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
<h2 id="___sec38">Wisconsin Cancer Data </h2>
<p>
We show here how we can use a simple regression case on the breast
cancer data using Logistic regression as our algorithm for
classification.
<p>
<!-- code=python (!bc pycod) typeset with pygments style "default" -->
@@ -1701,7 +1709,95 @@ logreg<span style="color: #666666">.</span>fit(X_train_scaled, y_train)
<p>
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
<h2 id="___sec39">Other measures in classification studies: Cancer Data again </h2>
<h2 id="___sec39">Using the correlation matrix </h2>
<p>
In addition to the above scores, we could also study the covariance (and the correlation matrix).
We use <b>Pandas</b> to compute the correlation matrix.
<p>
<!-- code=python (!bc pycod) typeset with pygments style "default" -->
<div class="highlight" style="background: #f8f8f8"><pre style="line-height: 125%"><span></span><span style="color: #008000; font-weight: bold">import</span> <span style="color: #0000FF; font-weight: bold">matplotlib.pyplot</span> <span style="color: #008000; font-weight: bold">as</span> <span style="color: #0000FF; font-weight: bold">plt</span>
<span style="color: #008000; font-weight: bold">import</span> <span style="color: #0000FF; font-weight: bold">numpy</span> <span style="color: #008000; font-weight: bold">as</span> <span style="color: #0000FF; font-weight: bold">np</span>
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">sklearn.model_selection</span> <span style="color: #008000; font-weight: bold">import</span> train_test_split
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">sklearn.datasets</span> <span style="color: #008000; font-weight: bold">import</span> load_breast_cancer
<span style="color: #008000; font-weight: bold">from</span> <span style="color: #0000FF; font-weight: bold">sklearn.linear_model</span> <span style="color: #008000; font-weight: bold">import</span> LogisticRegression
cancer <span style="color: #666666">=</span> load_breast_cancer()
<span style="color: #008000; font-weight: bold">import</span> <span style="color: #0000FF; font-weight: bold">pandas</span> <span style="color: #008000; font-weight: bold">as</span> <span style="color: #0000FF; font-weight: bold">pd</span>
<span style="color: #408080; font-style: italic"># Making a data frame</span>
cancerpd <span style="color: #666666">=</span> pd<span style="color: #666666">.</span>DataFrame(cancer<span style="color: #666666">.</span>data, columns<span style="color: #666666">=</span>cancer<span style="color: #666666">.</span>feature_names)
fig, axes <span style="color: #666666">=</span> plt<span style="color: #666666">.</span>subplots(<span style="color: #666666">15</span>,<span style="color: #666666">2</span>,figsize<span style="color: #666666">=</span>(<span style="color: #666666">10</span>,<span style="color: #666666">20</span>))
malignant <span style="color: #666666">=</span> cancer<span style="color: #666666">.</span>data[cancer<span style="color: #666666">.</span>target <span style="color: #666666">==</span> <span style="color: #666666">0</span>]
benign <span style="color: #666666">=</span> cancer<span style="color: #666666">.</span>data[cancer<span style="color: #666666">.</span>target <span style="color: #666666">==</span> <span style="color: #666666">1</span>]
ax <span style="color: #666666">=</span> axes<span style="color: #666666">.</span>ravel()
<span style="color: #008000; font-weight: bold">for</span> i <span style="color: #AA22FF; font-weight: bold">in</span> <span style="color: #008000">range</span>(<span style="color: #666666">30</span>):
_, bins <span style="color: #666666">=</span> np<span style="color: #666666">.</span>histogram(cancer<span style="color: #666666">.</span>data[:,i], bins <span style="color: #666666">=50</span>)
ax[i]<span style="color: #666666">.</span>hist(malignant[:,i], bins <span style="color: #666666">=</span> bins, alpha <span style="color: #666666">=</span> <span style="color: #666666">0.5</span>)
ax[i]<span style="color: #666666">.</span>hist(benign[:,i], bins <span style="color: #666666">=</span> bins, alpha <span style="color: #666666">=</span> <span style="color: #666666">0.5</span>)
ax[i]<span style="color: #666666">.</span>set_title(cancer<span style="color: #666666">.</span>feature_names[i])
ax[i]<span style="color: #666666">.</span>set_yticks(())
ax[<span style="color: #666666">0</span>]<span style="color: #666666">.</span>set_xlabel(<span style="color: #BA2121">&quot;Feature magnitude&quot;</span>)
ax[<span style="color: #666666">0</span>]<span style="color: #666666">.</span>set_ylabel(<span style="color: #BA2121">&quot;Frequency&quot;</span>)
ax[<span style="color: #666666">0</span>]<span style="color: #666666">.</span>legend([<span style="color: #BA2121">&quot;Malignant&quot;</span>, <span style="color: #BA2121">&quot;Benign&quot;</span>], loc <span style="color: #666666">=</span><span style="color: #BA2121">&quot;best&quot;</span>)
fig<span style="color: #666666">.</span>tight_layout()
plt<span style="color: #666666">.</span>show()
<span style="color: #008000; font-weight: bold">import</span> <span style="color: #0000FF; font-weight: bold">seaborn</span> <span style="color: #008000; font-weight: bold">as</span> <span style="color: #0000FF; font-weight: bold">sns</span>
correlation_matrix <span style="color: #666666">=</span> cancerpd<span style="color: #666666">.</span>corr()<span style="color: #666666">.</span>round(<span style="color: #666666">1</span>)
<span style="color: #408080; font-style: italic"># use the heatmap function from seaborn to plot the correlation matrix</span>
<span style="color: #408080; font-style: italic"># annot = True to print the values inside the square</span>
sns<span style="color: #666666">.</span>heatmap(data<span style="color: #666666">=</span>correlation_matrix, annot<span style="color: #666666">=</span><span style="color: #008000">True</span>)
plt<span style="color: #666666">.</span>show()
<span style="color: #408080; font-style: italic">#print eigvalues of correlation matrix</span>
EigValues, EigVectors <span style="color: #666666">=</span> np<span style="color: #666666">.</span>linalg<span style="color: #666666">.</span>eig(correlation_matrix)
<span style="color: #008000; font-weight: bold">print</span>(EigValues)
</pre></div>
<p>
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
<h2 id="___sec40">Discussing the correlation data </h2>
<p>
In the above example we note two things. In the first plot we display
the overlap of benign and malignant tumors as functions of the various
features in the Wisconsing breast cancer data set. We see that for
some of the features we can distinguish clearly the benign and
malignant cases while for other features we cannot. This can point to
us which features may be of greater interest when we wish to classify
a benign or not benign tumour.
<p>
In the second figure we have computed the so-called correlation
matrix, which in our case with thirty features becomes a \( 30\times 30 \)
matrix.
<p>
We constructed this matrix using <b>pandas</b> via the statements
<p>
<!-- code=python (!bc pycod) typeset with pygments style "default" -->
<div class="highlight" style="background: #f8f8f8"><pre style="line-height: 125%"><span></span>cancerpd <span style="color: #666666">=</span> pd<span style="color: #666666">.</span>DataFrame(cancer<span style="color: #666666">.</span>data, columns<span style="color: #666666">=</span>cancer<span style="color: #666666">.</span>feature_names)
</pre></div>
<p>
and then
<p>
<!-- code=python (!bc pycod) typeset with pygments style "default" -->
<div class="highlight" style="background: #f8f8f8"><pre style="line-height: 125%"><span></span>correlation_matrix <span style="color: #666666">=</span> cancerpd<span style="color: #666666">.</span>corr()<span style="color: #666666">.</span>round(<span style="color: #666666">1</span>)
</pre></div>
<p>
Diagonalizing this matrix we can in turn say something about which
features are of relevance and which are not. This leads us to
the classical Principal Component Analysis (PCA) theorem with
applications. This will be discussed later this semester (<a href="https://compphysics.github.io/MachineLearning/doc/pub/week43/html/week43-bs.html" target="_blank">week 43</a>).
<p>
<!-- !split --><br><br><br><br><br><br><br><br><br><br>
<h2 id="___sec41">Other measures in classification studies: Cancer Data again </h2>
<p>
<!-- code=python (!bc pycod) typeset with pygments style "default" -->
Binary file not shown.
File diff suppressed because one or more lines are too long