Skip to content

Commit 9351761

Browse files
committed
Pushing the docs to dev/ for branch: main, commit 9f7a0e6cbfc20169394379f70fec3f260fa3770a
1 parent c035e66 commit 9351761

File tree

1,230 files changed

+4248
-4255
lines changed

Some content is hidden

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

1,230 files changed

+4248
-4255
lines changed
Binary file not shown.
Binary file not shown.

dev/_downloads/7012baed63b9a27f121bae611b8285c2/plot_cyclical_feature_engineering.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@
704704
},
705705
"outputs": [],
706706
"source": [
707-
"fig, axes = plt.subplots(ncols=3, figsize=(12, 4), sharey=True)\nfig.suptitle(\"Non-linear regression models\")\npredictions = [\n one_hot_poly_predictions,\n cyclic_spline_poly_predictions,\n gbrt_predictions,\n]\nlabels = [\n \"One hot + polynomial kernel\",\n \"Splines + polynomial kernel\",\n \"Gradient Boosted Trees\",\n]\nfor ax, pred, label in zip(axes, predictions, labels):\n ax.scatter(y.iloc[test_0].values, pred, alpha=0.3, label=label)\n ax.plot([0, 1], [0, 1], \"--\", label=\"Perfect model\")\n ax.set(\n xlim=(0, 1),\n ylim=(0, 1),\n xlabel=\"True demand\",\n ylabel=\"Predicted demand\",\n )\n ax.legend()"
707+
"fig, axes = plt.subplots(ncols=3, figsize=(12, 4), sharey=True)\nfig.suptitle(\"Non-linear regression models\")\npredictions = [\n one_hot_poly_predictions,\n cyclic_spline_poly_predictions,\n gbrt_predictions,\n]\nlabels = [\n \"One hot + polynomial kernel\",\n \"Splines + polynomial kernel\",\n \"Gradient Boosted Trees\",\n]\nfor ax, pred, label in zip(axes, predictions, labels):\n ax.scatter(y.iloc[test_0].values, pred, alpha=0.3, label=label)\n ax.plot([0, 1], [0, 1], \"--\", label=\"Perfect model\")\n ax.set(\n xlim=(0, 1),\n ylim=(0, 1),\n xlabel=\"True demand\",\n ylabel=\"Predicted demand\",\n )\n ax.legend()\n\nplt.show()"
708708
]
709709
},
710710
{

dev/_downloads/9fcbbc59ab27a20d07e209a711ac4f50/plot_cyclical_feature_engineering.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ def periodic_spline_transformer(period, n_splines=None, degree=3):
791791
)
792792
ax.legend()
793793

794-
794+
plt.show()
795795
# %%
796796
# This visualization confirms the conclusions we draw on the previous plot.
797797
#

dev/_downloads/scikit-learn-docs.zip

-4.12 KB
Binary file not shown.
46 Bytes
25 Bytes
209 Bytes
186 Bytes
-9 Bytes

0 commit comments

Comments
 (0)