Safe Haskell | Safe-Infered |
---|
Structures.Structures
Description
This particular file contains the auxilliary definitions of data that are required by different classifiers
- type ClassName = String
- type FeatureVector = [Feature]
- type Feature = Double
- type Probability = Double
- data DataSet = DataSet {
- points :: [FeatureVector]
- classes :: [ClassName]
- type Probe = ClassName -> Feature -> Probability
- type FeatureData = [Feature]
- type ClassData = [ClassName]
- type TestDataCollect = [FeatureVector]
- data DistributionType
- data Distribution
- data PriorType
- = Empirical
- | Uniform
- | Specific [(ClassName, Probability)]
- type DataPoint = (FeatureVector, ClassName)
- type DataCollect = [DataPoint]
- data DType
- data Resolve
- type NeighbourNum = Int
- type ConflictControl = String
- type Label = String
- data C45Dtree = C45Dtree {
- c45Classify :: Datum -> Label
- data DecisionTree
- newtype Datum = Datum {
- attributes :: [(Attribute, Feature)]
- data Labelled = Labelled {}
- type DataSetDT = [Labelled]
- type FeatureDT = Datum
- data Attribute
- data DataSetGen
Documentation
type ClassName = String
The name of the class.
type FeatureVector = [Feature]
The feature vector
type Feature = Double
Each of the feature is a double value, the interpretation will be based on the distribution type to be used.
type Probability = Double
just better readability
data DataSet
data set, i.e. the input. each of the feature vector is a point and the classes contain the corresponding class the particular feature belongs to. The size of the points and the classes should be same
Constructors
DataSet | |
Fields
|
Instances
Show DataSet |
type Probe = ClassName -> Feature -> Probability
Probe is basically a function that gives the probability of a feature having a particular value for a particular className
type FeatureData = [Feature]
this is same feature for different input points
type TestDataCollect = [FeatureVector]
Collection of feature vectors
data DistributionType
specifies the type of the distribution used to fit the training data for a particular feature Source of Description : MathWork Normal - Gaussian Mvmn - Multivariate multinomial distribution Mn - Multinomial distribution
Instances
Show DistributionType |
data Distribution
Constructors
Single DistributionType | |
Multiple [DistributionType] |
Instances
Show Distribution |
data PriorType
This defines which prior probablity to use. Empirical - Depends on the training data. Uniform - Equal probablity for all classes Specific - User provided probability
Constructors
Empirical | |
Uniform | |
Specific [(ClassName, Probability)] |
Instances
Show PriorType |
type DataPoint = (FeatureVector, ClassName)
data point, is the combination of point and its class data DataPoint = DataPoint { point::FeatureVector ,className :: ClassName }
type DataCollect = [DataPoint]
alternative to DataSet but in this classes or points are not directly separable
type NeighbourNum = Int
The number of neighbours the KNN uses
type ConflictControl = String
ROMIL
type Label = String
NITESH
data C45Dtree
Constructors
C45Dtree | |
Fields
|
data DecisionTree
data Attribute
data DataSetGen
General definition of Dataset to unify the interface