mirror of
https://github.com/mii443/independent_randomized_projections.git
synced 2025-08-22 16:05:27 +00:00
wip
This commit is contained in:
@ -26,7 +26,7 @@ impl Client {
|
|||||||
|
|
||||||
let result = (self.i, observation);
|
let result = (self.i, observation);
|
||||||
|
|
||||||
if self.i < NUM_OF_PROJECTIONS {
|
if self.i < NUM_OF_PROJECTIONS - 1 {
|
||||||
self.i += 1;
|
self.i += 1;
|
||||||
} else {
|
} else {
|
||||||
self.i = 0;
|
self.i = 0;
|
||||||
|
@ -23,7 +23,7 @@ fn main() {
|
|||||||
let mut rng = rand::rng();
|
let mut rng = rand::rng();
|
||||||
|
|
||||||
let mut count: HashMap<usize, usize> = HashMap::new();
|
let mut count: HashMap<usize, usize> = HashMap::new();
|
||||||
for i in 0..NUM_OF_PROJECTIONS {
|
for i in 0..NUM_OF_PROJECTIONS * 3 {
|
||||||
let current_grid = *grid_candidates.choose(&mut rng).unwrap();
|
let current_grid = *grid_candidates.choose(&mut rng).unwrap();
|
||||||
|
|
||||||
let (index, observation) = client.observe_quantized(current_grid);
|
let (index, observation) = client.observe_quantized(current_grid);
|
||||||
|
Reference in New Issue
Block a user