fetch_miniboone#
- mlquantify.datasets.fetch_miniboone(*, data_home=None, download_if_missing=True, return_X_y=False, as_frame=False, n_retries=3, delay=1.0, protocol=None, n_samples=1000, sample_size=500, random_state=None)[source]#
MiniBooNE particle identification: signal vs. background (binary, large).
130064 events from the MiniBooNE neutrino experiment, each a vector of 50 reconstructed particle-ID variables. The first 36499 rows are electron-neutrino signal, the remaining 93565 are background (the loader assigns the labels from the file header).
Quantification: a large physics binary – tests scalability and difficulty together.
Samples
130064
Features
50 (real)
Classes
2 (signal 28.1% / background 71.9%)
Missing
0
Source: https://archive.ics.uci.edu/dataset/199/miniboone+particle+identification
- Parameters:
- data_homestr or path-like, default=None
Folder used to cache the downloaded file(s); defaults to
_data/next to the package.- download_if_missingbool, default=True
If False, raise instead of downloading when the cache is empty.
- return_X_ybool, default=False
Return
(X, y)instead of a Bunch.- as_framebool, default=False
Return
.dataas a DataFrame,.targetas a Series, and a combined.frame(features + a"target"column).- n_retriesint, default=3
Number of download attempts before giving up.
- delayfloat, default=1.0
Seconds to wait between attempts.
- protocol{None, “app”, “npp”, “upp”, “ppp”} or mlquantify protocol, default=None
If set, draw evaluation sample-bags with an mlquantify protocol; the Bunch then also has
.samples(index bags into.data),.prevalencesand.protocol.- n_samplesint, default=1000
Number of prevalence points (bags) generated by the protocol.
- sample_sizeint, default=500
Instances per bag (the protocol
batch_size).- random_stateint or None, default=None
Seed forwarded to the protocol.
- Returns:
- dataBunch
Dictionary-like object. Attributes:
data(features),target(labels),feature_names,target_names,DESCR;framewhenas_frame=True; andsamples/prevalences/protocolwhenprotocolis set.- (X, y)tuple
Returned instead when
return_X_y=True.
References
Roe, B. et al. (2005). Boosted decision trees for MiniBooNE. NIM A 543. UCI #199.
Examples
>>> b = fetch_miniboone(); b.data.shape (130064, 50)