Safe Haskell | None |
---|---|
Language | Haskell2010 |
Mushroom data set
UCI ML Repository link https://archive.ics.uci.edu/ml/datasets/mushroom
This data set includes descriptions of hypothetical samples corresponding to 23 species of gilled mushrooms in the Agaricus and Lepiota Family. Each species is identified as definitely edible, definitely poisonous, or of unknown edibility and not recommended. This latter class was combined with the poisonous one.
Attribute Information:
All the attributes are discrete (categorical), and attribute 11 ("stalk-root") lacks some entries. The classification
attribute has been mapped to a Boolean value (where edible = True).
- classification: poisonous=p, edible=e
- cap-shape: bell=b,conical=c,convex=x,flat=f, knobbed=k,sunken=s
- cap-surface: fibrous=f,grooves=g,scaly=y,smooth=s
- cap-color: brown=n,buff=b,cinnamon=c,gray=g,green=r, pink=p,purple=u,red=e,white=w,yellow=y
- bruises?: bruises=t,no=f
- odor: almond=a,anise=l,creosote=c,fishy=y,foul=f, musty=m,none=n,pungent=p,spicy=s
- gill-attachment: attached=a,descending=d,free=f,notched=n
- gill-spacing: close=c,crowded=w,distant=d
- gill-size: broad=b,narrow=n
- gill-color: black=k,brown=n,buff=b,chocolate=h,gray=g, green=r,orange=o,pink=p,purple=u,red=e, white=w,yellow=y
- stalk-shape: enlarging=e,tapering=t
- stalk-root: bulbous=b,club=c,cup=u,equal=e, rhizomorphs=z,rooted=r,missing=?
- stalk-surface-above-ring: fibrous=f,scaly=y,silky=k,smooth=s
- stalk-surface-below-ring: fibrous=f,scaly=y,silky=k,smooth=s
- stalk-color-above-ring: brown=n,buff=b,cinnamon=c,gray=g,orange=o, pink=p,red=e,white=w,yellow=y
- stalk-color-below-ring: brown=n,buff=b,cinnamon=c,gray=g,orange=o, pink=p,red=e,white=w,yellow=y
- veil-type: partial=p,universal=u
- veil-color: brown=n,orange=o,white=w,yellow=y
- ring-number: none=n,one=o,two=t
- ring-type: cobwebby=c,evanescent=e,flaring=f,large=l, none=n,pendant=p,sheathing=s,zone=z
- spore-print-color: black=k,brown=n,buff=b,chocolate=h,green=r, orange=o,purple=u,white=w,yellow=y
- population: abundant=a,clustered=c,numerous=n, scattered=s,several=v,solitary=y
- habitat: grasses=g,leaves=l,meadows=m,paths=p, urban=u,waste=w,woods=d
Example rows:
p,x,s,n,t,p,f,c,n,k,e,e,s,s,w,w,p,w,o,p,k,s,u
e,x,s,y,t,a,f,c,b,k,e,c,s,s,w,w,p,w,o,p,n,n,g
Synopsis
- mushroom :: Dataset Https MushroomEntry
- data MushroomEntry = MushroomEntry {
- edible :: Bool
- capShape :: CapShape
- capSurface :: CapSurface
- capColor :: CapColor
- bruises :: Bool
- odor :: Odor
- gillAttachment :: GillAttachment
- gillSpacing :: GillSpacing
- gillSize :: GillSize
- gillColor :: GillColor
- stalkShape :: StalkShape
- stalkRoot :: Maybe StalkRoot
- stalkSurfaceAboveRing :: StalkSurfaceAboveRing
- stalkSurfaceBelowRing :: StalkSurfaceBelowRing
- stalkColorAboveRing :: StalkColorAboveRing
- stalkColorBelowRing :: StalkColorBelowRing
- veilType :: VeilType
- veilColor :: VeilColor
- ringNumber :: RingNumber
- ringType :: RingType
- sporePrintColor :: SporePrintColor
- population :: Population
- habitat :: Habitat
- data CapShape
- data CapSurface
- data CapColor
- data Odor
- data GillAttachment
- = Attached
- | Descending
- | Free
- | Notched
- data GillSpacing
- data GillSize
- data GillColor
- data StalkShape
- data StalkRoot
- data StalkSurfaceAboveRing
- data StalkSurfaceBelowRing
- data StalkColorAboveRing
- data StalkColorBelowRing
- data VeilType
- data VeilColor
- data RingNumber
- data RingType
- data SporePrintColor
- data Population
- data Habitat
Documentation
data MushroomEntry Source #
MushroomEntry | |
|
Instances
Instances
Bounded CapShape Source # | |
Enum CapShape Source # | |
Defined in Numeric.Datasets.Mushroom | |
Eq CapShape Source # | |
Ord CapShape Source # | |
Defined in Numeric.Datasets.Mushroom | |
Read CapShape Source # | |
Show CapShape Source # | |
Generic CapShape Source # | |
type Rep CapShape Source # | |
Defined in Numeric.Datasets.Mushroom type Rep CapShape = D1 (MetaData "CapShape" "Numeric.Datasets.Mushroom" "datasets-0.3.0-7Z79tuLu7Qn9R081MfsFat" False) ((C1 (MetaCons "Bell" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "Conical" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Convex" PrefixI False) (U1 :: Type -> Type))) :+: (C1 (MetaCons "Flat" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "Knobbed" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Sunken" PrefixI False) (U1 :: Type -> Type)))) |
data CapSurface Source #
Instances
Instances
Instances
Bounded Odor Source # | |
Enum Odor Source # | |
Eq Odor Source # | |
Ord Odor Source # | |
Read Odor Source # | |
Show Odor Source # | |
Generic Odor Source # | |
type Rep Odor Source # | |
Defined in Numeric.Datasets.Mushroom type Rep Odor = D1 (MetaData "Odor" "Numeric.Datasets.Mushroom" "datasets-0.3.0-7Z79tuLu7Qn9R081MfsFat" False) (((C1 (MetaCons "Almond" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Anise" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Creosote" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Fishy" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "Foul" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Musty" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "None" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "Pungent" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Spicy" PrefixI False) (U1 :: Type -> Type))))) |
data GillAttachment Source #
Instances
data GillSpacing Source #
Instances
Instances
Bounded GillSize Source # | |
Enum GillSize Source # | |
Defined in Numeric.Datasets.Mushroom | |
Eq GillSize Source # | |
Ord GillSize Source # | |
Defined in Numeric.Datasets.Mushroom | |
Read GillSize Source # | |
Show GillSize Source # | |
Generic GillSize Source # | |
type Rep GillSize Source # | |
Instances
data StalkShape Source #
Instances
Instances
data StalkSurfaceAboveRing Source #
Instances
data StalkSurfaceBelowRing Source #
Instances
data StalkColorAboveRing Source #
Instances
data StalkColorBelowRing Source #
Instances
Instances
Bounded VeilType Source # | |
Enum VeilType Source # | |
Defined in Numeric.Datasets.Mushroom | |
Eq VeilType Source # | |
Ord VeilType Source # | |
Defined in Numeric.Datasets.Mushroom | |
Read VeilType Source # | |
Show VeilType Source # | |
Generic VeilType Source # | |
type Rep VeilType Source # | |
Instances
Bounded VeilColor Source # | |
Enum VeilColor Source # | |
Defined in Numeric.Datasets.Mushroom succ :: VeilColor -> VeilColor # pred :: VeilColor -> VeilColor # fromEnum :: VeilColor -> Int # enumFrom :: VeilColor -> [VeilColor] # enumFromThen :: VeilColor -> VeilColor -> [VeilColor] # enumFromTo :: VeilColor -> VeilColor -> [VeilColor] # enumFromThenTo :: VeilColor -> VeilColor -> VeilColor -> [VeilColor] # | |
Eq VeilColor Source # | |
Ord VeilColor Source # | |
Defined in Numeric.Datasets.Mushroom | |
Read VeilColor Source # | |
Show VeilColor Source # | |
Generic VeilColor Source # | |
type Rep VeilColor Source # | |
Defined in Numeric.Datasets.Mushroom type Rep VeilColor = D1 (MetaData "VeilColor" "Numeric.Datasets.Mushroom" "datasets-0.3.0-7Z79tuLu7Qn9R081MfsFat" False) ((C1 (MetaCons "VCBrown" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "VCOrange" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "VCWhite" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "VCYellow" PrefixI False) (U1 :: Type -> Type))) |
data RingNumber Source #
- ring-number: none=n,one=o,two=t
Instances
Instances
Bounded RingType Source # | |
Enum RingType Source # | |
Defined in Numeric.Datasets.Mushroom | |
Eq RingType Source # | |
Ord RingType Source # | |
Defined in Numeric.Datasets.Mushroom | |
Read RingType Source # | |
Show RingType Source # | |
Generic RingType Source # | |
type Rep RingType Source # | |
Defined in Numeric.Datasets.Mushroom type Rep RingType = D1 (MetaData "RingType" "Numeric.Datasets.Mushroom" "datasets-0.3.0-7Z79tuLu7Qn9R081MfsFat" False) (((C1 (MetaCons "RTCobwebby" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "RTEvanescent" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "RTFlaring" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "RTLarge" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "RTNone" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "RTPendant" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "RTSheathing" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "RTZone" PrefixI False) (U1 :: Type -> Type)))) |
data SporePrintColor Source #
Instances
data Population Source #
Instances
Instances
Bounded Habitat Source # | |
Enum Habitat Source # | |
Eq Habitat Source # | |
Ord Habitat Source # | |
Read Habitat Source # | |
Show Habitat Source # | |
Generic Habitat Source # | |
type Rep Habitat Source # | |
Defined in Numeric.Datasets.Mushroom type Rep Habitat = D1 (MetaData "Habitat" "Numeric.Datasets.Mushroom" "datasets-0.3.0-7Z79tuLu7Qn9R081MfsFat" False) ((C1 (MetaCons "Grasses" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "Leaves" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Meadows" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "Paths" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Urban" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "Waste" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Woods" PrefixI False) (U1 :: Type -> Type)))) |