Skip to main content
Archived

Partition the data to equal pieces/amount of features

Related products:Transformers
  • June 30, 2021
  • 3 replies
  • 55 views

canerakin
Contributor
Forum|alt.badge.img+6

It would be great to have a data partition tool or an addition to sampler. This would be very useful especially for big data.

3 replies

jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • August 5, 2021

If you want to partition the data into groups of x number of features, you could use a counter followed by an expression floor (count/x).

If you wanted to partition the data into n groups then you can use a moduloCounter.

 

Segmenting the data based on the value of an attribute is a lot more involved.

 


mark2atsafe
Safer
Forum|alt.badge.img+59
  • Safer
  • August 5, 2021

Would the Grouper, GroupCounter, or GetGroupId transformers on the FME Hub help?


LizAtSafe
Safer
Forum|alt.badge.img+21
  • Safer
  • April 5, 2025
OpenArchived