49 while (!algRun->
done())
70 _commission_samples( 0 ),
83 _commission_samples( 0 ),
113 _alg->setSampler(train_sampler);
114 _alg->setParameters(nparam, param);
137 return _alg->iterate();
142 {
return _alg->done(); }
146 {
return _alg->getProgress(); }
177 value =
_alg->getValue(occ->environment());
182 value =
_alg->getValue(occ->environment());
217 nomitted = !
_alg->getValue((*it)->environment());
221 _omission = (double) nomitted / (
double) presences->numOccurrences();
245 {
return _alg->getValue(x); }
virtual AlgorithmImpl * getBSAlgorithm()=0
int _commission_samples
Commission error, approximated by area predicted present.
SamplerPtr _train_sampler
Number of points used to calculate commission.
#define THREAD_PROC_RETURN_TYPE
double Scalar
Type of map values.
double _omission
Indicates whether the thread is running.
float getProgress() const
static Log * instance()
Returns the instance pointer, creating the object on the first call.
AlgorithmPtr _alg
Number of points used to calculate commission.
int calculateCommission()
bool _running
Identified for this particular garp run.
THREAD_PROC_RETURN_TYPE AlgorithmRunThreadProc(void *threadData)
double getOmission() const
double getError(int type) const
#define THREAD_PROC_RETURN_STATEMENT
double _commission
Omission error for this run.
#define THREAD_START(threadProc, threadData)
double getCommission() const
Scalar getValue(const Sample &x) const
std::vector< OccurrencePtr >::const_iterator const_iterator
void debug(const char *format,...)
'Debug' level.
int _id
Algorithm used in this run.
int initialize(int id, int comm_samples, const SamplerPtr &train_sampler, const SamplerPtr &test_sampler)