如何将所有转换包括在knime中的PMML中

发布于 2025-02-07 06:54:15 字数 1050 浏览 3 评论 0原文

我正处于使用Knime的初始阶段,目前我正在测试PMML从Knime到其他语言的导出。

通过使用管道作为其主要组件,我被用来从Python导出PMML,其中包括所有转换,并且在导出转换的所有值时都包含在PMML文件中。

问题

现在,在刀中,我尝试进行分类工作流程,但其中包括以下转换:

  • 一到多个(一个热编码)
  • 列掉落(丢弃所有分类列)
  • 归一化(在删除的列上)

,然后最后,模型培训。


但是,当我尝试将工作流程导出为PMML时,我会看到 我只能将转换“归一化”的最后阶段连接到PMML Appender中,这使文件仅具有其中的最后一个归一化。

因此,在其他平台(除KNIME以外的编程语言)中运行时,会出现错误,即在“可用列”中找不到某些“ X”列。

这是因为它尚未将一对一地应用于步骤,因为它不知道它实际上存在。这是我的工作流程的图像:

​我在网上找到了一个类似的工作流程,其中作者 能够将所有转换连接在一起但是在我的版本中,我看不到将转换连接在一起的选项(如图像中所示)

这是互联网工作流的图像:


可以看到Internet上的作者同时应用的作者:一对一归一化,但它们在2个蓝色连接时,我不明白。那么,您能帮我吗?

谢谢你☺
Aayush Shah

I am at the initial stage at using KNIME, and currently I am testing the PMML export from KNIME to other languages.

I am used to export PMML from python by using the pipeline as its main component which includes all transformations, and while exporting all values of the transformations are included in the PMML file.

Problem

Now, in KNIME I tried making the classification workflow but which includes the following transformations:

  • One to Many (One hot encoding)
  • Column dropping (Dropping all categorical columns)
  • Normalization (On the dropped columns)

And then finally the model training.


But when I try to export the workflow as PMML, I see I could only connect the last stage of transformation "normalization" into the PMML appender which results the file to only have the last Normalization in it.

So while running in other platform (programming language other than KNIME) it throws error that some "X" column is not found in the the available columns.

Which is because it hasn't applied the One to many step as it doesn't know that it actually exists. Here is the image of my workflow:

enter image description here

There, the blue region is where all transformations exist. I found a similar workflow online where the author is able to connect all transformations together which might be the solution, but in my version I can't see the option to connect transformations together (as you can see in the image).

Here is the image of workflow from the internet:
enter image description here


My ask

As you can see the author from the internet has applied both: One to Many and Normalization but they are having 2 blue connections while I don't get that. So, will you please help me through this?

Thanking you ☺
Aayush Shah

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一人独醉 2025-02-14 06:54:15

我不确定我知道这个工作流程应该做什么,但似乎问题与以下事实有关:从互联网传来的工作流程中的节点已被弃用。

noreferrer”您正在寻找的输入已被节点“ normalizer apply(pmml)”

替换=“ nofollow noreferrer”>“ normanizer”应用(PMML)

您应该能够适应工作流以使用此新节点。

I'm not sure I understand what this workflow should do but it seems that the problem is simply related to the fact that the nodes on the workflow coming from the internet are deprecated.

Deprecated Normalizer (PMML)

I think the input you are looking for has been replaced by the node "Normalizer Apply (PMML)"

Normalizer Apply (PMML)

You should be able to adapt your workflow to use this new node.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文