MCPcopy Create free account
hub / github.com/DFin/Neural-Network-Visualisation / onSnapshotChange

Function onSnapshotChange

assets/main.js:311–318  ·  view source on GitHub ↗
(snapshot)

Source from the content-addressed store, hash-verified

309
310 const timelineController = setupTimelineSlider(timelineSnapshots, {
311 async onSnapshotChange(snapshot) {
312 if (!snapshot) return;
313 const layers = await snapshot.loadLayers();
314 neuralModel.updateLayers(layers);
315 neuralScene.updateNetworkWeights();
316 networkInfoPanel?.update(neuralModel);
317 refreshNetworkState();
318 },
319 });
320
321 digitCanvas.setChangeHandler(() => refreshNetworkState());

Callers

nothing calls this directly

Calls 4

refreshNetworkStateFunction · 0.85
updateLayersMethod · 0.80
updateNetworkWeightsMethod · 0.80
updateMethod · 0.45

Tested by

no test coverage detected