When I run this code:
from sklearn import cross_validation
bs = cross_validation.Bootstrap(9, random_state=0)
I get this deprecation warning:
C:\Anaconda\envs\p33\lib\site-packages\sklearn\cross_validation.py:684: DeprecationWarning: Bootstrap will no longer be supported as a cross-validation method as of version 0.15 and will be removed in 0.17
"will be removed in 0.17", DeprecationWarning)
What should I use instead of the bootstrap?
With all the perks of an advanced framework, Foundation is definitely the strongest alternative to Bootstrap. It is being used by some of the biggest organizations in the world for e.g. Adobe, Amazon, HP, eBay etc to quote a few.
Cardinal is a modular, "mobile-first" CSS framework built with performance and scalability in mind. It doesn't have any unnecessary code-related UI design, which makes its structure very light compared to Bootstrap. Plus, it allows complete control over the appearance of websites.
Bootstrap comes with a lot of lines of CSS and JS, which is a good thing, but also a bad thing because of the bad internet connection. And there's also the problem with the server that will take all the heat for using such a heavy framework.
Any CSS framework is a good choice for 2022. It's just that Bootstrap comes with limited designs for which designs from outside has to be integrated. In Bootstrap, we can add pre-defined class into the code without writing code. Used by many companies well known companies like Twitter, Udemy, Spotify and more.
From the scikit-learn 0.15 release notes, under "API changes summary"
cross_validation.Bootstrap
is deprecated.cross_validation.KFold
orcross_validation.ShuffleSplit
are recommended instead.
And from the source code itself:
# See, e.g., http://youtu.be/BzHz0J9a6k0?t=9m38s for a motivation
# behind this deprecation
warnings.warn("Bootstrap will no longer be supported as a " +
"cross-validation method as of version 0.15 and " +
"will be removed in 0.17", DeprecationWarning)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With