Skip to content

Commit

Permalink
Update dci crate version
Browse files Browse the repository at this point in the history
An important bugfix was published: reporting the itemset with 100% support.
  • Loading branch information
gahag committed Oct 20, 2020
1 parent 929e2e8 commit d5d99c7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ bitvec = { version = "0.19", features = ["serde"] }
bitmatrix = { version = "0.1", features = ["serde"] }

onehot = { version = "0.1", features = ["derive", "matrix"] }
dci = { version = "0.2", features = ["matrix"] }
dci = { version = "0.3", features = ["matrix"] }

[profile.release]
lto = true
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ fn load_dataset<R: io::BufRead>(reader: R) -> anyhow::Result<dci::Matrix<ItemSet
}


fn run_dci(dataset: &dci::Matrix<ItemSet>, min_sup: dci::Support) -> Vec<(ItemSet, dci::Support)> {
fn run_dci(dataset: &dci::Matrix<ItemSet>, min_sup: dci::Support) -> Box<[(ItemSet, dci::Support)]> {
let clock = time::Instant::now();

let mut result = dci::parallel::closed(dataset, min_sup);
Expand Down Expand Up @@ -242,7 +242,7 @@ fn main() -> anyhow::Result<()> {

let result = run_dci(&dataset, min_sup);

for (closed_itemset, support) in result {
for (closed_itemset, support) in result.into_vec() { // Boxed slice has no owned iterator.
println!(
"{} ({:.1}%): {}",
support,
Expand Down

0 comments on commit d5d99c7

Please sign in to comment.