294 lines
16 KiB
HTML
294 lines
16 KiB
HTML
<!--
|
||
HTML file automatically generated from DocOnce source
|
||
(https://github.com/doconce/doconce/)
|
||
doconce format html week44.do.txt --html_style=bootstrap --pygments_html_style=default --html_admon=bootstrap_panel --html_output=week44-bs --no_mako
|
||
-->
|
||
<html>
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||
<meta name="generator" content="DocOnce: https://github.com/doconce/doconce/" />
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||
<meta name="description" content="Week 44, Convolutional Neural Networks (CNN)">
|
||
<title>Week 44, Convolutional Neural Networks (CNN)</title>
|
||
<!-- Bootstrap style: bootstrap -->
|
||
<!-- doconce format html week44.do.txt --html_style=bootstrap --pygments_html_style=default --html_admon=bootstrap_panel --html_output=week44-bs --no_mako -->
|
||
<link href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
|
||
<!-- not necessary
|
||
<link href="https://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
|
||
-->
|
||
<style type="text/css">
|
||
/* Add scrollbar to dropdown menus in bootstrap navigation bar */
|
||
.dropdown-menu {
|
||
height: auto;
|
||
max-height: 400px;
|
||
overflow-x: hidden;
|
||
}
|
||
/* Adds an invisible element before each target to offset for the navigation
|
||
bar */
|
||
.anchor::before {
|
||
content:"";
|
||
display:block;
|
||
height:50px; /* fixed header height for style bootstrap */
|
||
margin:-50px 0 0; /* negative fixed header height */
|
||
}
|
||
</style>
|
||
</head>
|
||
|
||
<!-- tocinfo
|
||
{'highest level': 2,
|
||
'sections': [('Plan for week 44', 2, None, 'plan-for-week-44'),
|
||
('Material for Lecture Thursday November 2',
|
||
2,
|
||
None,
|
||
'material-for-lecture-thursday-november-2'),
|
||
('Convolutional Neural Networks (recognizing images)',
|
||
2,
|
||
None,
|
||
'convolutional-neural-networks-recognizing-images'),
|
||
('What is the Difference', 2, None, 'what-is-the-difference'),
|
||
('Neural Networks vs CNNs', 2, None, 'neural-networks-vs-cnns'),
|
||
('Why CNNS for images, sound files, medical images from CT scans '
|
||
'etc?',
|
||
2,
|
||
None,
|
||
'why-cnns-for-images-sound-files-medical-images-from-ct-scans-etc'),
|
||
('Regular NNs don’t scale well to full images',
|
||
2,
|
||
None,
|
||
'regular-nns-don-t-scale-well-to-full-images'),
|
||
('3D volumes of neurons', 2, None, '3d-volumes-of-neurons'),
|
||
('Layers used to build CNNs',
|
||
2,
|
||
None,
|
||
'layers-used-to-build-cnns'),
|
||
('Transforming images', 2, None, 'transforming-images'),
|
||
('CNNs in brief', 2, None, 'cnns-in-brief'),
|
||
('Key Idea', 2, None, 'key-idea'),
|
||
('Mathematics of CNNs', 2, None, 'mathematics-of-cnns'),
|
||
('Convolution Examples: Polynomial multiplication',
|
||
2,
|
||
None,
|
||
'convolution-examples-polynomial-multiplication'),
|
||
('Efficient Polynomial Multiplication',
|
||
2,
|
||
None,
|
||
'efficient-polynomial-multiplication'),
|
||
('A more efficient way of coding the above Convolution',
|
||
2,
|
||
None,
|
||
'a-more-efficient-way-of-coding-the-above-convolution'),
|
||
('Convolution Examples: Principle of Superposition and Periodic '
|
||
'Forces (Fourier Transforms)',
|
||
2,
|
||
None,
|
||
'convolution-examples-principle-of-superposition-and-periodic-forces-fourier-transforms'),
|
||
('Principle of Superposition',
|
||
2,
|
||
None,
|
||
'principle-of-superposition'),
|
||
('Simple Code Example', 2, None, 'simple-code-example'),
|
||
('Wrapping up Fourier transforms',
|
||
2,
|
||
None,
|
||
'wrapping-up-fourier-transforms'),
|
||
('Finding the Coefficients', 2, None, 'finding-the-coefficients'),
|
||
('Final words on Fourier Transforms',
|
||
2,
|
||
None,
|
||
'final-words-on-fourier-transforms'),
|
||
('Two-dimensional Objects', 2, None, 'two-dimensional-objects'),
|
||
('Cross-Correlation', 2, None, 'cross-correlation'),
|
||
('More on Dimensionalities', 2, None, 'more-on-dimensionalities'),
|
||
('Further Dimensionality Remarks',
|
||
2,
|
||
None,
|
||
'further-dimensionality-remarks'),
|
||
('CNNs in more detail, Lecture from IN5400',
|
||
2,
|
||
None,
|
||
'cnns-in-more-detail-lecture-from-in5400'),
|
||
('CNNs in more detail, building convolutional neural networks in '
|
||
'Tensorflow and Keras',
|
||
2,
|
||
None,
|
||
'cnns-in-more-detail-building-convolutional-neural-networks-in-tensorflow-and-keras'),
|
||
('Setting it up', 2, None, 'setting-it-up'),
|
||
('The MNIST dataset again', 2, None, 'the-mnist-dataset-again'),
|
||
('Strong correlations', 2, None, 'strong-correlations'),
|
||
('Layers of a CNN', 2, None, 'layers-of-a-cnn'),
|
||
('Systematic reduction', 2, None, 'systematic-reduction'),
|
||
('Prerequisites: Collect and pre-process data',
|
||
2,
|
||
None,
|
||
'prerequisites-collect-and-pre-process-data'),
|
||
('Importing Keras and Tensorflow',
|
||
2,
|
||
None,
|
||
'importing-keras-and-tensorflow'),
|
||
('Running with Keras', 2, None, 'running-with-keras'),
|
||
('Final part', 2, None, 'final-part'),
|
||
('Final visualization', 2, None, 'final-visualization'),
|
||
('The CIFAR01 data set', 2, None, 'the-cifar01-data-set'),
|
||
('Verifying the data set', 2, None, 'verifying-the-data-set'),
|
||
('Set up the model', 2, None, 'set-up-the-model'),
|
||
('Add Dense layers on top', 2, None, 'add-dense-layers-on-top'),
|
||
('Compile and train the model',
|
||
2,
|
||
None,
|
||
'compile-and-train-the-model'),
|
||
('Finally, evaluate the model',
|
||
2,
|
||
None,
|
||
'finally-evaluate-the-model')]}
|
||
end of tocinfo -->
|
||
|
||
<body>
|
||
|
||
|
||
|
||
<script type="text/x-mathjax-config">
|
||
MathJax.Hub.Config({
|
||
TeX: {
|
||
equationNumbers: { autoNumber: "none" },
|
||
extensions: ["AMSmath.js", "AMSsymbols.js", "autobold.js", "color.js"]
|
||
}
|
||
});
|
||
</script>
|
||
<script type="text/javascript" async
|
||
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
|
||
</script>
|
||
|
||
|
||
<!-- Bootstrap navigation bar -->
|
||
<div class="navbar navbar-default navbar-fixed-top">
|
||
<div class="navbar-header">
|
||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
|
||
<span class="icon-bar"></span>
|
||
<span class="icon-bar"></span>
|
||
<span class="icon-bar"></span>
|
||
</button>
|
||
<a class="navbar-brand" href="week44-bs.html">Week 44, Convolutional Neural Networks (CNN)</a>
|
||
</div>
|
||
<div class="navbar-collapse collapse navbar-responsive-collapse">
|
||
<ul class="nav navbar-nav navbar-right">
|
||
<li class="dropdown">
|
||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Contents <b class="caret"></b></a>
|
||
<ul class="dropdown-menu">
|
||
<!-- navigation toc: --> <li><a href="._week44-bs001.html#plan-for-week-44" style="font-size: 80%;">Plan for week 44</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs002.html#material-for-lecture-thursday-november-2" style="font-size: 80%;">Material for Lecture Thursday November 2</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs003.html#convolutional-neural-networks-recognizing-images" style="font-size: 80%;">Convolutional Neural Networks (recognizing images)</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs004.html#what-is-the-difference" style="font-size: 80%;">What is the Difference</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs005.html#neural-networks-vs-cnns" style="font-size: 80%;">Neural Networks vs CNNs</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs006.html#why-cnns-for-images-sound-files-medical-images-from-ct-scans-etc" style="font-size: 80%;">Why CNNS for images, sound files, medical images from CT scans etc?</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs007.html#regular-nns-don-t-scale-well-to-full-images" style="font-size: 80%;">Regular NNs don’t scale well to full images</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs008.html#3d-volumes-of-neurons" style="font-size: 80%;">3D volumes of neurons</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs009.html#layers-used-to-build-cnns" style="font-size: 80%;">Layers used to build CNNs</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs010.html#transforming-images" style="font-size: 80%;">Transforming images</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs011.html#cnns-in-brief" style="font-size: 80%;">CNNs in brief</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs012.html#key-idea" style="font-size: 80%;">Key Idea</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs013.html#mathematics-of-cnns" style="font-size: 80%;">Mathematics of CNNs</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs014.html#convolution-examples-polynomial-multiplication" style="font-size: 80%;">Convolution Examples: Polynomial multiplication</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs015.html#efficient-polynomial-multiplication" style="font-size: 80%;">Efficient Polynomial Multiplication</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs016.html#a-more-efficient-way-of-coding-the-above-convolution" style="font-size: 80%;">A more efficient way of coding the above Convolution</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs017.html#convolution-examples-principle-of-superposition-and-periodic-forces-fourier-transforms" style="font-size: 80%;">Convolution Examples: Principle of Superposition and Periodic Forces (Fourier Transforms)</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs018.html#principle-of-superposition" style="font-size: 80%;">Principle of Superposition</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs019.html#simple-code-example" style="font-size: 80%;">Simple Code Example</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs020.html#wrapping-up-fourier-transforms" style="font-size: 80%;">Wrapping up Fourier transforms</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs021.html#finding-the-coefficients" style="font-size: 80%;">Finding the Coefficients</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs022.html#final-words-on-fourier-transforms" style="font-size: 80%;">Final words on Fourier Transforms</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs023.html#two-dimensional-objects" style="font-size: 80%;">Two-dimensional Objects</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs024.html#cross-correlation" style="font-size: 80%;">Cross-Correlation</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs025.html#more-on-dimensionalities" style="font-size: 80%;">More on Dimensionalities</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs026.html#further-dimensionality-remarks" style="font-size: 80%;">Further Dimensionality Remarks</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs027.html#cnns-in-more-detail-lecture-from-in5400" style="font-size: 80%;">CNNs in more detail, Lecture from IN5400</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs028.html#cnns-in-more-detail-building-convolutional-neural-networks-in-tensorflow-and-keras" style="font-size: 80%;">CNNs in more detail, building convolutional neural networks in Tensorflow and Keras</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs029.html#setting-it-up" style="font-size: 80%;">Setting it up</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs030.html#the-mnist-dataset-again" style="font-size: 80%;">The MNIST dataset again</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs031.html#strong-correlations" style="font-size: 80%;">Strong correlations</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs032.html#layers-of-a-cnn" style="font-size: 80%;">Layers of a CNN</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs033.html#systematic-reduction" style="font-size: 80%;">Systematic reduction</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs034.html#prerequisites-collect-and-pre-process-data" style="font-size: 80%;">Prerequisites: Collect and pre-process data</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs035.html#importing-keras-and-tensorflow" style="font-size: 80%;">Importing Keras and Tensorflow</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs036.html#running-with-keras" style="font-size: 80%;">Running with Keras</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs037.html#final-part" style="font-size: 80%;">Final part</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs038.html#final-visualization" style="font-size: 80%;">Final visualization</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs039.html#the-cifar01-data-set" style="font-size: 80%;">The CIFAR01 data set</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs040.html#verifying-the-data-set" style="font-size: 80%;">Verifying the data set</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs041.html#set-up-the-model" style="font-size: 80%;">Set up the model</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs042.html#add-dense-layers-on-top" style="font-size: 80%;">Add Dense layers on top</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs043.html#compile-and-train-the-model" style="font-size: 80%;">Compile and train the model</a></li>
|
||
<!-- navigation toc: --> <li><a href="._week44-bs044.html#finally-evaluate-the-model" style="font-size: 80%;">Finally, evaluate the model</a></li>
|
||
|
||
</ul>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
</div> <!-- end of navigation bar -->
|
||
<div class="container">
|
||
<p> </p><p> </p><p> </p> <!-- add vertical space -->
|
||
<a name="part0000"></a>
|
||
<!-- ------------------- main content ---------------------- -->
|
||
<div class="jumbotron">
|
||
<center>
|
||
<h1>Week 44, Convolutional Neural Networks (CNN)</h1>
|
||
</center> <!-- document title -->
|
||
|
||
<!-- author(s): Morten Hjorth-Jensen -->
|
||
<center>
|
||
<b>Morten Hjorth-Jensen</b> [1, 2]
|
||
</center>
|
||
<!-- institution(s) -->
|
||
<center>
|
||
[1] <b>Department of Physics, University of Oslo</b>
|
||
</center>
|
||
<center>
|
||
[2] <b>Department of Physics and Astronomy and National Superconducting Cyclotron Laboratory, Michigan State University</b>
|
||
</center>
|
||
<br>
|
||
<center>
|
||
<h4>October 30-November 3</h4>
|
||
</center> <!-- date -->
|
||
<br>
|
||
|
||
|
||
|
||
<p><a href="._week44-bs001.html" class="btn btn-primary btn-lg">Read »</a></p>
|
||
|
||
|
||
</div> <!-- end jumbotron -->
|
||
|
||
<p>
|
||
<!-- navigation buttons at the bottom of the page -->
|
||
<ul class="pagination">
|
||
<li class="active"><a href="._week44-bs000.html">1</a></li>
|
||
<li><a href="._week44-bs001.html">2</a></li>
|
||
<li><a href="._week44-bs002.html">3</a></li>
|
||
<li><a href="._week44-bs003.html">4</a></li>
|
||
<li><a href="._week44-bs004.html">5</a></li>
|
||
<li><a href="._week44-bs005.html">6</a></li>
|
||
<li><a href="._week44-bs006.html">7</a></li>
|
||
<li><a href="._week44-bs007.html">8</a></li>
|
||
<li><a href="._week44-bs008.html">9</a></li>
|
||
<li><a href="._week44-bs009.html">10</a></li>
|
||
<li><a href="">...</a></li>
|
||
<li><a href="._week44-bs044.html">45</a></li>
|
||
<li><a href="._week44-bs001.html">»</a></li>
|
||
</ul>
|
||
<!-- ------------------- end of main content --------------- -->
|
||
</div> <!-- end container -->
|
||
<!-- include javascript, jQuery *first* -->
|
||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
|
||
<script src="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
|
||
<!-- Bootstrap footer
|
||
<footer>
|
||
<a href="https://..."><img width="250" align=right src="https://..."></a>
|
||
</footer>
|
||
-->
|
||
<center style="font-size:80%">
|
||
<!-- copyright --> © 1999-2023, Morten Hjorth-Jensen. Released under CC Attribution-NonCommercial 4.0 license
|
||
</center>
|
||
</body>
|
||
</html>
|
||
|