# KNIME Collection Columns as features for a machine learning model?

**URL:** <https://forum.knime.com/t/knime-collection-columns-as-features-for-a-machine-learning-model/45650>\
**Category:** KNIME Analytics Platform\
**Created:** [August 2, 2022, 12:48pm UTC](https://forum.knime.com/t/knime-collection-columns-as-features-for-a-machine-learning-model/45650 "2022-08-02T12:48:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [August 2, 2022, 12:48pm UTC](https://forum.knime.com/t/knime-collection-columns-as-features-for-a-machine-learning-model/45650/1 "2022-08-02T12:48:23Z")

</div>

I am wondering if there is a machine learning model in KNIME that can use one or more [Collection Columns](https://kni.me/n/eNgVOpmMFNJq3Jie) as input? The columns might have a **different set of features within them** so just splitting them back into columns will not be a good option - though I am open to suggestions for some automatic conversion that would make sense to a model 🙂

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/0/0/00e20dd9b9359910ace925cff6d679d241d7e3aa.png)

> **[Collection Columns as input for Machine Learning Model – mlauber71](https://hub.knime.com/mlauber71/spaces/Forum/latest/2022/kn_forum_45650_ml_model_colection_column~9JQgMem4oAlwQrmY)**
>
> Collection Columns as input for Machine Learning Model

---

<div class="post-metadata">

**Author:** ![Daniel\_Weikert](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/d/e47c2d/32.png) [@Daniel\_Weikert](https://forum.knime.com/u/Daniel_Weikert)\
**Post date:** [August 2, 2022, 4:26pm UTC](https://forum.knime.com/t/knime-collection-columns-as-features-for-a-machine-learning-model/45650/2 "2022-08-02T16:26:36Z")

</div>

The model should still cosider the right datatype right , so you can’t convert them to string. Is the idea something similar to the Vectorassembler in pyspark? Any particular reason you want collections as input?  
br

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [August 2, 2022, 4:42pm UTC](https://forum.knime.com/t/knime-collection-columns-as-features-for-a-machine-learning-model/45650/3 "2022-08-02T16:42:32Z")

</div>

@Daniel_Weikert the scenario could be a series of events occurring (or not occurring) in a specific time frame (which is the column). Other option would be to do something with time series analysis. But I wanted to explore this specific setting. There are models to use Collection columns to find rules but they would only accept one such column.

But thank you for the hint with the Vectorassembler. I might explore that further which might also have the benefit of running on a big data cluster.

---

<div class="post-metadata">

**Author:** ![Daniel\_Weikert](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/d/e47c2d/32.png) [@Daniel\_Weikert](https://forum.knime.com/u/Daniel_Weikert)\
**Post date:** [August 2, 2022, 4:52pm UTC](https://forum.knime.com/t/knime-collection-columns-as-features-for-a-machine-learning-model/45650/4 "2022-08-02T16:52:02Z")

</div>

Would be interested in your progress in this regard. Sound interesting  
br

---

<div class="post-metadata">

**Author:** ![Kathrin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/kathrin/32/16014_2.png) [@Kathrin](https://forum.knime.com/u/Kathrin)\
**Post date:** [August 15, 2022, 11:47am UTC](https://forum.knime.com/t/knime-collection-columns-as-features-for-a-machine-learning-model/45650/5 "2022-08-15T11:47:40Z")

</div>

Hi @mlauber71,

I’m not aware of a supervised learning algorithm / learner node that can handle collection cells as inputs. I’m trying to think of a use case where this would be helpful and how I would expect the algorithm to handle this situation.

Can you please tell me a little bit more about the use case you have in mind?  
Is it a supervised classification problem you are trying to solve?  
Do all cells in a collection column have the same amount of features, e.g Collection-1 has always 3 values, collection-2 has always 3 values and collection-3 has always 5 values?

Cheers  
Kathrin

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [November 13, 2022, 11:48am UTC](https://forum.knime.com/t/knime-collection-columns-as-features-for-a-machine-learning-model/45650/6 "2022-11-13T11:48:02Z")

</div>

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