# Problem with Node-Red Machine Learning

**URL:** <https://discourse.nodered.org/t/problem-with-node-red-machine-learning/96406>\
**Category:** General\
**Created:** [4 April 2025 10:39 UTC](https://discourse.nodered.org/t/problem-with-node-red-machine-learning/96406 "2025-04-04T10:39:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrKanister](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@MrKanister](https://discourse.nodered.org/u/MrKanister)\
**Post date:** [4 April 2025 10:39 UTC](https://discourse.nodered.org/t/problem-with-node-red-machine-learning/96406/1 "2025-04-04T10:39:21Z")

</div>

Hello together,

I want to gain some experience concerning machine learning. Therefore I tried the NR example:  
node-red-contrib-machine-learning-v2, but I cant get the first part of the flow working. I receive always the errormessage: "TypeError: The "options" argument must be of type object. Received an instance of Array"  
I tried to solve it with Chatgbt, but without success.  
Here is the flow:

```auto
[
    {
        "id": "303046aefb5b7d4b",
        "type": "create dataset",
        "z": "971acec15c383851",
        "name": "Create dataset",
        "path": "C:\\Users\\henz\\Desktop\\nodered_project\\test\\iris.data",
        "saveFolder": "C:\\Users\\henz\\Desktop\\nodered_project\\test\\datasets",
        "saveName": "iris",
        "input": "[0,1,2,3]",
        "output": "4",
        "trainingPartition": "80",
        "shuffle": true,
        "seed": "42",
        "x": 720,
        "y": 120,
        "wires": [
            [
                "35158521a6ddcce8"
            ]
        ]
    },
    {
        "id": "add958568b34bc5d",
        "type": "inject",
        "z": "971acec15c383851",
        "name": "start",
        "props": [
            {
                "p": "topic",
                "vt": "str"
            },
            {
                "p": "payload"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 230,
        "y": 120,
        "wires": [
            [
                "303046aefb5b7d4b"
            ]
        ]
    },
    {
        "id": "35158521a6ddcce8",
        "type": "debug",
        "z": "971acec15c383851",
        "name": "print",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "payload",
        "targetType": "msg",
        "statusVal": "",
        "statusType": "auto",
        "x": 950,
        "y": 80,
        "wires": []
    }
]

```

path to test folder: C:\Users\henz\Desktop\nodered\_project\test  
path to dataset folder C:\Users\henz\Desktop\nodered\_project\test\datasets

Maybe some of you guys can help me.  
Thank you in advance!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [3 July 2025 10:39 UTC](https://discourse.nodered.org/t/problem-with-node-red-machine-learning/96406/2 "2025-07-03T10:39:57Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
