8000 DOC Typos found by codespell (#21069) · scikit-learn/scikit-learn@f71c031 · GitHub
[go: up one dir, main page]

Skip to content

Commit f71c031

Browse files
DOC Typos found by codespell (#21069)
1 parent cdf399e commit f71c031

File tree

124 files changed

+173
-173
lines changed
  • doc
  • examples
  • sklearn
  • Some content is hidden

    Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

    124 files changed

    +173
    -173
    lines changed

    benchmarks/bench_mnist.py

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -6,7 +6,7 @@
    66
    Benchmark on the MNIST dataset. The dataset comprises 70,000 samples
    77
    and 784 features. Here, we consider the task of predicting
    88
    10 classes - digits from 0 to 9 from their raw images. By contrast to the
    9-
    covertype dataset, the feature space is homogenous.
    9+
    covertype dataset, the feature space is homogeneous.
    1010
    1111
    Example of output :
    1212
    [..]

    benchmarks/bench_random_projections.py

    Lines changed: 3 additions & 3 deletions
    Original file line numberDiff line numberDiff line change
    @@ -43,10 +43,10 @@ def compute_time(t_start, delta):
    4343
    return delta.seconds + delta.microseconds / mu_second
    4444

    4545

    46-
    def bench_scikit_transformer(X, transfomer):
    46+
    def bench_scikit_transformer(X, transformer):
    4747
    gc.collect()
    4848

    49-
    clf = clone(transfomer)
    49+
    clf = clone(transformer)
    5050

    5151
    # start time
    5252
    t_start = datetime.now()
    @@ -195,7 +195,7 @@ def print_row(clf_type, time_fit, time_transform):
    195195
    ###########################################################################
    196196
    n_nonzeros = int(opts.ratio_nonzeros * opts.n_features)
    197197

    198-
    print("Dataset statics")
    198+
    print("Dataset statistics")
    199199
    print("===========================")
    200200
    print("n_samples \t= %s" % opts.n_samples)
    201201
    print("n_features \t= %s" % opts.n_features)

    build_tools/azure/posix-docker.yml

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -39,7 +39,7 @@ jobs:
    3939
    ${{ insert }}: ${{ parameters.matrix }}
    4040

    4141
    steps:
    42-
    # Container is detached and sleeping, allowing steps to run commmands
    42+
    # Container is detached and sleeping, allowing steps to run commands
    4343
    # in the container. The TEST_DIR is mapped allowing the host to access
    4444
    # the JUNITXML file
    4545
    - script: >

    build_tools/circle/list_versions.py

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -34,7 +34,7 @@ def human_readable_data_quantity(quantity, multiple=1024):
    3434

    3535
    def get_file_extension(version):
    3636
    if "dev" in version:
    37-
    # The 'dev' branch should be explictly handled
    37+
    # The 'dev' branch should be explicitly handled
    3838
    return "zip"
    3939

    4040
    current_version = LooseVersion(version)

    build_tools/shared.sh

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -5,7 +5,7 @@ get_dep() {
    55
    # do not install with none
    66
    echo
    77
    elif [[ "${version%%[^0-9.]*}" ]]; then
    8-
    # version number is explicity passed
    8+
    # version number is explicitly passed
    99
    echo "$package==$version"
    1010
    elif [[ "$version" == "latest" ]]; then
    1111
    # use latest

    doc/common_pitfalls.rst

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -560,7 +560,7 @@ bad performance. Similarly, we want a random forest to be robust w.r.t the
    560560
    set of randomly selected features that each tree will be using.
    561561

    562562
    For these reasons, it is preferable to evaluate the cross-validation
    563-
    preformance by letting the estimator use a different RNG on each fold. This
    563+
    performance by letting the estimator use a different RNG on each fold. This
    564564
    is done by passing a `RandomState` instance (or `None`) to the estimator
    565565
    initialization.
    566566

    doc/conf.py

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -240,7 +240,7 @@
    240240
    "release_highlights"
    241241
    ] = f"auto_examples/release_highlights/{latest_highlights}"
    242242

    243-
    # get version from higlight name assuming highlights have the form
    243+
    # get version from highlight name assuming highlights have the form
    244244
    # plot_release_highlights_0_22_0
    245245
    highlight_version = ".".join(latest_highlights.split("_")[-3:-1])
    246246
    html_context["release_highlights_version"] = highlight_version

    doc/developers/advanced_installation.rst

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -374,7 +374,7 @@ isolation from the Python packages installed via the system packager. When
    374374
    using an isolated environment, ``pip3`` should be replaced by ``pip`` in the
    375375
    above commands.
    376376

    377-
    When precompiled wheels of the runtime dependencies are not avalaible for your
    377+
    When precompiled wheels of the runtime dependencies are not available for your
    378378
    architecture (e.g. ARM), you can install the system versions:
    379379

    380380
    .. prompt:: bash $

    doc/developers/contributing.rst

    Lines changed: 1 addition & 1 deletion
    Original file line numberDiff line numberDiff line change
    @@ -1004,7 +1004,7 @@ installed in your current Python environment:
    10041004

    10051005
    asv run --python=same
    10061006

    1007-
    It's particulary useful when you installed scikit-learn in editable mode to
    1007+
    It's particularly useful when you installed scikit-learn in editable mode to
    10081008
    avoid creating a new environment each time you run the benchmarks. By default
    10091009
    the results are not saved when using an existing installation. To save the
    10101010
    results you must specify a commit hash:

    doc/developers/maintainer.rst

    Lines changed: 2 additions & 2 deletions
    Original file line numberDiff line numberDiff line change
    @@ -33,7 +33,7 @@ Before a release
    3333

    3434
    - ``maint_tools/sort_whats_new.py`` can put what's new entries into
    3535
    sections. It's not perfect, and requires manual checking of the changes.
    36-
    If the whats new list is well curated, it may not be necessary.
    36+
    If the what's new list is well curated, it may not be necessary.
    3737

    3838
    - The ``maint_tools/whats_missing.sh`` script may be used to identify pull
    3939
    requests that were merged but likely missing from What's New.
    @@ -198,7 +198,7 @@ Making a release
    198198
    `Continuous Integration
    199199
    <https://en.wikipedia.org/wiki/Continuous_integration>`_. The CD workflow on
    200200
    GitHub Actions is also used to automatically create nightly builds and
    201-
    publish packages for the developement branch of scikit-learn. See
    201+
    publish packages for the development branch of scikit-learn. See
    202202
    :ref:`install_nightly_builds`.
    203203

    204204
    4. Once all the CD jobs have completed successfully in the PR, merge it,

    0 commit comments

    Comments
     (0)
    0