MCPcopy Index your code

hub / github.com/poloclub/cnn-explainer / functions

Functions98 in github.com/poloclub/cnn-explainer

↓ 15 callersFunctionmoveLayerX
(arg)
src/overview/intermediate-utils.js:32
↓ 13 callersFunctiondrawArrow
(arg)
src/overview/intermediate-utils.js:244
↓ 12 callersMethodcall
(self, x)
tiny-vgg/tiny-vgg.py:196
↓ 12 callersFunctiondrawIntermediateLayerLegend
(arg)
src/overview/intermediate-utils.js:146
↓ 10 callersFunctionaddOverlayGradient
(gradientID, stops, group)
src/overview/intermediate-utils.js:103
↓ 10 callersFunctioninit2DArray
(height, width, fill)
src/utils/cnn.js:164
↓ 8 callersFunctiongappedColorScale
(colorScale, range, value, gap)
src/overview/draw-utils.js:142
↓ 7 callersFunctionaddOverlayRect
(gradientName, x, y, width, height)
src/overview/intermediate-draw.js:1107
↓ 6 callersFunctionconvolute
(curLayer)
src/utils/cnn.js:337
↓ 6 callersFunctiongetInputKnot
(point)
src/overview/draw-utils.js:87
↓ 6 callersFunctiongetOutputKnot
(point)
src/overview/draw-utils.js:76
↓ 6 callersFunctionrelu
(curLayer)
src/utils/cnn.js:386
↓ 5 callersFunctionmatrixSlice
(mat, xs, xe, ys, ye)
src/utils/cnn.js:221
↓ 5 callersFunctionnormalizedColor
src/overview/intermediate-utils.js:165
↓ 4 callersFunctionaddUnderneathRect
(curLayerIndex, i, leftX, intermediateGap, padding, intermediateNodeMouseOverHandler, intermediateNodeMous
src/overview/intermediate-draw.js:1068
↓ 4 callersFunctiondrawIntermediateLayer
(curLayerIndex, leftX, rightX, rightStart, intermediateGap, d, i, intermediateNodeMouseOverHandler, interm
src/overview/intermediate-draw.js:406
↓ 4 callersFunctiondrawIntermediateLayerAnnotation
(arg)
src/overview/intermediate-draw.js:839
↓ 4 callersFunctiondrawOutput
(d, i, g, range)
src/overview/overview-draw.js:60
↓ 3 callersFunctiongetExtent
(array)
src/overview/draw-utils.js:10
↓ 3 callersFunctionlogitCircleMouseLeaveHandler
(i)
src/overview/flatten-draw.js:162
↓ 3 callersFunctionlogitCircleMouseOverHandler
(i)
src/overview/flatten-draw.js:116
↓ 3 callersFunctionmaxPooling
(curLayer)
src/utils/cnn.js:434
↓ 3 callersFunctionmoveLegend
(d, i, g, moveX, duration, restore)
src/overview/flatten-draw.js:88
↓ 3 callersFunctionprepare_for_training
(dataset, batch_size=32, cache=True, shuffle_buffer_size=1000)
tiny-vgg/tiny-vgg.py:138
↓ 3 callersFunctionredrawLayerIfNeeded
(curLayerIndex, i)
src/overview/intermediate-draw.js:1136
↓ 2 callersFunctionanimateEdge
(d, i, g, dashoffset)
src/overview/intermediate-draw.js:380
↓ 2 callersFunctionanimationButtonClicked
(curLayerIndex)
src/overview/intermediate-draw.js:297
↓ 2 callersFunctionarray2d
(height, width, f)
src/detail-view/DetailviewUtils.js:7
↓ 2 callersFunctiondrawOutputScore
(d, i, g, scale)
src/overview/overview-draw.js:128
↓ 2 callersFunctionflattenMouseLeaveHandler
(d)
src/overview/flatten-draw.js:1150
↓ 2 callersFunctionflattenMouseOverHandler
(d)
src/overview/flatten-draw.js:1115
↓ 2 callersFunctiongetLegendGradient
(g, colorScale, gradientName, min, max)
src/overview/overview-draw.js:197
↓ 2 callersFunctionimageDataTo3DArray
(imageData)
src/utils/cnn.js:246
↓ 2 callersFunctionmatrixAdd
(mat1, mat2)
src/utils/cnn.js:198
↓ 2 callersFunctionsingleConv
(input, kernel, stride=1, padding=0)
src/utils/cnn.js:306
↓ 2 callersFunctionslidingAnimation
()
src/overview/intermediate-draw.js:199
↓ 2 callersFunctionstartIntermediateAnimation
(kernelGroupInput, kernelGroupResult, tickTime1D, stride)
src/overview/intermediate-draw.js:246
↓ 2 callersFunctionstartOutputAnimation
(kernelGroup, tickTime1D, stride, delay, curLayerIndex)
src/overview/intermediate-draw.js:197
↓ 1 callersFunctionarray1d
(length, f)
src/detail-view/DetailviewUtils.js:3
↓ 1 callersFunctionconstructCNNFromOutputs
(allOutputs, model, inputImageTensor)
src/utils/cnn-tf.js:63
↓ 1 callersFunctionconstructNN
(inputImageFile)
src/utils/cnn.js:136
↓ 1 callersFunctionconstructNNFromJSON
(nnJSON, inputImageArray)
src/utils/cnn.js:42
↓ 1 callersFunctioncreateIntermediateNode
(curLayerIndex, selectedI, groupLayer, x, y, nodeIndex, stride, intermediateNodeMouseOverHandler, intermed
src/overview/intermediate-draw.js:143
↓ 1 callersFunctioncropCentralSquare
(arr)
src/utils/cnn-tf.js:281
↓ 1 callersFunctiondrawIntermidiateImage
(image, range, colorScale, length, dataMatrix)
src/overview/intermediate-draw.js:84
↓ 1 callersFunctiondrawLegends
(legends, legendHeight)
src/overview/overview-draw.js:224
↓ 1 callersFunctiondrawLogitLayer
(arg)
src/overview/flatten-draw.js:216
↓ 1 callersFunctiondrawOneEdgeGroup
()
src/overview/flatten-draw.js:322
↓ 1 callersFunctionflatten
(curLayer)
src/utils/cnn.js:450
↓ 1 callersFunctiongetInputImageArray
(imgFile)
src/utils/cnn.js:274
↓ 1 callersFunctiongetInputImageArray
(imgFile, normalize=true)
src/utils/cnn-tf.js:349
↓ 1 callersFunctiongetLinkData
(nodeCoordinate, cnn)
src/overview/draw-utils.js:99
↓ 1 callersFunctiongetMidCoords
(svg, elem)
src/overview/draw-utils.js:49
↓ 1 callersFunctiongetVisualizationSizeConstraint
(imageLength)
src/detail-view/DetailviewUtils.js:59
↓ 1 callersFunctionimageDataTo3DTensor
(imageData, width, height, normalize=true)
src/utils/cnn-tf.js:311
↓ 1 callersFunctionmatrixDot
(mat1, mat2)
src/utils/cnn.js:179
↓ 1 callersFunctionmatrixMax
(mat)
src/utils/cnn.js:229
↓ 1 callersFunctionremoveLogitLayer
()
src/overview/flatten-draw.js:599
↓ 1 callersFunctionsingleMaxPooling
(mat, kernelWidth=2, stride=2, padding='VALID')
src/utils/cnn.js:405
↓ 1 callersFunctionsingleRelu
(mat)
src/utils/cnn.js:366
↓ 1 callersFunctionsoftmaxClicked
(arg)
src/overview/flatten-draw.js:616
↓ 1 callersFunctiontest_step
(image_batch, label_batch)
tiny-vgg/tiny-vgg.py:244
↓ 1 callersFunctiontrain_step
(image_batch, label_batch)
tiny-vgg/tiny-vgg.py:220
↓ 1 callersFunctionvali_step
(image_batch, label_batch)
tiny-vgg/tiny-vgg.py:235
Method__init__
(self, filters=10)
tiny-vgg/tiny-vgg.py:179
Functioncompute_input_multiplies_with_weight
(hoverH, hoverW, padded_input_size, weight_dims, outputMappings
src/detail-view/DetailviewUtils.js:27
FunctionconstructCNN
(inputImageFile, model)
src/utils/cnn-tf.js:239
Methodconstructor
* Class structure for each neuron node. * * @param {string} layerName Name of the node's layer. * @param {int} index Index of this node in i
src/utils/cnn.js:21
Methodconstructor
(source, dest, weight)
src/utils/cnn.js:35
Methodconstructor
* Class structure for each neuron node. * * @param {string} layerName Name of the node's layer. * @param {int} index Index of this node in i
src/utils/cnn-tf.js:26
Methodconstructor
* Class structure for each link between two nodes. * * @param {Node} source Source node. * @param {Node} dest Target node. * @param {numb
src/utils/cnn-tf.js:48
Functionconvert_h5_to_json
Helper function to convert tf2 stored model h5 file to a customized json format. Args: model_h5_file(string): filename of the st
src/utils/utlis.py:7
Functioncreate_class_dict
()
tiny-vgg/tiny-vgg.py:17
Functioncreate_val_class_dict
()
tiny-vgg/tiny-vgg.py:36
FunctiondrawCNN
(width, height, cnnGroup, nodeMouseOverHandler, nodeMouseLeaveHandler, nodeClickHandler)
src/overview/overview-draw.js:406
FunctiondrawConv1
(curLayerIndex, d, i, width, height, intermediateNodeMouseOverHandler, intermediateNodeMouseLeaveHandler,
src/overview/intermediate-draw.js:1194
FunctiondrawConv2
(curLayerIndex, d, i, width, height, intermediateNodeMouseOverHandler, intermediateNodeMouseLeaveHandler,
src/overview/intermediate-draw.js:1335
FunctiondrawConv3
(curLayerIndex, d, i, width, height, intermediateNodeMouseOverHandler, intermediateNodeMouseLeaveHandler,
src/overview/intermediate-draw.js:1465
FunctiondrawConv4
(curLayerIndex, d, i, width, height, intermediateNodeMouseOverHandler, intermediateNodeMouseLeaveHandler,
src/overview/intermediate-draw.js:1601
FunctiondrawCustomImage
(image, inputLayer)
src/overview/overview-draw.js:138
FunctiondrawFlatten
(curLayerIndex, d, i, width, height)
src/overview/flatten-draw.js:998
FunctionfullyConnect
(curLayer)
src/utils/cnn.js:463
FunctiongenerateOutputMappings
(stride, output, kernelLength, padded_input_size, dilation)
src/detail-view/DetailviewUtils.js:11
FunctiongetDataRange
(image)
src/detail-view/DetailviewUtils.js:65
FunctiongetMatrixSliceFromInputHighlights
(matrix, highlights, kernelLength)
src/detail-view/DetailviewUtils.js:42
FunctiongetMatrixSliceFromOutputHighlights
(matrix, highlights)
src/detail-view/DetailviewUtils.js:50
FunctiongridData
(image, constraint=getVisualizationSizeConstraint(image.length))
src/detail-view/DetailviewUtils.js:78
FunctionloadTrainedModel
(modelFile)
src/utils/cnn-tf.js:420
Functionprepare_for_testing
(dataset, batch_size=32, cache=True)
tiny-vgg/tiny-vgg.py:157
Functionprocess_path_test
Get the (class label, processed image) pair of the given image path. This funciton uses python primitives, so you need to use tf.py_funciton
tiny-vgg/tiny-vgg.py:104
Functionprocess_path_train
Get the (class label, processed image) pair of the given image path. This funciton uses python primitives, so you need to use tf.py_funciton
tiny-vgg/tiny-vgg.py:71
FunctionsoftmaxDetailViewMouseLeaveHandler
(event)
src/overview/flatten-draw.js:212
FunctionsoftmaxDetailViewMouseOverHandler
(event)
src/overview/flatten-draw.js:207
Functionsplit_val_data
()
tiny-vgg/tiny-vgg.py:57
FunctiontempMain
()
src/utils/cnn.js:468
FunctionupdateCNN
()
src/overview/overview-draw.js:721
FunctionupdateCNNLayerRanges
()
src/overview/overview-draw.js:834
FunctionwriteBundle
()
rollup_start_dev.js:6