3444430a2a1488de3b96249e363ff4a8aab8a5dd,examples/over-sampling/plot_comparison_over_sampling.py,,,#,109

Before Change



fig, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2, figsize=(15, 12))

ax_arr = (ax1, ax2, ax3, ax4)
weights_arr = (
    (0.01, 0.01, 0.98),
    (0.01, 0.05, 0.94),
    (0.2, 0.1, 0.7),

After Change


axs[0].set_title("RandomOverSampler with normal bootstrap")
sampler = RandomOverSampler(smoothed_bootstrap=True, shrinkage=0.2, random_state=0)
plot_resampling(X, y, sampler, ax=axs[1])
axs[1].set_title("RandomOverSampler with smoothed bootstrap")
fig.tight_layout()

//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// It looks like more samples are generated with smoothed bootstrap. This is due
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scikit-learn-contrib/imbalanced-learn
Commit Name: 3444430a2a1488de3b96249e363ff4a8aab8a5dd
Time: 2021-02-12
Author: g.lemaitre58@gmail.com
File Name: examples/over-sampling/plot_comparison_over_sampling.py
Class Name:
Method Name:


Project Name: scikit-image/scikit-image
Commit Name: 51f598aaedc73ef180913c670d2c20a8032aaf1e
Time: 2018-05-16
Author: egor.v.panfilov@gmail.com
File Name: doc/examples/edges/plot_random_shapes.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: ac10acb627df7db3eb661bf4bafdd75854b3051a
Time: 2020-04-02
Author: anntzer.lee@gmail.com
File Name: tutorials/intermediate/imshow_extent.py
Class Name:
Method Name: generate_imshow_demo_grid