Skip to content

Commit

Permalink
add: svg for activation funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
Keshav-writes-code committed Sep 20, 2024
1 parent 175c4e5 commit 9b335f3
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/components/NN_comps/NN_specs.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<ul
class="dropdown-content bg-base-300 rounded-box z-[1] p-2 shadow-2xl"
>
<li class="flex items-center" >
<li class="flex justify-between items-center" >
<input
type="radio"
name="theme-dropdown"
Expand All @@ -105,10 +105,10 @@
value="business"
on:click={() => (selActivaFn_store.set(af_enum.relu))}
/>
<svg class="h-4" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" zoomAndPan="magnify" viewBox="0 0 375 225" preserveAspectRatio="xMidYMid meet" version="1.0"><path stroke-linecap="round" transform="matrix(0.53033, -0.53033, 0.53033, 0.53033, 126.789326, 194.20462)" fill="none" stroke-linejoin="miter" d="M 32.502295 32.499475 L 344.284837 32.499475 " stroke="#999" stroke-width="65" stroke-opacity="1" stroke-miterlimit="4"/><path stroke-linecap="round" transform="matrix(0.75, -0.000000000000000372, 0.000000000000000372, 0.75, 18.697188, 170.642902)" fill="none" stroke-linejoin="miter" d="M 32.497501 32.502174 L 180.257924 32.502174 " stroke="#999" stroke-width="65" stroke-opacity="1" stroke-miterlimit="4"/></svg>
<svg class="h-4 stroke-neutral-400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" zoomAndPan="magnify" viewBox="0 0 375 225" preserveAspectRatio="xMidYMid meet" version="1.0"><path stroke-linecap="round" transform="matrix(0.53033, -0.53033, 0.53033, 0.53033, 126.789326, 194.20462)" fill="inherit" stroke-linejoin="miter" d="M 32.502295 32.499475 L 344.284837 32.499475 " stroke="inherit" stroke-width="65" stroke-opacity="1" stroke-miterlimit="4"/><path stroke-linecap="round" transform="matrix(0.75, -0.000000000000000372, 0.000000000000000372, 0.75, 18.697188, 170.642902)" fill="inherit" stroke-linejoin="miter" d="M 32.497501 32.502174 L 180.257924 32.502174 " stroke="inherit" stroke-width="65" stroke-opacity="1" stroke-miterlimit="4"/></svg>

