# Machine Learning Node RED blocks

**URL:** https://discourse.nodered.org/t/machine-learning-node-red-blocks/12535
**Category:** General
**Created:** [24 June 2019 08:35 UTC](https://discourse.nodered.org/t/machine-learning-node-red-blocks/12535 "2019-06-24T08:35:12Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![smalhao](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@smalhao](https://discourse.nodered.org/u/smalhao)
#### Post date: [24 June 2019 08:35 UTC](https://discourse.nodered.org/t/machine-learning-node-red-blocks/12535/1 "2019-06-24T08:35:12Z")

</div>

Hello,  
I need to start working with the machine learning library, is there any document explaining it with examples?

---

<div class="post-metadata">

### Author: ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)
#### Post date: [24 June 2019 10:20 UTC](https://discourse.nodered.org/t/machine-learning-node-red-blocks/12535/2 "2019-06-24T10:20:16Z")

</div>

Is this a related NR question?

---

<div class="post-metadata">

### Author: ![smalhao](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@smalhao](https://discourse.nodered.org/u/smalhao)
#### Post date: [24 June 2019 10:44 UTC](https://discourse.nodered.org/t/machine-learning-node-red-blocks/12535/3 "2019-06-24T10:44:04Z")

</div>

yes, because I need to use the Node-RED machine learning library and I'm not sure how it works, I've been browsing the documentation page and I have a lot of doubts.

---

<div class="post-metadata">

### Author: ![ukmoose](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ukmoose/32/13_2.png) [@ukmoose](https://discourse.nodered.org/u/ukmoose)
#### Post date: [24 June 2019 10:57 UTC](https://discourse.nodered.org/t/machine-learning-node-red-blocks/12535/4 "2019-06-24T10:57:07Z")

</div>

If you have doubts it would be useful if you could explain what they are (it will be easier for someone to answer them then).

It would also be useful if you can specify which Node-RED machine learning library you are referring to.

---

<div class="post-metadata">

### Author: ![smalhao](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@smalhao](https://discourse.nodered.org/u/smalhao)
#### Post date: [25 June 2019 08:37 UTC](https://discourse.nodered.org/t/machine-learning-node-red-blocks/12535/5 "2019-06-25T08:37:48Z")

</div>

I'm using the node-red-contrib-machine-learning library.  
My doubts are in the following:

In the create dataset block I need to create a training file in csv file to apply later to make predictions?

If there is a document with small examples it would be important to.

I have a file in .csv format where i'm storaging the received temperature values of a sensor temperature, but i don't known how work with him in Node-RED, i'm not understand what part is training and what part is test in the .csv file or how separate the training values of the test values.

---

<div class="post-metadata">

### Author: ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)
#### Post date: [25 June 2019 10:30 UTC](https://discourse.nodered.org/t/machine-learning-node-red-blocks/12535/6 "2019-06-25T10:30:06Z")

</div>

I think this is such a fundamental question regarding the node user functions so I assume you will have best chance to get answer directly from author Gabriele Maurina here:

> **[GabrieleMaurina/node-red-contrib-machine-learning](https://github.com/GabrieleMaurina/node-red-contrib-machine-learning/issues)**
>
> Machine learning with scikit-learn and tensorflow for node-red. - GabrieleMaurina/node-red-contrib-machine-learning

---

<div class="post-metadata">

### Author: ![smalhao](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@smalhao](https://discourse.nodered.org/u/smalhao)
#### Post date: [11 July 2019 11:05 UTC](https://discourse.nodered.org/t/machine-learning-node-red-blocks/12535/7 "2019-07-11T11:05:40Z")

</div>

I am not being able to implement machine learning in Node-RED, if you could give me a small example to be able to understand how to program I thank you for the help.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [11 July 2019 12:45 UTC](https://discourse.nodered.org/t/machine-learning-node-red-blocks/12535/8 "2019-07-11T12:45:33Z")

</div>

I have not used it but there are example flows here: [https://github.com/GabrieleMaurina/node-red-contrib-machine-learning](https://github.com/GabrieleMaurina/node-red-contrib-machine-learning)

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [11 July 2019 20:20 UTC](https://discourse.nodered.org/t/machine-learning-node-red-blocks/12535/9 "2019-07-11T20:20:03Z")

</div>

Though I see that the author does not seem to have responded to any issues for over a year which is never a good sign.

---

<div class="post-metadata">

### Author: ![smalhao](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@smalhao](https://discourse.nodered.org/u/smalhao)
#### Post date: [12 July 2019 10:29 UTC](https://discourse.nodered.org/t/machine-learning-node-red-blocks/12535/10 "2019-07-12T10:29:39Z")

</div>

Colin, yes it's something I noticed that there are no answers or news about this library about a year ago. Can you tell if anyone has worked with these nodes and can share them?

---

<div class="post-metadata">

### Author: ![smalhao](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@smalhao](https://discourse.nodered.org/u/smalhao)
#### Post date: [23 July 2019 10:15 UTC](https://discourse.nodered.org/t/machine-learning-node-red-blocks/12535/11 "2019-07-23T10:15:42Z")

</div>

After a deeper search I found this link where you can find some information.

> **[stavalfi/node-red-machine-learning-project](https://github.com/stavalfi/node-red-machine-learning-project)**
>
> Contribute to stavalfi/node-red-machine-learning-project development by creating an account on GitHub.

I have a .csv extension file where I have the temperature register and the time of that register, however I would like to be given some tips about the machine learning to apply namely if with these two variables you should use the classification or the prediction.

---

<div class="post-metadata">

### Author: ![Phil](https://avatars.discourse-cdn.com/v4/letter/p/e95f7d/32.png) [@Phil](https://discourse.nodered.org/u/Phil)
#### Post date: [6 April 2020 15:57 UTC](https://discourse.nodered.org/t/machine-learning-node-red-blocks/12535/12 "2020-04-06T15:57:43Z")

</div>

Does anybody know working of these nodes?

---

<div class="post-metadata">

### Author: ![jwveld](https://avatars.discourse-cdn.com/v4/letter/j/7993a0/32.png) [@jwveld](https://discourse.nodered.org/u/jwveld)
#### Post date: [1 February 2022 07:43 UTC](https://discourse.nodered.org/t/machine-learning-node-red-blocks/12535/13 "2022-02-01T07:43:20Z")

</div>

You have to look at the BigML node-red implementation of machine learning.. gives you all the stuff you probably need.
