21mis1129 ch-4
21mis1129 ch-4
NAME: Kribha K
REGNO: 21MIS1129
JSON:
"id": "7da50d85c9141fc1",
"type": "tab",
"label": "Flow 5",
"disabled": false,
"info": "",
"env": []
},
"id": "738582be31663484",
"type": "inject",
"z": "7da50d85c9141fc1",
"name": "start",
"props": [
"p": "payload"
},
"p": "topic",
"vt": "str"
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 90,
"y": 140,
"wires": [
"1bde403b00b7dbdd"
]
},
"id": "bd96b55c50ac1b26",
"type": "debug",
"z": "7da50d85c9141fc1",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 560,
"y": 140,
"wires": []
},
"id": "1bde403b00b7dbdd",
"z": "7da50d85c9141fc1",
"name": "",
"path": "D:\\21MIS1021\\iris.csv",
"saveFolder": "D:\\21MIS1021\\dataset",
"saveName": "iris",
"input": "0,1,2,3",
"output": "2",
"trainingPartition": "",
"shuffle": "",
"seed": "",
"x": 320,
"y": 140,
"wires": [
"bd96b55c50ac1b26"
},
"id": "6c072581910cc828",
"z": "7da50d85c9141fc1",
"name": "",
"datasetFolder": "D:\\21MIS1021\\dataset",
"datasetName": "iris",
"partition": "train.csv",
"input": true,
"output": true,
"x": 310,
"y": 240,
"wires": [
"f9d35286898f193a"
],
"751b10c7a1286895"
},
{
"id": "c154b7798623b2aa",
"type": "inject",
"z": "7da50d85c9141fc1",
"name": "start",
"props": [
"p": "payload"
},
"p": "topic",
"vt": "str"
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 90,
"y": 240,
"wires": [
"6c072581910cc828"
},
"id": "fc3823ff2f86799d",
"savePath": "D:\\21MIS1021\\models",
"saveName": "dtc.b",
"maxDepth": "",
"criterion": "gini",
"splitter": "best",
"x": 550,
"y": 240,
"wires": [
"ad894f1a03ddb94a"
],
"751b10c7a1286895"
},
"id": "ad894f1a03ddb94a",
"type": "debug",
"z": "7da50d85c9141fc1",
"name": "print",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"x": 750,
"y": 200,
"wires": []
},
"id": "751b10c7a1286895",
"type": "debug",
"z": "7da50d85c9141fc1",
"name": "error",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"x": 750,
"y": 300,
"wires": []
},
"id": "f9d35286898f193a",
"type": "function",
"z": "7da50d85c9141fc1",
dataset.map(row => {\n let newRow = {};\n for (let key in row) {\n let value = row[key];\n\n
// Convert input features to numbers\n if (isNaN(value) && typeof value === \"string\") {\n
= parseFloat(value); // Keep numeric values\n }\n }\n\n // Ensure the output label remains
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 440,
"y": 320,
"wires": [
"fc3823ff2f86799d"
},
"id": "087c0319e70e5b98",
"z": "7da50d85c9141fc1",
"name": "",
"datasetFolder": "D:\\21MIS1021\\dataset",
"datasetName": "Iris",
"partition": "test.csv",
"input": false,
"output": true,
"x": 250,
"y": 420,
"wires": [
"26c97798120fd55d"
],
"79b16d9afc341fa3"
},
"id": "9368de00343dacd3",
"type": "inject",
"z": "7da50d85c9141fc1",
"name": "start",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 90,
"y": 420,
"wires": [
"087c0319e70e5b98",
"a9801cb4fcf43ac6"
},
"id": "26c97798120fd55d",
"type": "assessment",
"z": "7da50d85c9141fc1",
"name": "",
"score": "accuracy_score",
"x": 470,
"y": 420,
"wires": [
"f7be73b1f489b22f"
],
"79b16d9afc341fa3"
},
"id": "79b16d9afc341fa3",
"type": "debug",
"z": "7da50d85c9141fc1",
"name": "error",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 750,
"y": 440,
"wires": []
},
{
"id": "a9801cb4fcf43ac6",
"z": "7da50d85c9141fc1",
"name": "",
"datasetFolder": "D:\\21MIS1021\\dataset",
"datasetName": "Iris",
"partition": "test.csv",
"input": true,
"output": false,
"x": 150,
"y": 500,
"wires": [
"061c74d2e27ca0be"
],
"79b16d9afc341fa3"
},
"id": "061c74d2e27ca0be",
"type": "predictor",
"z": "7da50d85c9141fc1",
"modelPath": "D:\\21MIS1021\\models",
"modelName": "dtc.b",
"x": 540,
"y": 500,
"wires": [
[
"26c97798120fd55d"
],
"79b16d9afc341fa3"
},
"id": "f7be73b1f489b22f",
"type": "debug",
"z": "7da50d85c9141fc1",
"name": "print",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 650,
"y": 380,
"wires": []
},
"id": "1db82d6129240d7e",
"type": "comment",
"z": "7da50d85c9141fc1",
"info": "",
"x": 200,
"y": 340,
"wires": []