--- title: AI Learning emoji: ๐Ÿ colorFrom: yellow colorTo: gray sdk: docker app_port: 7860 pinned: false short_description: From perceptrons to the Nectar SDK detection workflow. --- # AI Learning โ€” Black Bee Drones A Next.js + TypeScript presentation that walks from "what is AI" to a deep tour of the [Nectar SDK](https://github.com/Black-Bee-Drones/nectar-sdk) detection workflow. Designed as a live, in-room talk to a teammate joining from the hardware side. Hosted at . ## Run locally ```bash npm install npm run dev # http://localhost:3000 ``` Production build identical to what the Space runs: ```bash docker build -t ai-learning . docker run --rm -p 7860:7860 ai-learning # open http://localhost:7860 ``` ## Navigation - **Cover** (`/`) lists every chapter. - Inside a chapter: - `โ†’` / `Space` โ€” next slide (rolls into next chapter at the end) - `โ†` โ€” previous slide - `โ†‘` / `โ†“` โ€” previous / next chapter - Dots in the footer โ€” jump to a specific slide ## Layout ``` ai-learning/ โ”œโ”€ app/ # Next.js App Router โ”‚ โ”œโ”€ page.tsx # Cover โ”‚ โ””โ”€ chapter/[slug]/page.tsx # SlideRunner over a chapter manifest โ”œโ”€ content/ โ”‚ โ”œโ”€ chapters.ts # Ordered chapter list โ”‚ โ””โ”€ slides/ # One .tsx per chapter, slide objects โ”œโ”€ components/ โ”‚ โ”œโ”€ chrome/ # SlideChrome ยท ProgressDots ยท CoverKeys โ”‚ โ”œโ”€ slide/ # Slide ยท SlideRunner โ”‚ โ”œโ”€ math/ # KaTeX wrappers โ”‚ โ”œโ”€ ui/ # Kbd ยท Callout ยท CodeBlock โ”‚ โ””โ”€ viz/ # โ‰ˆ 30 visualisation primitives โ”œโ”€ lib/ โ”‚ โ”œโ”€ hooks/ # useKey ยท useReducedMotion ยท useInView โ”‚ โ””โ”€ utils.ts โ”œโ”€ Dockerfile # HF Space build (Node 20-slim) โ”œโ”€ next.config.mjs # output: "standalone" โ””โ”€ tailwind.config.ts ``` ## Chapters (15, five parts) | Part | # | Slug | Title | |------|----|-------------------------|-----------------------------| | I | 1 | `what-is-ai` | What is AI | | I | 2 | `data` | Data | | I | 3 | `paradigms` | Learning paradigms | | II | 4 | `classical-ml` | Classical machine learning | | II | 5 | `deep-learning` | Deep learning foundations | | II | 6 | `frameworks` | Frameworks and ecosystem | | II | 7 | `convolutional-networks`| Convolutional networks | | III | 8 | `cv-tasks` | Computer vision tasks | | III | 9 | `classification` | Image classification | | IV | 10 | `detection` | Object detection | | IV | 11 | `segmentation` | Segmentation | | V | 12 | `lifecycle` | Training and evaluation | | V | 13 | `deployment` | Deployment to the edge | | V | 14 | `nectar` | The Nectar AI module | | V | 15 | `references` | References | ## Lesson path - Cover offers **Lesson path** (`?path=lesson`) for core slides only. - **Full deck** includes reference and deep-dive slides for self-study. - See `content/STYLE.md` for copy conventions. ## Stack - Next.js 14 (App Router) + TypeScript, strict mode - Tailwind CSS with custom design tokens - Framer Motion for transitions and primitive animations - KaTeX for inline / block math - HTML Canvas for the convolution, augmentation gallery, loss surface, decision boundary - D3 reserved for future curves (light dependency) ## Editing content Each chapter lives in `content/slides/chXX-*.tsx` as an array of `Slide` objects. To add or reorder slides, edit the array โ€” no router changes needed. The slide manifest contract is in `components/slide/types.ts`. ## Reduced motion Auto-running animations (loss surface, convolution, augmentations, agent loop, gradient descent) honour `prefers-reduced-motion: reduce` and either freeze on a representative frame or stop iterating. ## License For internal Black Bee Drones use.