Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix codes and improve doc #3401

Merged
merged 4 commits into from
Feb 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions doc/tutorials/approx_kfn.md
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@ extern arma::mat dataset;
QDAFN<> qdafn(dataset, 10, 5);

// Print the fifth point of the candidate set.
std::cout << ds.CandidateSet(2).col(4).t();
std::cout << qdafn.CandidateSet(2).col(4).t();
```

### Retraining on a new reference set
Expand Down Expand Up @@ -896,7 +896,7 @@ extern arma::mat querySet;

// Construct the object, performing the default dual-tree search with
// approximation level epsilon = 0.05.
KFN kfn(dataset, KFN::DUAL_TREE_MODE, 0.05);
KFN kfn(dataset, DUAL_TREE_MODE, 0.05);

// Search for approximate furthest neighbors.
arma::Mat<size_t> neighbors;
Expand Down
5 changes: 4 additions & 1 deletion doc/tutorials/fastmks.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,9 @@ manually specified. Choices that mlpack provides include:
- `HyperbolicTangentKernel`
- `LaplacianKernel`
- `PSpectrumStringKernel`
- `CauchyKernal`
- `ExampleKernal`
- `SphericalKernal`

The following examples use kernels from that list. Writing your own kernel is
detailed in the next section. Remember that when you are using the C++
Expand Down Expand Up @@ -293,7 +296,7 @@ f.Search(5, indices, products);
In this setting we have both a query and reference dataset. We search for 10
maximum kernels.

```
```c++
#include <mlpack.hpp>

using namespace mlpack::fastmks;
Expand Down