JmPotato / fp-growth-rs

An implementation of the FP-Growth algorithm in pure Rust.
https://crates.io/crates/fp-growth
MIT License
16 stars 1 forks source link

Get confidence numbers #1

Open flip111 opened 2 years ago

flip111 commented 2 years ago

Is it possible somehow with this library to get the confidence numbers? For example this python library allows you to set the minimal confidence and also gives back how high the confidence was https://github.com/chonyy/fpgrowth_py

EDIT: pyspark also has this feature https://spark.apache.org/docs/latest/ml-frequent-pattern-mining.html https://spark.apache.org/docs/latest/api/python/reference/api/pyspark.ml.fpm.FPGrowth.html

JmPotato commented 2 years ago

@flip111 Hi, thx for your request, and it's an easy feature to add. I will work on it ASAP.

PS: please let me know if you want to open a PR to implement it by yourself also 😄.