From a056cfe3fd29d95d8949e113cd16d34d9a2e64ab Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sun, 14 Feb 2021 11:51:28 +0100 Subject: [PATCH] Features --- Projects/TensorFlow/Schemas/AppSchema.json | 121 +++++++++++++++++- .../Schemas/Docs-Nodes/feature-formula.json | 13 ++ .../Schemas/Docs-Nodes/feature.json | 13 ++ .../Schemas/Docs-Nodes/input-features.json | 13 ++ 4 files changed, 159 insertions(+), 1 deletion(-) create mode 100644 Projects/TensorFlow/Schemas/Docs-Nodes/feature-formula.json create mode 100644 Projects/TensorFlow/Schemas/Docs-Nodes/feature.json create mode 100644 Projects/TensorFlow/Schemas/Docs-Nodes/input-features.json diff --git a/Projects/TensorFlow/Schemas/AppSchema.json b/Projects/TensorFlow/Schemas/AppSchema.json index 64b2c24e7..f2335536a 100644 --- a/Projects/TensorFlow/Schemas/AppSchema.json +++ b/Projects/TensorFlow/Schemas/AppSchema.json @@ -2189,10 +2189,18 @@ "action": "Add UI Object", "disableIfPropertyIsDefined": true, "propertyToCheckFor": "batchImputShape", - "label": "Add Input Shape", + "label": "Add Batch Input Shape", "relatedUiObject": "Batch Input Shape", "actionFunction": "payload.executeAction" }, + { + "action": "Add UI Object", + "disableIfPropertyIsDefined": true, + "propertyToCheckFor": "inputFeatures", + "label": "Add Input Features", + "relatedUiObject": "Input Features", + "actionFunction": "payload.executeAction" + }, { "action": "Delete UI Object", "askConfirmation": true, @@ -2225,6 +2233,11 @@ "name": "batchInputShape", "type": "node", "childType": "Batch Input Shape" + }, + { + "name": "inputFeatures", + "type": "node", + "childType": "Input Features" } ], "icon": "tensorflow" @@ -2264,6 +2277,112 @@ "childrenNodesProperties": [], "icon": "tensorflow" }, + { + "type": "Input Features", + "menuItems": [ + { + "action": "Add UI Object", + "label": "Add Feature", + "relatedUiObject": "Feature", + "actionFunction": "payload.executeAction" + }, + { + "action": "Delete UI Object", + "askConfirmation": true, + "confirmationLabel": "Confirm to Delete", + "label": "Delete", + "iconPathOn": "delete-entity", + "iconPathOff": "delete-entity", + "actionFunction": "payload.executeAction" + } + ], + "addLeftIcons": true, + "level": 3, + "attachingRules": { + "compatibleTypes": "->Input Layer->" + }, + "propertyNameAtParent": "inputFeatures", + "childrenNodesProperties": [ + { + "name": "features", + "type": "array", + "childType": "Feature" + } + ], + "icon": "tensorflow" + }, + { + "type": "Feature", + "menuItems": [ + { + "action": "Add UI Object", + "disableIfPropertyIsDefined": true, + "propertyToCheckFor": "inpfeatureFormulautFeatures", + "label": "Add Feature Formula", + "relatedUiObject": "Feature Formula", + "actionFunction": "payload.executeAction" + }, + { + "action": "Delete UI Object", + "askConfirmation": true, + "confirmationLabel": "Confirm to Delete", + "label": "Delete", + "iconPathOn": "delete-entity", + "iconPathOff": "delete-entity", + "actionFunction": "payload.executeAction" + } + ], + "addLeftIcons": true, + "level": 3, + "attachingRules": { + "compatibleTypes": "->Input Features->" + }, + "propertyNameAtParent": "features", + "childrenNodesProperties": [ + { + "name": "featureFormula", + "type": "node", + "childType": "Feature Formula", + "autoAdd": true + } + ], + "icon": "tensorflow" + }, + { + "type": "Feature Formula", + "menuItems": [ + { + "action": "Edit", + "actionFunction": "uiObject.formulaEditor.activate", + "label": "Edit", + "iconPathOn": "javascript-code", + "iconPathOff": "javascript-code" + }, + { + "action": "Delete UI Object", + "askConfirmation": true, + "confirmationLabel": "Confirm to Delete", + "label": "Delete", + "iconPathOn": "delete-entity", + "iconPathOff": "delete-entity", + "actionFunction": "payload.executeAction" + } + ], + "editors": { + "formula": true + }, + "initialValues": { + "code": "" + }, + "addLeftIcons": true, + "level": 3, + "attachingRules": { + "compatibleTypes": "->Feature->" + }, + "propertyNameAtParent": "featureFormula", + "childrenNodesProperties": [], + "icon": "tensorflow" + }, { "type": "Output Layer", "menuItems": [ diff --git a/Projects/TensorFlow/Schemas/Docs-Nodes/feature-formula.json b/Projects/TensorFlow/Schemas/Docs-Nodes/feature-formula.json new file mode 100644 index 000000000..efa9e6df0 --- /dev/null +++ b/Projects/TensorFlow/Schemas/Docs-Nodes/feature-formula.json @@ -0,0 +1,13 @@ +{ + "type": "Feature Formula", + "definition": { + "text": "A formula that allows users to specify an input value using any of the Data Structures provided by Superalgos to access indicators.", + "updated": 1613299711281 + }, + "paragraphs": [ + { + "style": "Text", + "text": "Left click and select the pencil button to enter edit mode." + } + ] +} \ No newline at end of file diff --git a/Projects/TensorFlow/Schemas/Docs-Nodes/feature.json b/Projects/TensorFlow/Schemas/Docs-Nodes/feature.json new file mode 100644 index 000000000..3d608645a --- /dev/null +++ b/Projects/TensorFlow/Schemas/Docs-Nodes/feature.json @@ -0,0 +1,13 @@ +{ + "type": "Feature", + "definition": { + "text": "An input variable used in making predictions.", + "updated": 1613299625520 + }, + "paragraphs": [ + { + "style": "Text", + "text": "Left click and select the pencil button to enter edit mode." + } + ] +} \ No newline at end of file diff --git a/Projects/TensorFlow/Schemas/Docs-Nodes/input-features.json b/Projects/TensorFlow/Schemas/Docs-Nodes/input-features.json new file mode 100644 index 000000000..bc81e718f --- /dev/null +++ b/Projects/TensorFlow/Schemas/Docs-Nodes/input-features.json @@ -0,0 +1,13 @@ +{ + "type": "Input Features", + "definition": { + "text": "Features are input variables used in making predictions.", + "updated": 1613297817985 + }, + "paragraphs": [ + { + "style": "Text", + "text": "Left click and select the pencil button to enter edit mode." + } + ] +} \ No newline at end of file