</li>
<li>
<li class="flex justify-between items-center">
<input
type="radio"
name="theme-dropdown"
Expand All @@ -117,8 +117,10 @@
value="dark"
on:click={() => (selActivaFn_store.set(af_enum.sigmoid))}
/>
<svg class="h-4 w-min stroke-neutral-400 fill-neutral-400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" zoomAndPan="magnify" viewBox="0 0 224.87999 149.999998" height="200" preserveAspectRatio="xMidYMid meet" version="1.0"><defs><clipPath id="2be8f28244"><path d="M 0 0.0390625 L 224.761719 0.0390625 L 224.761719 149.960938 L 0 149.960938 Z M 0 0.0390625 " clip-rule="nonzero"/></clipPath><clipPath id="9555c5108b"><path d="M 21.4375 128.972656 L 68.664062 128.972656 L 68.664062 149.960938 L 21.4375 149.960938 Z M 21.4375 128.972656 " clip-rule="nonzero"/></clipPath><clipPath id="b6b1be75e8"><path d="M 45.039062 128.972656 C 32.003906 128.972656 21.4375 133.667969 21.4375 139.464844 C 21.4375 145.261719 32.003906 149.960938 45.039062 149.960938 C 58.074219 149.960938 68.640625 145.261719 68.640625 139.464844 C 68.640625 133.667969 58.074219 128.972656 45.039062 128.972656 Z M 45.039062 128.972656 " clip-rule="nonzero"/></clipPath><clipPath id="1659f5393d"><path d="M 44 107 L 54 107 L 54 132 L 44 132 Z M 44 107 " clip-rule="nonzero"/></clipPath><clipPath id="310ee644a9"><path d="M 41.910156 108.125 L 50.695312 107.046875 L 53.609375 130.867188 L 44.824219 131.941406 Z M 41.910156 108.125 " clip-rule="nonzero"/></clipPath><clipPath id="2c451615f8"><path d="M 46.304688 107.585938 L 53.609375 130.867188 L 44.824219 131.941406 Z M 46.304688 107.585938 " clip-rule="nonzero"/></clipPath><clipPath id="235014250d"><path d="M 158.015625 0.0390625 L 205.242188 0.0390625 L 205.242188 21.027344 L 158.015625 21.027344 Z M 158.015625 0.0390625 " clip-rule="nonzero"/></clipPath><clipPath id="dd89e20860"><path d="M 181.617188 0.0390625 C 168.582031 0.0390625 158.015625 4.738281 158.015625 10.535156 C 158.015625 16.332031 168.582031 21.027344 181.617188 21.027344 C 194.652344 21.027344 205.222656 16.332031 205.222656 10.535156 C 205.222656 4.738281 194.652344 0.0390625 181.617188 0.0390625 Z M 181.617188 0.0390625 " clip-rule="nonzero"/></clipPath><clipPath id="45a1be63d1"><path d="M 92 64 L 114 64 L 114 76 L 92 76 Z M 92 64 " clip-rule="nonzero"/></clipPath><clipPath id="af6670f4bc"><path d="M 114.488281 72.8125 L 112.292969 77.820312 L 92.214844 69.03125 L 94.40625 64.019531 Z M 114.488281 72.8125 " clip-rule="nonzero"/></clipPath><clipPath id="65ac6f4c8f"><path d="M 113.390625 75.316406 L 92.214844 69.03125 L 94.410156 64.023438 Z M 113.390625 75.316406 " clip-rule="nonzero"/></clipPath></defs><g clip-path="url(#2be8f28244)"><path stroke-linecap="butt" transform="matrix(0.562829, -0.495099, 0.495099, 0.562829, 32.55966, 120.158884)" fill="none" stroke-linejoin="miter" d="M 12.3082 25.147326 C 48.142817 42.684804 83.973623 42.687522 119.804061 25.151569 " stroke="inherit" stroke-width="56" stroke-opacity="1" stroke-miterlimit="4"/><path stroke-linecap="butt" transform="matrix(-0.7496, 0, 0, -0.7496, 46.592321, 149.959991)" fill="none" stroke-linejoin="miter" d="M -0.00190677 27.998048 C 20.717479 27.998048 41.436864 27.998048 62.15625 27.998048 " stroke="inherit" stroke-width="56" stroke-opacity="1" stroke-miterlimit="4"/><path stroke-linecap="butt" transform="matrix(-0.578717, 0.476431, -0.476431, -0.578717, 196.786585, 30.35589)" fill="none" stroke-linejoin="miter" d="M 11.455337 25.549997 C 49.213446 42.473322 86.975161 42.47776 124.735749 25.552664 " stroke="inherit" stroke-width="56" stroke-opacity="1" stroke-miterlimit="4"/><path stroke-linecap="butt" transform="matrix(-0.7496, 0, 0, -0.7496, 249.268976, 42.0176)" fill="none" stroke-linejoin="miter" d="M -0.000740565 28.001946 C 31.693249 28.001946 63.387238 28.001946 95.086439 28.001946 " stroke="inherit" stroke-width="56" stroke-opacity="1" stroke-miterlimit="4"/></g><g clip-path="url(#9555c5108b)"><g clip-path="url(#b6b1be75e8)"><path fill="inherit" d="M 21.4375 128.972656 L 68.664062 128.972656 L 68.664062 149.960938 L 21.4375 149.960938 Z M 21.4375 128.972656 " fill-opacity="1" fill-rule="nonzero"/></g></g><g clip-path="url(#1659f5393d)"><g clip-path="url(#310ee644a9)"><g clip-path="url(#2c451615f8)"><path fill="inherit" d="M 41.910156 108.125 L 50.695312 107.046875 L 53.609375 130.867188 L 44.824219 131.941406 Z M 41.910156 108.125 " fill-opacity="1" fill-rule="nonzero"/></g></g></g><g clip-path="url(#235014250d)"><g clip-path="url(#dd89e20860)"><path fill="inherit" d="M 158.015625 0.0390625 L 205.242188 0.0390625 L 205.242188 21.027344 L 158.015625 21.027344 Z M 158.015625 0.0390625 " fill-opacity="1" fill-rule="nonzero"/></g></g><g clip-path="url(#45a1be63d1)"><g clip-path="url(#af6670f4bc)"><g clip-path="url(#65ac6f4c8f)"><path fill="inherit" d="M 114.488281 72.8125 L 112.292969 77.820312 L 92.214844 69.03125 L 94.40625 64.019531 Z M 114.488281 72.8125 " fill-opacity="1" fill-rule="nonzero"/></g></g></g></svg>

