Updating slides
This commit is contained in:
@@ -6,6 +6,7 @@ Automatically generated HTML file from DocOnce source
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta name="generator" content="DocOnce: https://github.com/hplgit/doconce/" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="description" content="Data Analysis and Machine Learning: Neural networks, from the simple perceptron to deep learning and convolutional networks">
|
||||
|
||||
<title>Data Analysis and Machine Learning: Neural networks, from the simple perceptron to deep learning and convolutional networks</title>
|
||||
@@ -366,17 +367,16 @@ being realizations of this object with different hyperparameters. An implementat
|
||||
<!-- 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">class</span> <span style="color: #0000FF; font-weight: bold">NeuralNetwork</span>:
|
||||
<span style="color: #008000; font-weight: bold">def</span> <span style="color: #0000FF">__init__</span>(
|
||||
<span style="color: #008000">self</span>,
|
||||
X_data,
|
||||
Y_data,
|
||||
n_hidden_neurons<span style="color: #666666">=50</span>,
|
||||
n_categories<span style="color: #666666">=10</span>,
|
||||
epochs<span style="color: #666666">=10</span>,
|
||||
batch_size<span style="color: #666666">=100</span>,
|
||||
eta<span style="color: #666666">=0.1</span>,
|
||||
lmbd<span style="color: #666666">=0.0</span>,
|
||||
<span style="color: #008000">self</span>,
|
||||
X_data,
|
||||
Y_data,
|
||||
n_hidden_neurons<span style="color: #666666">=50</span>,
|
||||
n_categories<span style="color: #666666">=10</span>,
|
||||
epochs<span style="color: #666666">=10</span>,
|
||||
batch_size<span style="color: #666666">=100</span>,
|
||||
eta<span style="color: #666666">=0.1</span>,
|
||||
lmbd<span style="color: #666666">=0.0</span>):
|
||||
|
||||
):
|
||||
<span style="color: #008000">self</span><span style="color: #666666">.</span>X_data_full <span style="color: #666666">=</span> X_data
|
||||
<span style="color: #008000">self</span><span style="color: #666666">.</span>Y_data_full <span style="color: #666666">=</span> Y_data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user