Skip to content

Conversation

@shrit
Copy link
Member

@shrit shrit commented Dec 3, 2023

No description provided.

Copy link
Member

@rcurtin rcurtin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes here look good to me too, but I do think it's worth adding a very simple test for RangeSearch and DBSCAN just to ensure they can work with arma::fmat and float as ElemType. You could even adapt one of the simple existing tests from a one-type TEST_CASE() to a multi-type TEMPLATE_TEST_CASE().

@shrit
Copy link
Member Author

shrit commented Dec 14, 2023

@rcurtin Tests have been added, this one should be good to go and for review 👍

Signed-off-by: Omar Shrit <[email protected]>
Copy link
Member

@rcurtin rcurtin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the test---the changes are looking good. Just some small comments. I'm excited about properly supporting alternate matrix types for DBSCAN... this will make the documentation task much easier too. 😄

Signed-off-by: Omar Shrit <[email protected]>
Copy link
Member

@rcurtin rcurtin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me---just a couple small style comments. Hopefully we can fix FloatKDTree soon 😄

//! Easy access to the MatType.
typedef typename RangeSearchType::Mat MatType;
//! Easy access to Element Type of the matrix.
typedef typename RangeSearchType::Mat::elem_type ElemType;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll make sure to write in the documentation that specifying MatType inside of RangeSearchType is the way to do it for DBSCAN... maybe it's a little awkward, but until we think of something better, it's better than having to specify MatType in two places. 👍

Copy link

@mlpack-bot mlpack-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second approval provided automatically after 24 hours. 👍

@shrit shrit merged commit 5e6d6f2 into mlpack:master Dec 18, 2023
This was referenced May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants