parameters: (random_state, bootstrap_features,
                                bootstrap_samples, n_features, n_samples,
                                max_features, max_samples)
return_statement: return feature_indices, sample_indices
docstring: Randomly draw feature and sample indices.
docstring_summary: Randomly draw feature and sample indices.
docstring_tokens: Randomly draw feature and sample indices .
function: def _generate_bagging_indices(random_state, bootstrap_features,
                                bootstrap_samples, n_features, n_samples,
                                max_features, max_samples):
      """Randomly draw feature and sample indices."""
      # Get valid random state
      random_state = check_random_state(random_state)
  
      # Draw indices
      feature_indices = _generate_indices(random_state, bootstrap_features,
                                          n_features, max_features)
      sample_indices = _generate_indices(random_state, bootstrap_samples,
                                         n_samples, max_samples)
  
      return feature_indices, sample_indices
function_tokens: def _generate_bagging_indices ( random_state , bootstrap_features , bootstrap_samples , n_features , n_samples , max_features , max_samples ) : # Get valid random state random_state = check_random_state ( random_state ) # Draw indices feature_indices = _generate_indices ( random_state , bootstrap_features , n_features , max_features ) sample_indices = _generate_indices ( random_state , bootstrap_samples , n_samples , max_samples ) return feature_indices , sample_indices