</li>
<li>
<li class="flex justify-between items-center">
<input
type="radio"
name="theme-dropdown"
Expand All @@ -127,6 +129,8 @@
value="sunset"
on:click={() => (selActivaFn_store.set(af_enum.tanh))}
/>
<svg class="h-4 w-min stroke-neutral-400 " xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="300" zoomAndPan="magnify" viewBox="0 0 224.87999 149.999998" height="200" preserveAspectRatio="xMidYMid meet" version="1.0"><defs><clipPath id="248bfccb90"><path d="M 0 0.0390625 L 224.761719 0.0390625 L 224.761719 149.960938 L 0 149.960938 Z M 0 0.0390625 " clip-rule="nonzero"/></clipPath></defs><g clip-path="url(#248bfccb90)"><path fill="inherit" d="M 0 0.0390625 L 224.878906 0.0390625 L 224.878906 149.960938 L 0 149.960938 Z M 0 0.0390625 " fill-opacity="1" fill-rule="nonzero"/><path fill="inherit" d="M 0 0.0390625 L 224.878906 0.0390625 L 224.878906 149.960938 L 0 149.960938 Z M 0 0.0390625 " fill-opacity="1" fill-rule="nonzero"/><path stroke-linecap="butt" transform="matrix(0.540209, -0.519686, 0.519686, 0.540209, 36.066002, 130.766544)" fill="none" stroke-linejoin="miter" d="M 13.937728 17.022023 C 50.963371 47.340723 87.984295 47.342557 125.007727 17.020014 " stroke="inherit" stroke-width="44" stroke-opacity="1" stroke-miterlimit="4"/><path stroke-linecap="butt" transform="matrix(-0.749534, 0.00997292, -0.00997292, -0.749534, 54.602579, 149.210655)" fill="none" stroke-linejoin="miter" d="M 0.000514258 21.997685 C 25.052555 21.997475 50.109737 22.002544 75.161777 22.002333 " stroke="inherit" stroke-width="44" stroke-opacity="1" stroke-miterlimit="4"/><path stroke-linecap="butt" transform="matrix(-0.551441, 0.507752, -0.507752, -0.551441, 192.341956, 18.137345)" fill="none" stroke-linejoin="miter" d="M 14.65899 16.403063 C 53.041771 50.703596 91.425721 50.698803 129.811447 16.403409 " stroke="inherit" stroke-width="44" stroke-opacity="1" stroke-miterlimit="4"/><path stroke-linecap="butt" transform="matrix(-0.7496, 0, 0, -0.7496, 251.113635, 33.022401)" fill="none" stroke-linejoin="miter" d="M 0.00047168 21.999937 C 34.253118 21.999937 68.505764 21.999937 102.75841 21.999937 " stroke="inherit" stroke-width="44" stroke-opacity="1" stroke-miterlimit="4"/></g></svg>

</li>

</ul>
Expand Down

0 comments on commit 9b335f3

Please sign in to comment.