|
mlpack
|
#include <mlpack/core.hpp>#include <mlpack/methods/reinforcement_learning/replay/sumtree.hpp>#include "catch.hpp"#include "test_catch_tools.hpp"
Functions | |
| TEST_CASE ("SetElement", "[SumTreeTest]") | |
| Test that we set the element. | |
| TEST_CASE ("GetElement", "[SumTreeTest]") | |
| Test that we get the element. | |
| TEST_CASE ("FindPrefixSum", "[SumTreeTest]") | |
| Test that we find the highest index in the array such that Sum(arr[0] + arr[1] + arr[2] ... More... | |
| TEST_CASE ("BatchUpdate", "[SumTreeTest]") | |
| Test that we find the highest index in the array such that sum(arr[0] + arr[1] + arr[2] ... More... | |
Test for Sumtree implementation.
mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.
| TEST_CASE | ( | "FindPrefixSum" | , |
| "" | [SumTreeTest] | ||
| ) |
Test that we find the highest index in the array such that Sum(arr[0] + arr[1] + arr[2] ...
| TEST_CASE | ( | "BatchUpdate" | , |
| "" | [SumTreeTest] | ||
| ) |
Test that we find the highest index in the array such that sum(arr[0] + arr[1] + arr[2] ...
1.8.13