def _dropout_params(mode, ensemble_stats):
    'Returns parameters relevant for dropout.\n\n  Args:\n    mode: Train/Eval/Infer\n    ensemble_stats: A TreeEnsembleStatsOp result tuple.\n\n  Returns:\n    Whether to apply dropout and a dropout seed.\n  '
    if (mode == learn.ModeKeys.TRAIN):
        apply_dropout = True
        seed = ensemble_stats.attempted_trees
    else:
        seed = (- 1)
        apply_dropout = False
    return (apply_dropout, seed)
Returns parameters relevant for dropout.

Args:
  mode: Train/Eval/Infer
  ensemble_stats: A TreeEnsembleStatsOp result tuple.

Returns:
  Whether to apply dropout and a dropout seed.
def _dropout_params(mode, ensemble_stats):
    'Returns parameters relevant for dropout.\n\n  Args:\n    mode: Train/Eval/Infer\n    ensemble_stats: A TreeEnsembleStatsOp result tuple.\n\n  Returns:\n    Whether to apply dropout and a dropout seed.\n  '
    if (mode == learn.ModeKeys.TRAIN):
        apply_dropout = True
        seed = ensemble_stats.attempted_trees
    else:
        seed = (- 1)
        apply_dropout = False
    return (apply_dropout, seed)