Download index.html from Textricity/neuralnet-pulse-visualizer: direct link, hf CLI and curl.
- Browser
- Download file 12.7 kB
-
https://huggingface.co/spaces/Textricity/neuralnet-pulse-visualizer/resolve/main/index.html
- Command line
-
hf download hf://spaces/Textricity/neuralnet-pulse-visualizer/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Textricity/neuralnet-pulse-visualizer/resolve/main/index.html
12.7 kB
| <html lang="en" class="scroll-smooth"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>DataSphere: ML Wisdom Hub</title> | |
| <link rel="stylesheet" href="style.css"> | |
| <script src="https://cdn.tailwindcss.com"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script> | |
| <script src="https://unpkg.com/feather-icons"></script> | |
| <script> | |
| tailwind.config = { | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: { | |
| 50: '#f0f9ff', | |
| 100: '#e0f2fe', | |
| 200: '#bae6fd', | |
| 300: '#7dd3fc', | |
| 400: '#38bdf8', | |
| 500: '#0ea5e9', | |
| 600: '#0284c7', | |
| 700: '#0369a1', | |
| 800: '#075985', | |
| 900: '#0c4a6e', | |
| }, | |
| secondary: { | |
| 50: '#f5f3ff', | |
| 100: '#ede9fe', | |
| 200: '#ddd6fe', | |
| 300: '#c4b5fd', | |
| 400: '#a78bfa', | |
| 500: '#8b5cf6', | |
| 600: '#7c3aed', | |
| 700: '#6d28d9', | |
| 800: '#5b21b6', | |
| 900: '#4c1d95', | |
| } | |
| } | |
| } | |
| } | |
| } | |
| </script> | |
| </head> | |
| <body class="bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-gray-100 transition-colors duration-200"> | |
| <custom-navbar></custom-navbar> | |
| <div class="flex flex-col md:flex-row min-h-screen"> | |
| <!-- Sidebar Navigation --> | |
| <custom-sidebar></custom-sidebar> | |
| <!-- Main Content --> | |
| <main class="flex-1 p-6 md:p-8"> | |
| <!-- Loss Functions Section --> | |
| <section id="loss-functions" class="mb-16"> | |
| <h2 class="text-3xl font-bold mb-6 text-primary-600 dark:text-primary-400">Loss Functions</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> | |
| <!-- L1/L2 Loss Card --> | |
| <div class="bg-white dark:bg-gray-800 rounded-xl shadow-md overflow-hidden hover:shadow-lg transition-shadow duration-300"> | |
| <div class="p-6"> | |
| <div class="flex items-center mb-4"> | |
| <span class="inline-block px-3 py-1 text-sm font-semibold text-white bg-primary-500 rounded-full">Regression</span> | |
| </div> | |
| <h3 class="text-xl font-bold mb-2">L1/L2 Loss</h3> | |
| <div class="bg-gray-100 dark:bg-gray-700 p-4 rounded-lg mb-4"> | |
| <code class="text-sm font-mono"> | |
| L1 = Σ|y_true - y_pred|<br> | |
| L2 = Σ(y_true - y_pred)² | |
| </code> | |
| </div> | |
| <p class="text-gray-600 dark:text-gray-300 mb-4">Measures absolute/quadratic differences between predicted and true values.</p> | |
| <div class="flex flex-wrap gap-2"> | |
| <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 dark:bg-green-900 text-green-800 dark:text-green-200"> | |
| <i data-feather="check-circle" class="w-3 h-3 mr-1"></i> | |
| Robust to outliers (L1) | |
| </span> | |
| <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200"> | |
| <i data-feather="check-circle" class="w-3 h-3 mr-1"></i> | |
| Smooth gradients (L2) | |
| </span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- Cross-Entropy Loss Card --> | |
| <div class="bg-white dark:bg-gray-800 rounded-xl shadow-md overflow-hidden hover:shadow-lg transition-shadow duration-300"> | |
| <div class="p-6"> | |
| <div class="flex items-center mb-4"> | |
| <span class="inline-block px-3 py-1 text-sm font-semibold text-white bg-secondary-500 rounded-full">Classification</span> | |
| </div> | |
| <h3 class="text-xl font-bold mb-2">Cross-Entropy</h3> | |
| <div class="bg-gray-100 dark:bg-gray-700 p-4 rounded-lg mb-4"> | |
| <code class="text-sm font-mono"> | |
| CE = -Σ(y_true * log(y_pred)) | |
| </code> | |
| </div> | |
| <p class="text-gray-600 dark:text-gray-300 mb-4">Measures difference between predicted probabilities and true distribution.</p> | |
| <div class="flex flex-wrap gap-2"> | |
| <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-purple-100 dark:bg-purple-900 text-purple-800 dark:text-purple-200"> | |
| <i data-feather="zap" class="w-3 h-3 mr-1"></i> | |
| Multi-class | |
| </span> | |
| <span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-pink-100 dark:bg-pink-900 text-pink-800 dark:text-pink-200"> | |
| <i data-feather="alert-circle" class="w-3 h-3 mr-1"></i> | |
| Sensitive to imbalance | |
| </span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- More loss function cards would go here --> | |
| </div> | |
| </section> | |
| <!-- ML Types Section --> | |
| <section id="ml-types" class="mb-16"> | |
| <h2 class="text-3xl font-bold mb-6 text-primary-600 dark:text-primary-400">Machine Learning Types</h2> | |
| <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6"> | |
| <!-- Computer Vision Card --> | |
| <div class="bg-white dark:bg-gray-800 rounded-xl shadow-md overflow-hidden hover:shadow-lg transition-shadow duration-300"> | |
| <div class="p-6"> | |
| <div class="flex items-center mb-4"> | |
| <i data-feather="image" class="w-5 h-5 mr-2 text-secondary-500"></i> | |
| <h3 class="text-xl font-bold">Computer Vision</h3> | |
| </div> | |
| <p class="text-gray-600 dark:text-gray-300 mb-4">Algorithms that process and analyze visual data like images and videos.</p> | |
| <div class="flex items-center text-sm text-gray-500 dark:text-gray-400"> | |
| <i data-feather="cpu" class="w-4 h-4 mr-1"></i> | |
| <span>Example: Image classification with CNNs</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- LLMs Card --> | |
| <div class="bg-white dark:bg-gray-800 rounded-xl shadow-md overflow-hidden hover:shadow-lg transition-shadow duration-300"> | |
| <div class="p-6"> | |
| <div class="flex items-center mb-4"> | |
| <i data-feather="type" class="w-5 h-5 mr-2 text-secondary-500"></i> | |
| <h3 class="text-xl font-bold">Large Language Models</h3> | |
| </div> | |
| <p class="text-gray-600 dark:text-gray-300 mb-4">Transformer-based models trained on massive text corpora for NLP tasks.</p> | |
| <div class="flex items-center text-sm text-gray-500 dark:text-gray-400"> | |
| <i data-feather="cpu" class="w-4 h-4 mr-1"></i> | |
| <span>Example: GPT, BERT, T5</span> | |
| </div> | |
| </div> | |
| </div> | |
| <!-- More ML type cards would go here --> | |
| </div> | |
| </section> | |
| <!-- Neural Networks Section --> | |
| <section id="neural-networks" class="mb-16"> | |
| <h2 class="text-3xl font-bold mb-6 text-primary-600 dark:text-primary-400">How Neural Networks Work</h2> | |
| <div class="bg-white dark:bg-gray-800 rounded-xl shadow-md overflow-hidden"> | |
| <div class="p-6"> | |
| <div class="flex flex-col lg:flex-row gap-8"> | |
| <div class="lg:w-1/2"> | |
| <h3 class="text-xl font-bold mb-4">Neural Network Anatomy</h3> | |
| <div class="bg-gray-100 dark:bg-gray-700 p-4 rounded-lg mb-6"> | |
| <div class="relative w-full h-64 rounded-lg overflow-hidden"> | |
| <iframe src="nn-animation.html" class="w-full h-full border-0"></iframe> | |
| </div> | |
| </div> | |
| <div class="space-y-4"> | |
| <div> | |
| <h4 class="font-semibold text-primary-600 dark:text-primary-400">Weights & Biases</h4> | |
| <p class="text-gray-600 dark:text-gray-300">Parameters that transform input data through learned patterns.</p> | |
| </div> | |
| <div> | |
| <h4 class="font-semibold text-primary-600 dark:text-primary-400">Activation Functions</h4> | |
| <p class="text-gray-600 dark:text-gray-300">Non-linear functions (ReLU, sigmoid) that enable complex mappings.</p> | |
| </div> | |
| </div> | |
| </div> | |
| <div class="lg:w-1/2"> | |
| <h3 class="text-xl font-bold mb-4">Training Process</h3> | |
| <div class="space-y-4"> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 h-10 w-10 rounded-full bg-primary-100 dark:bg-primary-900 flex items-center justify-center mr-4"> | |
| <span class="text-primary-600 dark:text-primary-300 font-bold">1</span> | |
| </div> | |
| <div> | |
| <h4 class="font-semibold">Forward Pass</h4> | |
| <p class="text-gray-600 dark:text-gray-300">Compute predictions from input data through the network layers.</p> | |
| </div> | |
| </div> | |
| <div class="flex items-start"> | |
| <div class="flex-shrink-0 h-10 w-10 rounded-full bg-primary-100 dark:bg-primary-900 flex items-center justify-center mr-4"> | |
| <span class="text-primary-600 dark:text-primary-300 font-bold">2</span> | |
| </div> | |
| <div> | |
| <h4 class="font-semibold">Loss Calculation</h4> | |
| <p class="text-gray-600 dark:text-gray-300">Measure how far predictions are from true values using a loss function.</p> | |
| </div> | |
| </div> | |
| <!-- More training steps would go here --> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </div> | |
| </section> | |
| <!-- More sections would go here --> | |
| </main> | |
| </div> | |
| <custom-footer></custom-footer> | |
| <script src="components/navbar.js"></script> | |
| <script src="components/sidebar.js"></script> | |
| <script src="components/footer.js"></script> | |
| <script src="script.js"></script> | |
| <script>feather.replace();</script> | |
| <script src="https://huggingface.co/deepsite/deepsite-badge.js"></script> | |
| </body> | |
| </html> |