Hosted pages
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Minor edits

+3 -3
+3 -3
index.html
··· 23 23 (Js.Unsafe.get Js.Unsafe.global (Js.string &quot;importScripts&quot;)) 24 24 [| Js.Unsafe.inject (Js.string url) |] in 25 25 import &quot;https://cdn.jsdelivr.net/npm/fzstd@0.1.1/umd/index.js&quot;; 26 - import &quot;https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@4/dist/tf.min.js&quot;</x-ocaml><h2 id="reactive-pipeline"><a href="#reactive-pipeline" class="anchor"></a>Reactive pipeline</h2><p>The entire notebook is a single reactive pipeline. Drawing a bounding box on the map triggers: fetch embeddings → PCA → overlay. Clicking on the map adds training points. The classify button runs kNN and updates the overlay.</p><x-ocaml mode="interactive">let class_colors = [| &quot;#2196F3&quot;; &quot;#4CAF50&quot;; &quot;#FF9800&quot;; &quot;#9C27B0&quot;; &quot;#F44336&quot;; 26 + import &quot;https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@4/dist/tf.min.js&quot;</x-ocaml><h2 id="reactive-pipeline"><a href="#reactive-pipeline" class="anchor"></a>Reactive pipeline</h2><p>The entire notebook is a single reactive pipeline. Drawing a bounding box on the map triggers: fetch embeddings → PCA → overlay.</p><x-ocaml mode="interactive">let class_colors = [| &quot;#2196F3&quot;; &quot;#4CAF50&quot;; &quot;#FF9800&quot;; &quot;#9C27B0&quot;; &quot;#F44336&quot;; 27 27 &quot;#00BCD4&quot;; &quot;#795548&quot;; &quot;#607D8B&quot; |] 28 28 29 29 (* --- Status display --- *) ··· 90 90 let* store = Tessera_zarr_jsoo.open_store ~year () in 91 91 let* (mat, h, w, geo_bounds) = 92 92 Tessera_zarr.fetch_region ~progress ~year ~store bbox in 93 - progress (Printf.sprintf &quot;Fetched %d×%d. Downsampling...&quot; h_full w_full); 93 + progress (Printf.sprintf &quot;Fetched %d×%d. Downsampling...&quot; h w_typo); 94 94 let bounds = Leaflet_map.{ 95 95 south = geo_bounds.Geotessera.min_lat; 96 96 north = geo_bounds.Geotessera.max_lat; ··· 129 129 &quot;Draw a rectangle on the map.&quot; 130 130 | Loading msg -&gt; Printf.sprintf &quot;Loading: %s&quot; msg 131 131 | Ready m -&gt; 132 - Printf.sprintf &quot;Ready: %d×%d mosaic. Click to add training points.&quot; m.h m.w 132 + Printf.sprintf &quot;Ready: %d×%d mosaic. &quot; m.h m.w 133 133 | Error msg -&gt; Printf.sprintf &quot;Error: %s&quot; msg 134 134 in 135 135 Widget.update ~id:&quot;status&quot; (status_view text)