Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jirigav committed Oct 4, 2023
1 parent 9904972 commit 569cf12
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pub(crate) struct Args {
#[arg(short, long, default_value_t = 100)]
pub(crate) min_difference: usize,

/// Number of patterns combined into a multipattern.
/// Number of patterns tested in combinations for multipattern.
#[arg(long, default_value_t = 50)]
pub(crate) top_n: usize,

Expand Down
6 changes: 5 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ fn results(
if hist {
hist_result(final_patterns, training_data, testing_data, start)
} else {
let mut best_mp = best_multi_pattern(training_data, &final_patterns.into_iter().take(top_n).collect_vec(), patterns_combined);
let mut best_mp = best_multi_pattern(
training_data,
&final_patterns.into_iter().take(top_n).collect_vec(),
patterns_combined,
);

println!("trained in {:.2?}", start.elapsed());

Expand Down

0 comments on commit 569cf12

Please sign in to comment.