mirror of
https://github.com/rmontanana/mdlp.git
synced 2025-08-16 07:55:58 +00:00
Refactor testing
This commit is contained in:
13
CPPFImdlp.h
13
CPPFImdlp.h
@@ -3,10 +3,12 @@
|
||||
#include "typesFImdlp.h"
|
||||
#include "Metrics.h"
|
||||
#include <utility>
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
namespace mdlp {
|
||||
class CPPFImdlp {
|
||||
protected:
|
||||
int proposal;
|
||||
int algorithm;
|
||||
indices_t indices; // sorted indices to use with X and y
|
||||
samples_t X;
|
||||
labels_t y;
|
||||
@@ -14,17 +16,22 @@ namespace mdlp {
|
||||
cutPoints_t cutPoints;
|
||||
|
||||
static indices_t sortIndices(samples_t&);
|
||||
static indices_t sortIndices2(samples_t&, labels_t&);
|
||||
void computeCutPoints(size_t, size_t);
|
||||
bool mdlp(size_t, size_t, size_t);
|
||||
long int getCandidate(size_t, size_t);
|
||||
size_t getCandidate(size_t, size_t);
|
||||
size_t getCandidateWeka(size_t, size_t);
|
||||
void computeCutPointsAlternative(size_t, size_t);
|
||||
void computeCutPointsProposal();
|
||||
void computeCutPointsProposal(size_t, size_t);
|
||||
precision_t value_cut_point(size_t, size_t);
|
||||
tuple<precision_t, size_t> value_proposal_cut_point(size_t, size_t, size_t);
|
||||
|
||||
public:
|
||||
CPPFImdlp(int);
|
||||
~CPPFImdlp();
|
||||
CPPFImdlp& fit(samples_t&, labels_t&);
|
||||
samples_t getCutPoints();
|
||||
inline string version() { return "0.8.1"; };
|
||||
};
|
||||
}
|
||||
#endif
|
Reference in New Issue
Block a user