forked from aws-samples/aws-mlu-explain
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nn article: bottom section and bp update
- Loading branch information
1 parent
9f0d604
commit 1d7123b
Showing
17 changed files
with
409 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,6 +59,7 @@ | |
--size-default: 16px; | ||
|
||
--viz-height: 80vh; | ||
--max-viz-height: 750px; | ||
} | ||
|
||
body { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -391,6 +391,7 @@ | |
.chart-holder { | ||
width: 100%; | ||
height: 100%; | ||
max-height: var(--max-viz-height); | ||
} | ||
.step { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<section> | ||
<h2>Convolutional Neural Networks (CNN's)</h2> | ||
<div class="wrapper"> | ||
<div class="left"> | ||
<svg><!-- Insert SVG here --></svg> | ||
</div> | ||
<div class="right"> | ||
<p class="body-text"> | ||
Convolutional Neural Networks (CNNs) are a type of neural network | ||
architecture that has been particularly successful in computer vision | ||
tasks. The key difference between CNNs and traditional feedforward | ||
neural networks is the presence of convolutional layers, which are | ||
specialized layers designed to process images and other types of | ||
multidimensional data. In a CNN, the convolutional layers learn to | ||
detect and extract features from the input data by sliding a set of | ||
filters over the input data and performing convolution operations. The | ||
</p> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<style> | ||
h2 { | ||
font-size: var(--size-default); | ||
text-decoration: underline; | ||
} | ||
.wrapper { | ||
display: grid; | ||
grid-template-columns: 30% 70%; | ||
grid-gap: 1rem; | ||
align-items: center; | ||
max-width: 100%; | ||
margin: auto; | ||
} | ||
.left { | ||
display: flex; | ||
justify-content: center; | ||
} | ||
.right { | ||
/* border: 2px solid black; */ | ||
} | ||
svg { | ||
max-width: 100%; | ||
max-height: 100%; | ||
border: 2px solid red; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<section> | ||
<h2>Generative Adversarial Networks (GANS's)</h2> | ||
<div class="wrapper"> | ||
<div class="left"> | ||
<svg><!-- Insert SVG here --></svg> | ||
</div> | ||
<div class="right"> | ||
<p class="body-text"> | ||
Generative Adversarial Networks (GANs) are a type of neural network | ||
architecture that is used for generative modeling. GANs consist of two | ||
networks: a generator network and a discriminator network. The generator | ||
network learns to generate samples that resemble the training data, | ||
while the discriminator network learns to distinguish between real and | ||
fake samples. The two networks are trained simultaneously, with the | ||
generator network trying to produce samples that fool the discriminator | ||
network, and the discriminator network trying to accurately distinguish | ||
</p> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<style> | ||
h2 { | ||
font-size: var(--size-default); | ||
text-decoration: underline; | ||
} | ||
.wrapper { | ||
display: grid; | ||
grid-template-columns: 30% 70%; | ||
grid-gap: 1rem; | ||
align-items: center; | ||
max-width: 100%; | ||
margin: auto; | ||
} | ||
.left { | ||
display: flex; | ||
justify-content: center; | ||
} | ||
.right { | ||
/* border: 2px solid black; */ | ||
} | ||
svg { | ||
max-width: 100%; | ||
max-height: 100%; | ||
border: 2px solid red; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<section> | ||
<h2>Recurrent Neural Networks (RNN's)</h2> | ||
<div class="wrapper"> | ||
<div class="left"> | ||
<svg><!-- Insert SVG here --></svg> | ||
</div> | ||
<div class="right"> | ||
<p class="body-text"> | ||
Recurrent Neural Networks (RNNs) are a type of neural network | ||
architecture that is particularly well-suited for processing sequential | ||
data, such as speech or text. The key difference between RNNs and | ||
traditional feedforward neural networks is the presence of recurrent | ||
connections, which allow information to persist over time within the | ||
network. In an RNN, each neuron receives an input as well as a hidden | ||
state from the previous time step, which allows the network to use | ||
</p> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<style> | ||
h2 { | ||
font-size: var(--size-default); | ||
text-decoration: underline; | ||
} | ||
.wrapper { | ||
display: grid; | ||
grid-template-columns: 30% 70%; | ||
grid-gap: 1rem; | ||
align-items: center; | ||
max-width: 100%; | ||
margin: auto; | ||
} | ||
.left { | ||
display: flex; | ||
justify-content: center; | ||
} | ||
.right { | ||
/* border: 2px solid black; */ | ||
} | ||
svg { | ||
max-width: 100%; | ||
max-height: 100%; | ||
border: 2px solid red; | ||
} | ||
</style> |
46 changes: 46 additions & 0 deletions
46
code/nn/src/Components/new/Architectures/Transformer.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<section> | ||
<h2>Attention Mechanisms (Transformers)</h2> | ||
<div class="wrapper"> | ||
<div class="left"> | ||
<svg><!-- Insert SVG here --></svg> | ||
</div> | ||
<div class="right"> | ||
<p class="body-text"> | ||
Attention Mechanisms, also known as Transformers, are a type of neural | ||
network architecture that is particularly well-suited for natural | ||
language processing tasks. The key difference between Attention | ||
Mechanisms and traditional feedforward neural networks is the use of | ||
attention mechanisms, which allow the network to focus on specific parts | ||
of the input data. Attention mechanisms work by assigning a weight to | ||
each element of the input data, allowing the network to focus more on | ||
</p> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<style> | ||
h2 { | ||
font-size: var(--size-default); | ||
text-decoration: underline; | ||
} | ||
.wrapper { | ||
display: grid; | ||
grid-template-columns: 30% 70%; | ||
grid-gap: 1rem; | ||
align-items: center; | ||
max-width: 100%; | ||
margin: auto; | ||
} | ||
.left { | ||
display: flex; | ||
justify-content: center; | ||
} | ||
.right { | ||
/* border: 2px solid black; */ | ||
} | ||
svg { | ||
max-width: 100%; | ||
max-height: 100%; | ||
border: 2px solid red; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -376,6 +376,7 @@ | |
.chart-holder-backprop { | ||
width: 100%; | ||
height: 100%; | ||
max-height: 750px; | ||
} | ||
.step-bp { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
<script> | ||
let open = false; | ||
let selected = "Intro"; | ||
function handleOptionClick(option) { | ||
selected = option; | ||
console.log(`Selected option: ${option}`); | ||
} | ||
function toggle() { | ||
open = !open; | ||
} | ||
</script> | ||
|
||
<template> | ||
<div class="container"> | ||
<div class="header" on:click={() => toggle()}> | ||
<span>Select Text Difficulty:</span> | ||
<span class="selected">{selected}</span> | ||
<span class="arrow">{open ? "▲" : "▼"}</span> | ||
</div> | ||
{#if open} | ||
<div class="options"> | ||
<button | ||
on:click={() => handleOptionClick("Intro")} | ||
class:selected={selected === "Intro"}>Intro</button | ||
> | ||
<button | ||
on:click={() => handleOptionClick("Experienced")} | ||
class:selected={selected === "Experienced"}>Experienced</button | ||
> | ||
<button | ||
on:click={() => handleOptionClick("Expert")} | ||
class:selected={selected === "Expert"}>Expert</button | ||
> | ||
</div> | ||
{/if} | ||
</div> | ||
</template> | ||
|
||
<style> | ||
.container { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
background-color: pink; | ||
height: 50px; | ||
width: 300px; | ||
padding: 10px; | ||
box-sizing: border-box; | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
.header { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
align-items: center; | ||
cursor: pointer; | ||
} | ||
.options { | ||
display: flex; | ||
flex-direction: row; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
.arrow { | ||
font-size: 0.8em; | ||
} | ||
.selected { | ||
font-weight: bold; | ||
} | ||
button { | ||
margin-right: 10px; | ||
background-color: transparent; | ||
border: none; | ||
outline: none; | ||
font-size: 1em; | ||
font-weight: bold; | ||
text-transform: uppercase; | ||
color: white; | ||
cursor: pointer; | ||
} | ||
button:hover { | ||
background-color: rgba(255, 255, 255, 0.2); | ||
} | ||
</style> |
Oops, something went wrong.