Flim(unsigned int N, double beta1, double beta2) : lambda_(N, N), ones_(N), kappa_(N), estimates_(N, N), q_lambda_(N), singleton_expectation_(N), beta1_(beta1), beta2_(beta2), empirical_pair_(N, N), empirical_singleton_(N) { gsl_matrix_float_set_zero(lambda_); gsl_vector_float_set_all(ones_, 1.0); }
ContrastiveDivergence::ContrastiveDivergence(float momentum, int k, int batchsize, int e) : momentum(momentum), k(k), batchsize(batchsize), epochs(e) { monitor = NULL; identity = gsl_vector_float_alloc(batchsize); gsl_vector_float_set_all(identity, 1); }