Skip to content

Commit

Permalink
Merge branch 'scikit-learn:main' into fork
Browse files Browse the repository at this point in the history
  • Loading branch information
adam2392 authored Apr 24, 2023
2 parents d2e88c0 + 89ff82c commit 558be0a
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
10 changes: 10 additions & 0 deletions doc/jupyter-lite.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"jupyter-lite-schema-version": 0,
"jupyter-config-data": {
"litePluginSettings": {
"@jupyterlite/pyodide-kernel-extension:kernel": {
"pyodideUrl": "https://cdn.jsdelivr.net/pyodide/v0.23.1/full/pyodide.js"
}
}
}
}
5 changes: 5 additions & 0 deletions doc/jupyter_lite_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"LiteBuildConfig": {
"no_sourcemaps": true
}
}
3 changes: 1 addition & 2 deletions examples/neighbors/plot_nearest_centroid.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from sklearn_fork.neighbors import NearestCentroid
from sklearn_fork.inspection import DecisionBoundaryDisplay

n_neighbors = 15

# import some data to play with
iris = datasets.load_iris()
Expand All @@ -29,7 +28,7 @@
cmap_bold = ListedColormap(["darkorange", "c", "darkblue"])

for shrinkage in [None, 0.2]:
# we create an instance of Neighbours Classifier and fit the data.
# we create an instance of Nearest Centroid Classifier and fit the data.
clf = NearestCentroid(shrink_threshold=shrinkage)
clf.fit(X, y)
y_pred = clf.predict(X)
Expand Down
5 changes: 5 additions & 0 deletions examples/preprocessing/plot_target_encoder_cross_val.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,3 +158,8 @@
# :class:`TargetEncoder` is a part of a :class:`~sklearn_fork.pipeline.Pipeline` and the
# pipeline is fitted, the pipeline will correctly call
# :meth:`TargetEncoder.fit_transform` and pass the encoding along.

# %%
# This resets `transform_output` to its default value to avoid impacting other
# examples when generating the scikit-learn documentation
sklearn.set_config(transform_output="default")

0 comments on commit 558be0a

Please sign in to comment.