def _generate_bagging_indices(random_state, bootstrap_features, bootstrap_samples, n_features, n_samples, max_features, max_samples):
 random_state = check_random_state(random_state)
 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)

def _generate_bagging_indices ( random_state , bootstrap_features , bootstrap_samples , n_features , n_samples , max_features , max_samples ) : random_state = check_random_state ( random_state ) 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 )
randomly draw feature and sample indices .