Public
Edited
Dec 18, 2023
1 star
Insert cell
Insert cell
hdf5 = {
let lib = await import("https://cdn.jsdelivr.net/npm/h5wasm@0.7.1/dist/esm/hdf5_hl.js");
await lib.ready;
return lib
}
Insert cell
dataset = await (await fetch("https://raw.githubusercontent.com/Shahnawax/HAR-CNN-Keras/master/model.h5", {mode: "cors"})).arrayBuffer()
Insert cell
file_written = {
await dataset;
hdf5.FS.writeFile("model.h5", new Uint8Array(dataset))
}
Insert cell
{
await file_written;
return hdf5.FS.stat("model.h5")
}
Insert cell
f = {
await file_written;
return new hdf5.File("model.h5", "r")
}
Insert cell
f.keys()
Insert cell
f.get("model_weights").keys()
Insert cell
f.get("model_weights/dense_1/dense_1/bias:0").metadata
Insert cell
f.get("model_weights/dense_1/dense_1/bias:0").value
Insert cell
f.attrs
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more