(container: Drawable, model: LayersModel)
| 53 | * } |
| 54 | */ |
| 55 | export async function modelSummary(container: Drawable, model: LayersModel) { |
| 56 | const drawArea = getDrawArea(container); |
| 57 | const summary = getModelSummary(model); |
| 58 | |
| 59 | const headers = [ |
| 60 | 'Layer Name', |
| 61 | 'Output Shape', |
| 62 | '# Of Params', |
| 63 | 'Trainable', |
| 64 | ]; |
| 65 | |
| 66 | const values = summary.layers.map( |
| 67 | l => |
| 68 | [l.name, |
| 69 | l.outputShape, |
| 70 | l.parameters, |
| 71 | l.trainable, |
| 72 | ]); |
| 73 | |
| 74 | table(drawArea, {headers, values}); |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * Renders summary information about a layer and a histogram of parameters in |
no test coverage detected
searching dependent graphs…