From 244b5d30b3f794a030be5d943fa9f672e50c38ad Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Thu, 26 Jun 2014 17:53:51 +0200 Subject: remove fixed random seed from grid search --- src/msvmmaj_train_dataset.c | 4 ---- src/trainMSVMMajdataset.c | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'src') diff --git a/src/msvmmaj_train_dataset.c b/src/msvmmaj_train_dataset.c index 29b410b..7db1379 100644 --- a/src/msvmmaj_train_dataset.c +++ b/src/msvmmaj_train_dataset.c @@ -425,10 +425,6 @@ void consistency_repeats(struct Queue *q, long repeats, TrainType traintype) * seed_model parameter. If seed_model is NULL, random starting values are * used. * - * @todo - * There must be some inefficiencies here because the fold model is allocated - * at every fold. This would be detrimental with large datasets. - * * @param[in] model MajModel with the configuration to train * @param[in] seed_model MajModel with a seed for MajModel::V * @param[in] data MajData with the dataset diff --git a/src/trainMSVMMajdataset.c b/src/trainMSVMMajdataset.c index 35f4611..a6f3e87 100644 --- a/src/trainMSVMMajdataset.c +++ b/src/trainMSVMMajdataset.c @@ -98,8 +98,7 @@ int main(int argc, char **argv) struct Queue *q = Malloc(struct Queue, 1); make_queue(training, q, train_data, test_data); - // srand(time(NULL)); - srand(123456); + srand(time(NULL)); note("Starting training\n"); if (training->traintype == TT) -- cgit v1.2.3