|
| | 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.
Constructor for the random selection strategy.
- Parameters
-
| fraction | The dataset fraction used for the selection (Default 0.3). |
Definition at line 31 of file random_selection.hpp.
| double Fraction |
( |
| ) |
const |
|
inline |
| double Select |
( |
DecomposableFunctionType & |
function, |
|
|
const size_t |
batchSize, |
|
|
const arma::mat & |
iterate |
|
) |
| |
|
inline |
Randomly select dataset points to calculate the objective function.
- Template Parameters
-
| DecomposableFunctionType | Type of the function to be evaluated. |
- Parameters
-
| 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().
The documentation for this class was generated from the following file: