GenSVM
|
Header file for gensvm_task.c. More...
#include "gensvm_base.h"
Go to the source code of this file.
Classes | |
struct | GenTask |
A structure for a single task in the queue. More... | |
Functions | |
struct GenTask * | gensvm_init_task (void) |
Initialize a GenTask structure. More... | |
struct GenTask * | gensvm_copy_task (struct GenTask *t) |
Deepcopy a GenTask struct. More... | |
void | gensvm_free_task (struct GenTask *t) |
Free the GenTask struct. More... | |
void | gensvm_task_to_model (struct GenTask *task, struct GenModel *model) |
Copy parameters from GenTask to GenModel. More... | |
Header file for gensvm_task.c.
The grid search for the optimal parameters is done through a queue. This file contains struct definitions for the tasks in the queue. Initialization and free functions are also included.
This file is part of GenSVM.
GenSVM is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
GenSVM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with GenSVM. If not, see http://www.gnu.org/licenses/.
Definition in file gensvm_task.h.
Deepcopy a GenTask struct.
Create a deep copy of a GenTask struct. Note that the datasets belonging to the tasks are not copied, only the pointers to the datasets.
[in] | t | input GenTask struct to copy |
Definition at line 88 of file gensvm_task.c.
void gensvm_free_task | ( | struct GenTask * | t | ) |
Free the GenTask struct.
Freeing the allocated memory of the GenTask means freeing only the task itself. The datasets are not freed, as these are shared between all tasks.
[in] | t | GenTask to be freed |
Definition at line 71 of file gensvm_task.c.
struct GenTask* gensvm_init_task | ( | void | ) |
Copy parameters from GenTask to GenModel.
A GenTask struct only contains the parameters of the GenModel to be estimated. This function is used to copy these parameters.
[in] | task | GenTask instance with parameters |
[in,out] | model | GenModel to which the parameters are copied |
Definition at line 122 of file gensvm_task.c.