Select Git revision
ur10test.py
-
Amira Abdel-Rahman authoredAmira Abdel-Rahman authored
json.js 7.21 KiB
function initEditor(){
// todo ?? move template creation to separate files
var templates = [
{
text:"DEM simulation node",
title: 'Insert prediction viewer',
className: 'jsoneditor-type-object',
field: 'voxel',
value: {
name:"prediction",
size:5,
E:20000,
area:10.0
}
},
{
text: 'MNIST',
title: 'Insert a MNIST dataset',
className: 'jsoneditor-type-object',
field: 'cnn',
value: {
name:"MNIST",
imageSize:"(28,28)",
numDatasets:65000,
numTraining:55000,
numTest:65000-55000,
parent: 'CNN',
classes: 'input',
outputNeigh:-1 //0:x+1,1:x-1,2:y+1,3:y-1,4:z+1,5:z-1,
}
},
{
text:"conv2d",
title: 'Insert a 3d convolutionsl layer',
className: 'jsoneditor-type-object',
field: 'cnn',
value: {
name:"conv2d_Conv2D1",
inputShape:"(batch,28,28,1)",
kernelSize:5,
filters:8,
strides:1,
activation: 'relu',
kernelInitializer: 'varianceScaling',
outputShape:"(batch,24,24,8)",
numParams:208,
Trainable:true,
parent: 'CNN',
classes: 'layers',
outputNeigh:-1 //0:x+1,1:x-1,2:y+1,3:y-1,4:z+1,5:z-1,
}
},
{
text:"testImage",
title: 'Insert a test Image',
className: 'jsoneditor-type-object',
field: 'cnn',
value: {
name:"testImage",
imageSize:"(1,28,28)",
parent: 'CNN',
classes: 'viz',
outputNeigh:-1 //0:x+1,1:x-1,2:y+1,3:y-1,4:z+1,5:z-1,
}
},
{
text:"max_pooling2d",
title: 'Insert a 2d max pooling layer',
className: 'jsoneditor-type-object',