Ensure that we have an example in the docstring of each public function or class

We should make sure that we have a small example for all public functions or classes. Most of the missing examples are linked to functions.

I could list the following classes and functions for which `numpydoc` did not find any example:

- [x] sklearn.base.BaseEstimator
- [x] sklearn.base.BiclusterMixin
- [x] sklearn.base.ClassNamePrefixFeaturesOutMixin
- [x] sklearn.base.ClassifierMixin
- [x] sklearn.base.ClusterMixin
- [x] sklearn.base.DensityMixin
- [x] sklearn.base.MetaEstimatorMixin
- [x] sklearn.base.OneToOneFeatureMixin
- [x] sklearn.base.OutlierMixin
- [x] sklearn.base.RegressorMixin
- [x] sklearn.base.TransformerMixin
- [x] sklearn.base.clone
- [x] sklearn.base.is_classifier
- [x] sklearn.base.is_regressor
- [x] sklearn.cluster.affinity_propagation
- [x] sklearn.cluster.cluster_optics_dbscan
- [x] sklearn.cluster.cluster_optics_xi
- [x] sklearn.cluster.compute_optics_graph
- [x] sklearn.cluster.estimate_bandwidth
- [x] sklearn.cluster.k_means
- [x] sklearn.cluster.mean_shift
- [x] sklearn.cluster.spectral_clustering
- [x] sklearn.cluster.ward_tree
- [x] sklearn.covariance.graphical_lasso
- [x] sklearn.covariance.ledoit_wolf
- [x] sklearn.covariance.ledoit_wolf_shrinkage
- [x] sklearn.covariance.shrunk_covariance
- [x] sklearn.datasets.clear_data_home
- [x] sklearn.datasets.dump_svmlight_file
- [x] sklearn.datasets.fetch_20newsgroups
- [x] sklearn.datasets.fetch_20newsgroups_vectorized
- [x] sklearn.datasets.fetch_california_housing
- [x] sklearn.datasets.fetch_covtype
- [x] sklearn.datasets.fetch_kddcup99
- [x] sklearn.datasets.fetch_lfw_pairs
- [x] sklearn.datasets.fetch_lfw_people
- [x] sklearn.datasets.fetch_olivetti_faces
- [x] sklearn.datasets.fetch_openml
- [x] sklearn.datasets.fetch_rcv1
- [x] sklearn.datasets.fetch_species_distributions
- [x] sklearn.datasets.get_data_home
- [x] sklearn.datasets.load_diabetes
- [x] sklearn.datasets.load_files
- [x] sklearn.datasets.load_linnerud
- [x] sklearn.datasets.load_svmlight_files
- [x] sklearn.datasets.make_biclusters
- [x] sklearn.datasets.make_checkerboard
- [x] sklearn.datasets.make_circles
- [x] sklearn.datasets.make_classification
- [x] sklearn.datasets.make_friedman1
- [x] sklearn.datasets.make_friedman2
- [x] sklearn.datasets.make_friedman3
- [x] sklearn.datasets.make_gaussian_quantiles
- [x] sklearn.datasets.make_hastie_10_2
- [x] sklearn.datasets.make_low_rank_matrix
- [x] sklearn.datasets.make_moons
- [x] sklearn.datasets.make_multilabel_classification
- [x] sklearn.datasets.make_s_curve
- [x] sklearn.datasets.make_sparse_coded_signal
- [x] sklearn.datasets.make_sparse_spd_matrix
- [x] sklearn.datasets.make_sparse_uncorrelated
- [x] sklearn.datasets.make_spd_matrix
- [x] sklearn.datasets.make_swiss_roll
- [x] sklearn.decomposition.dict_learning
- [x] sklearn.decomposition.dict_learning_online
- [x] sklearn.decomposition.sparse_encode
- [x] sklearn.feature_extraction.image.grid_to_graph
- [x] sklearn.feature_extraction.image.img_to_graph
- [x] sklearn.feature_extraction.image.reconstruct_from_patches_2d
- [x] sklearn.feature_selection.SelectorMixin
- [x] sklearn.feature_selection.chi2
- [x] sklearn.feature_selection.f_classif
- [x] sklearn.feature_selection.f_regression
- [x] sklearn.feature_selection.mutual_info_classif
- [x] sklearn.feature_selection.mutual_info_regression
- [x] sklearn.feature_selection.r_regression
- [x] sklearn.gaussian_process.kernels.Kernel
- [x] sklearn.get_config
- [x] sklearn.isotonic.check_increasing
- [x] sklearn.isotonic.isotonic_regression
- [x] sklearn.linear_model.enet_path
- [x] sklearn.linear_model.lars_path
- [x] sklearn.linear_model.lars_path_gram
- [x] sklearn.linear_model.orthogonal_mp
- [x] sklearn.linear_model.orthogonal_mp_gram
- [x] sklearn.linear_model.ridge_regression
- [x] sklearn.manifold.locally_linear_embedding
- [x] sklearn.manifold.smacof
- [x] sklearn.manifold.spectral_embedding
- [x] sklearn.manifold.trustworthiness
- [x] sklearn.metrics.calinski_harabasz_score
- [x] sklearn.metrics.check_scoring
- [x] sklearn.metrics.cohen_kappa_score
- [x] sklearn.metrics.consensus_score
- [x] sklearn.metrics.coverage_error
- [x] sklearn.metrics.davies_bouldin_score
- [x] sklearn.metrics.get_scorer
- [x] sklearn.metrics.get_scorer_names
- [x] sklearn.metrics.homogeneity_completeness_v_measure
- [x] sklearn.metrics.label_ranking_loss
- [x] sklearn.metrics.mutual_info_score
- [x] sklearn.metrics.pairwise.additive_chi2_kernel
- [x] sklearn.metrics.pairwise.chi2_kernel
- [x] sklearn.metrics.pairwise.cosine_distances
- [x] sklearn.metrics.pairwise.cosine_similarity
- [x] sklearn.metrics.pairwise.distance_metrics
- [x] sklearn.metrics.pairwise.kernel_metrics
- [x] sklearn.metrics.pairwise.laplacian_kernel
- [x] sklearn.metrics.pairwise.linear_kernel
- [x] sklearn.metrics.pairwise.paired_cosine_distances
- [x] sklearn.metrics.pairwise.paired_euclidean_distances
- [x] sklearn.metrics.pairwise.pairwise_kernels
- [x] sklearn.metrics.pairwise.polynomial_kernel
- [x] sklearn.metrics.pairwise.rbf_kernel
- [x] sklearn.metrics.pairwise.sigmoid_kernel
- [x] sklearn.metrics.pairwise_distances
- [x] sklearn.metrics.pairwise_distances_argmin
- [x] sklearn.metrics.pairwise_distances_argmin_min
- [x] sklearn.metrics.silhouette_samples
- [x] sklearn.metrics.silhouette_score
- [x] sklearn.model_selection.check_cv
- [x] sklearn.model_selection.permutation_test_score
- [x] sklearn.model_selection.validation_curve
- [x] sklearn.neighbors.sort_graph_by_row_values
- [x] sklearn.preprocessing.binarize
- [x] sklearn.preprocessing.maxabs_scale
- [x] sklearn.preprocessing.minmax_scale
- [x] sklearn.preprocessing.normalize
- [x] sklearn.preprocessing.robust_scale
- [x] sklearn.preprocessing.scale
- [x] sklearn.set_config
- [x] sklearn.show_versions
- [x] sklearn.svm.l1_min_c
- [x] sklearn.utils._safe_indexing
- [x] sklearn.utils.arrayfuncs.min_pos
- [x] sklearn.utils.as_float_array
- [x] sklearn.utils.assert_all_finite
- [x] sklearn.utils.check_X_y
- [x] sklearn.utils.check_array
- [x] sklearn.utils.check_consistent_length
- [x] sklearn.utils.check_random_state
- [x] sklearn.utils.check_scalar
- [x] sklearn.utils.class_weight.compute_class_weight
- [x] sklearn.utils.class_weight.compute_sample_weight
- [x] sklearn.utils.deprecated
- [x] sklearn.utils.discovery.all_displays
- [x] sklearn.utils.discovery.all_estimators
- [x] sklearn.utils.discovery.all_functions
- [x] sklearn.utils.estimator_checks.check_estimator
- [x] sklearn.utils.estimator_html_repr
- [x] sklearn.utils.extmath.density
- [x] sklearn.utils.extmath.randomized_range_finder
- [x] sklearn.utils.extmath.safe_sparse_dot
- [x] sklearn.utils.indexable
- [x] sklearn.utils.metadata_routing.MetadataRequest
- [x] sklearn.utils.metadata_routing.MetadataRouter
- [x] sklearn.utils.metadata_routing.MethodMapping
- [x] sklearn.utils.metadata_routing.get_routing_for_object
- [x] sklearn.utils.metadata_routing.process_routing
- [x] sklearn.utils.murmurhash3_32
- [x] sklearn.utils.parallel.Parallel
- [x] sklearn.utils.parallel.delayed
- [x] sklearn.utils.parallel_backend
- [x] sklearn.utils.random.sample_without_replacement
- [x] sklearn.utils.register_parallel_backend
- [x] sklearn.utils.safe_mask
- [x] sklearn.utils.safe_sqr
- [x] sklearn.utils.sparsefuncs.incr_mean_variance_axis
- [x] sklearn.utils.sparsefuncs.inplace_column_scale
- [x] sklearn.utils.sparsefuncs.inplace_csr_column_scale
- [x] sklearn.utils.sparsefuncs.inplace_row_scale
- [x] sklearn.utils.sparsefuncs.inplace_swap_column
- [x] sklearn.utils.sparsefuncs.inplace_swap_row
- [x] sklearn.utils.sparsefuncs.mean_variance_axis
- [x] sklearn.utils.sparsefuncs_fast.inplace_csr_row_normalize_l1
- [x] sklearn.utils.sparsefuncs_fast.inplace_csr_row_normalize_l2
- [x] sklearn.utils.validation.check_is_fitted
- [x] sklearn.utils.validation.check_memory
- [x] sklearn.utils.validation.check_symmetric
- [x] sklearn.utils.validation.column_or_1d

The code used to find the list above is detailed below:

<details>

```python
import importlib
import inspect
from pathlib import Path

from numpydoc.docscrape import NumpyDocString

path_sklearn_doc = Path(
    "/{path_to_git_repo}/scikit-learn/doc/_build/html/stable/"
    "modules/generated"
)

missing_examples_name = []
for document in path_sklearn_doc.glob("*.html"):
    extracted_doc = []
    full_name = document.stem
    try:
        module_name, class_or_function_name = full_name.rsplit(".", maxsplit=1)
        module = importlib.import_module(module_name)
        class_or_function = getattr(module, class_or_function_name)
    except (ValueError, AttributeError, ImportError):
        # This is due to the experimental module and function with
        # module name
        continue
    is_class = inspect.isclass(class_or_function)
    docstring = NumpyDocString(class_or_function.__doc__)
    if not docstring["Examples"]:
        missing_examples_name.append(full_name)

for full_name in sorted(missing_examples_name):
    print(f"- [ ] {full_name}")
```

</details>

COMMENT:
I'll work on 
sklearn.utils.class_weight.compute_sample_weight
sklearn.utils.class_weight.compute_class_weight

Labels: Documentation, good first issue, help wanted