node-red-contrib-machine-learning 错误
Error in node-red-contrib-machine-learning
我正在尝试使用此库在 node-red
中实现最基本的机器学习流程:https://flows.nodered.org/node/node-red-contrib-machine-learning。
This flow loads a CSV file, shuffles it and creates a training and a test partition.
我安装了:
- Python 3.6.4 或更高版本可通过命令 'python' 访问(在 Linux 'python3')
- Numpy
- Pandas
- SciKit-Learn
- Tensorflow(可选:可跳过)
我从 Anaconda
打开了 node-red
。
问题:
单击 "Start" 节点时,出现以下错误:
Traceback (most recent call last):
File "C:\Users\stava\node_modules\node-red-contrib-machine-learning\nodes\dataset\create-dataset/create-dataset.py",
line 12, in <module> df = pandas.read_csv(config['path'], header=None)
File "C:\Users\stava\AppData\Local\conda\conda\envs\py35\lib\site-packages\pandas\io\parsers.py",
line 678, in parser_f return _read(filepath_or_buffer, kwds)
File "C:\Users\stava\AppData\Local\conda\conda\envs\py35\lib\site-packages\pandas\io\parsers.py",
line 440, in _read parser = TextFileReader(filepath_or_buffer, **kwds)
File "C:\Users\stava\AppData\Local\conda\conda\envs\py35\lib\site-packages\pandas\io\parsers.py",
line 787, in __init__ self._make_engine(self.engine)
File "C:\Users\stava\AppData\Local\conda\conda\envs\py35\lib\site-packages\pandas\io\parsers.py",
line 1014, in _make_engine self._engine = CParserWrapper(self.f, **self.options)
File "C:\Users\stava\AppData\Local\conda\conda\envs\py35\lib\site-packages\p...
目前,他们的存储库中有一个已报告但未解决的错误。
错误 - 红色节点找不到您在节点中提供路径的任何文件。
解决方案(适用于 Linux 发行版和 MacOS): 提供文件的完整路径(就像我们在这个项目中所做的那样)。 我们无法在 Windows 中运行它。
decision tree classifier predictor
节点接受数据数组中的数组和returns预测。看看我们如何从 message to array for prediction
节点向他发送数据。每个子数组对应于应该发送以获得预测的数据:
return {
payload: [[...msg.payload.user_code,msg.payload.datetime]]
};
More info and an example of a full working project can be found here.
我正在尝试使用此库在 node-red
中实现最基本的机器学习流程:https://flows.nodered.org/node/node-red-contrib-machine-learning。
This flow loads a CSV file, shuffles it and creates a training and a test partition.
我安装了:
- Python 3.6.4 或更高版本可通过命令 'python' 访问(在 Linux 'python3')
- Numpy
- Pandas
- SciKit-Learn
- Tensorflow(可选:可跳过)
我从 Anaconda
打开了 node-red
。
问题:
单击 "Start" 节点时,出现以下错误:
Traceback (most recent call last):
File "C:\Users\stava\node_modules\node-red-contrib-machine-learning\nodes\dataset\create-dataset/create-dataset.py",
line 12, in <module> df = pandas.read_csv(config['path'], header=None)
File "C:\Users\stava\AppData\Local\conda\conda\envs\py35\lib\site-packages\pandas\io\parsers.py",
line 678, in parser_f return _read(filepath_or_buffer, kwds)
File "C:\Users\stava\AppData\Local\conda\conda\envs\py35\lib\site-packages\pandas\io\parsers.py",
line 440, in _read parser = TextFileReader(filepath_or_buffer, **kwds)
File "C:\Users\stava\AppData\Local\conda\conda\envs\py35\lib\site-packages\pandas\io\parsers.py",
line 787, in __init__ self._make_engine(self.engine)
File "C:\Users\stava\AppData\Local\conda\conda\envs\py35\lib\site-packages\pandas\io\parsers.py",
line 1014, in _make_engine self._engine = CParserWrapper(self.f, **self.options)
File "C:\Users\stava\AppData\Local\conda\conda\envs\py35\lib\site-packages\p...
目前,他们的存储库中有一个已报告但未解决的错误。 错误 - 红色节点找不到您在节点中提供路径的任何文件。 解决方案(适用于 Linux 发行版和 MacOS): 提供文件的完整路径(就像我们在这个项目中所做的那样)。 我们无法在 Windows 中运行它。
decision tree classifier predictor
节点接受数据数组中的数组和returns预测。看看我们如何从message to array for prediction
节点向他发送数据。每个子数组对应于应该发送以获得预测的数据:return { payload: [[...msg.payload.user_code,msg.payload.datetime]] };
More info and an example of a full working project can be found here.