Fix warnings.

This commit is contained in:
2020-04-17 20:39:01 +02:00
parent 81ed582e59
commit 5aaada0c05
11 changed files with 76 additions and 112 deletions

View File

@@ -3,34 +3,41 @@ use crate::storage::Storage;
use super::Observation;
pub struct GaussianObservation {
m: usize,
items: Vec<usize>,
coeffs: Vec<f64>,
indices: Vec<usize>,
ns_cav: Vec<f64>,
xs_cav: Vec<f64>,
t: f64,
logpart: f64,
exp_ll: usize,
margin: f64,
}
/*
m: usize,
items: Vec<usize>,
coeffs: Vec<f64>,
indices: Vec<usize>,
ns_cav: Vec<f64>,
xs_cav: Vec<f64>,
t: f64,
logpart: f64,
exp_ll: usize,
margin: f64,
*/}
impl GaussianObservation {
pub fn new(storage: &mut Storage, elems: &[(usize, f64)], diff: f64, t: f64, var: f64) -> Self {
pub fn new(
_storage: &mut Storage,
_elems: &[(usize, f64)],
_diff: f64,
_t: f64,
_var: f64,
) -> Self {
unimplemented!();
}
}
impl Observation for GaussianObservation {
fn match_moments(&self, mean_cav: f64, cov_cav: f64) -> (f64, f64, f64) {
fn match_moments(&self, _mean_cav: f64, _cov_cav: f64) -> (f64, f64, f64) {
unimplemented!();
}
fn ep_update(&mut self, lr: f64, storage: &mut Storage) -> f64 {
fn ep_update(&mut self, _lr: f64, _storage: &mut Storage) -> f64 {
unimplemented!();
}
fn kl_update(&mut self, lr: f64, storage: &mut Storage) -> f64 {
fn kl_update(&mut self, _lr: f64, _storage: &mut Storage) -> f64 {
unimplemented!();
}
}