How to get the number of examples after Filter?

6 views
Skip to first unread message

lixia...@gmail.com

unread,
Jan 5, 2017, 11:24:02 PM1/5/17
to fuel-users
I use the Filter transformer for a stream, such as

stream = Filter(stream, predicate=XXXX)

How to get the number of the filtered examples ?

Dmitriy Serdyuk

unread,
Jan 30, 2017, 2:59:59 PM1/30/17
to fuel-users, lixia...@gmail.com

Sorry for a late reply.

Unfortunately, there is no a simple way but to count it manually:

num = 0
for batch in stream.get_epoch_iterator():
    num += 1
print(num)
Reply all
Reply to author
Forward
0 new messages