mirror of
https://github.com/rmontanana/mdlp.git
synced 2025-08-21 02:15:57 +00:00
Compare commits
2 Commits
e36d9af8f9
...
2db60e007d
Author | SHA1 | Date | |
---|---|---|---|
2db60e007d
|
|||
1cf245fa49
|
@@ -29,7 +29,7 @@ namespace mdlp {
|
|||||||
void fit_t(const torch::Tensor& X_, const torch::Tensor& y_);
|
void fit_t(const torch::Tensor& X_, const torch::Tensor& y_);
|
||||||
torch::Tensor transform_t(const torch::Tensor& X_);
|
torch::Tensor transform_t(const torch::Tensor& X_);
|
||||||
torch::Tensor fit_transform_t(const torch::Tensor& X_, const torch::Tensor& y_);
|
torch::Tensor fit_transform_t(const torch::Tensor& X_, const torch::Tensor& y_);
|
||||||
static inline std::string version() { return "1.2.3"; };
|
static inline std::string version() { return "2.0.0"; };
|
||||||
protected:
|
protected:
|
||||||
labels_t discretizedData = labels_t();
|
labels_t discretizedData = labels_t();
|
||||||
cutPoints_t cutPoints; // At least two cutpoints must be provided, the first and the last will be ignored in transform
|
cutPoints_t cutPoints; // At least two cutpoints must be provided, the first and the last will be ignored in transform
|
||||||
|
@@ -33,7 +33,7 @@ namespace mdlp {
|
|||||||
auto version = disc->version();
|
auto version = disc->version();
|
||||||
delete disc;
|
delete disc;
|
||||||
std::cout << "Version computed: " << version;
|
std::cout << "Version computed: " << version;
|
||||||
EXPECT_EQ("1.2.3", version);
|
EXPECT_EQ("2.0.0", version);
|
||||||
}
|
}
|
||||||
TEST(Discretizer, BinIrisUniform)
|
TEST(Discretizer, BinIrisUniform)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user