mirror of
https://github.com/rmontanana/mdlp.git
synced 2025-08-16 07:55:58 +00:00
refactor computing max_cuts
This commit is contained in:
10
CPPFImdlp.h
10
CPPFImdlp.h
@@ -21,10 +21,12 @@ namespace mdlp {
|
||||
cutPoints_t cutPoints;
|
||||
size_t num_cut_points = numeric_limits<size_t>::max();
|
||||
|
||||
static indices_t sortIndices(samples_t&, labels_t&);
|
||||
static indices_t sortIndices(samples_t &, labels_t &);
|
||||
|
||||
void computeCutPoints(size_t, size_t, int);
|
||||
|
||||
void resizeCutPoints();
|
||||
|
||||
bool mdlp(size_t, size_t, size_t);
|
||||
|
||||
size_t getCandidate(size_t, size_t);
|
||||
@@ -40,11 +42,11 @@ namespace mdlp {
|
||||
|
||||
~CPPFImdlp();
|
||||
|
||||
void fit(samples_t&, labels_t&);
|
||||
void fit(samples_t &, labels_t &);
|
||||
|
||||
cutPoints_t getCutPoints();
|
||||
inline cutPoints_t getCutPoints() const { return cutPoints; };
|
||||
|
||||
int get_depth() const;
|
||||
inline int get_depth() const { return depth; };
|
||||
|
||||
static inline string version() { return "1.1.1"; };
|
||||
};
|
||||
|
Reference in New Issue
Block a user