From 414886bdeb2b8a2497eb85852bfc6a28ed166a12 Mon Sep 17 00:00:00 2001
From: Parikshit Ram
Date: Sat, 26 Jan 2008 08:46:58 +0000
Subject: [PATCH] s_min value increased to remove floating point underflow
---
fastlib/u/pram/mog_l2e/mog.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fastlib/u/pram/mog_l2e/mog.h b/fastlib/u/pram/mog_l2e/mog.h
index cdbb9d8ede..477d39054e 100644
--- a/fastlib/u/pram/mog_l2e/mog.h
+++ b/fastlib/u/pram/mog_l2e/mog.h
@@ -109,7 +109,7 @@ class MoGL2E {
void MakeModel(index_t num_mods, index_t dimension, double* theta) {
double *temp_mu;
Matrix lower_triangle_matrix, upper_triangle_matrix;
- double sum, s_min = 0.00001;
+ double sum, s_min = 0.01;
Init(num_mods, dimension);
temp_mu = (double*) malloc (dimension * sizeof(double)) ;
@@ -190,7 +190,7 @@ class MoGL2E {
void MakeModelWithGradients(index_t num_mods, index_t dimension, double* theta) {
double *temp_mu;
Matrix lower_triangle_matrix, upper_triangle_matrix;
- double sum, s_min = 0.00001;
+ double sum, s_min = 0.01;
Init(num_mods, dimension);
temp_mu = (double*) malloc (dimension * sizeof(double));