Public Member Functions | |
| RandomSelection (const double fraction=0.3) | |
| Constructor for the random selection strategy. More... | |
| double | Fraction () const |
| Get the dataset fraction. More... | |
| double & | Fraction () |
| Modify the dataset fraction. More... | |
template < typename DecomposableFunctionType > | |
| double | Select (DecomposableFunctionType &function, const size_t batchSize, const arma::mat &iterate) |
| Randomly select dataset points to calculate the objective function. More... | |
Definition at line 23 of file random_selection.hpp.
|
inline |
Constructor for the random selection strategy.
| fraction | The dataset fraction used for the selection (Default 0.3). |
Definition at line 31 of file random_selection.hpp.
|
inline |
Get the dataset fraction.
Definition at line 37 of file random_selection.hpp.
|
inline |
Modify the dataset fraction.
Definition at line 39 of file random_selection.hpp.
|
inline |
Randomly select dataset points to calculate the objective function.
| DecomposableFunctionType | Type of the function to be evaluated. |
| function | Function to optimize. |
| batchSize | Batch size to use for each step. |
| iterate | starting point. |
Definition at line 50 of file random_selection.hpp.
References mlpack::math::RandInt().