Refactor folder structure of the project

This commit is contained in:
2023-07-01 02:33:26 +02:00
parent 52cb85b41b
commit 79e7912ab3
23 changed files with 13 additions and 108 deletions

22
sample/Metrics.h Normal file
View File

@@ -0,0 +1,22 @@
#ifndef CCMETRICS_H
#define CCMETRICS_H
#include "typesFImdlp.h"
namespace mdlp {
class Metrics {
protected:
labels_t& y;
indices_t& indices;
int numClasses;
cacheEnt_t entropyCache = cacheEnt_t();
cacheIg_t igCache = cacheIg_t();
public:
Metrics(labels_t&, indices_t&);
void setData(const labels_t&, const indices_t&);
int computeNumClasses(size_t, size_t);
precision_t entropy(size_t, size_t);
precision_t informationGain(size_t, size_t, size_t);
};
}
#endif