diff --git a/src/components/layout/TrainingDrawer.tsx b/src/components/layout/TrainingDrawer.tsx
index 961467a..601e48e 100644
--- a/src/components/layout/TrainingDrawer.tsx
+++ b/src/components/layout/TrainingDrawer.tsx
@@ -7,6 +7,7 @@
* - Clear Ex button (clears examples only)
* - Clear All button (clears everything including loss history)
* - Randomize button (randomizes weights)
+ * - Visual preset chips (load predefined examples + train)
* - Loss plot canvas (shows loss history)
*
* Status line is rendered separately at the bottom of the screen.
@@ -15,8 +16,10 @@
import {
createSignal,
onCleanup,
+ For,
} from 'solid-js';
import type { MLStore } from '../../stores/ml-store';
+import { VISUAL_PRESET_NAMES, VISUAL_PRESET_LABELS } from '../../stores/ml-store';
import './drawer.css';
export interface TrainingDrawerProps {
@@ -58,6 +61,11 @@ export default function TrainingDrawer(props: TrainingDrawerProps) {
props.mlStore.randomise();
}
+ function onLoadPreset(name: string): void {
+ props.mlStore.loadVisualPreset(name);
+ drawLossPlot();
+ }
+
// ─── Button flash effect ───
function flashButton(id: string): void {
@@ -131,6 +139,22 @@ export default function TrainingDrawer(props: TrainingDrawerProps) {
Randomize
+
+
+
+
+ {(name) => (
+
+ )}
+
+
+