add --reverse-order, and reorder exp6 paramset M to reflect the weight properly

This commit is contained in:
Youngjoon Lee 2024-08-25 01:55:58 +09:00
parent 960a184ee6
commit 4b6a0d6164
No known key found for this signature in database
GPG Key ID: 167546E2D1712F8C
2 changed files with 8 additions and 1 deletions

View File

@ -31,6 +31,8 @@ struct Args {
outdir: String,
#[arg(short, long)]
num_threads: usize,
#[arg(short, long, default_value_t = false)]
reverse_order: bool,
#[arg(short, long)]
from_paramset: Option<u16>,
#[arg(short, long)]
@ -48,6 +50,7 @@ fn main() {
queue_type,
outdir,
num_threads,
reverse_order,
from_paramset,
to_paramset,
} = args;
@ -93,6 +96,10 @@ fn main() {
}
}
if reverse_order {
iterations.reverse();
}
let pool = rayon::ThreadPoolBuilder::new()
.num_threads(num_threads)
.build()

View File

@ -110,7 +110,7 @@ impl ParamSet {
ExperimentId::Experiment2 | ExperimentId::Experiment4 => vec![0.001, 0.01, 0.1],
ExperimentId::Experiment6 => {
let g: f32 = num_mixes as f32;
vec![2.0 / g, 1.0 / g, 1.0 / (2.0 * g)]
vec![1.0 / (2.0 * g), 1.0 / g, 2.0 / g]
}
};