get_target_batch
Function
Returns the batch records generated in the new dataset in automatic graph modification mode.
Prototype
1 | def get_target_batch(self, is_training: bool) |
Parameters
Parameter |
Type |
Mandatory/Optional |
Description |
|---|---|---|---|
is_training |
bool |
Mandatory |
Whether the training mode is enabled.
|
Return Value
- Success: batch records generated in the new dataset in automatic graph modification mode
- Failure: An exception is thrown.
Example
1 2 | from mx_rec.util.initialize import ConfigInitializer ConfigInitializer.get_instance().train_params_config.get_target_batch(False) |
Parent topic: Other APIs