xuefeng-xu opened a new issue, #405:
URL: https://github.com/apache/datasketches-cpp/issues/405

   For example, I have a list contains int, float, and string types of data.
   I can get frequent items, after update the sketch. But how to serialize it?
   
   ```python
   from datasketches import (
       frequent_items_sketch,
       PyFloatsSerDe,
       PyIntsSerDe,
       PyStringsSerDe,
       PyLongsSerDe,
       PyDoublesSerDe,
   )
   
   fi = frequent_items_sketch(3)
   X = [1, 3.4, 'a']
   W = [20, 30, 25]
   for x, w in zip(X, W):
       fi.update(x, w)
   print(fi.get_frequent_items(frequent_items_error_type.NO_FALSE_POSITIVES))
   # [(3.4, 30, 30, 30), ('a', 25, 25, 25), (1, 20, 20, 20)]
   
   fi_bytes = fi.serialize()
   # how to serialize the sketch?
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to