RandomDataSet
public class RandomDataSetUndocumented
- 
                  
                  data DeclarationSwift public var data: [[String]]
- 
                  
                  entropy of the dataset DeclarationSwift public var entropy: Float?
- 
                  
                  infoGains provided by each feature DeclarationSwift public var infoGains: Dictionary<RandomFeature, Float>
- 
                  
                  best feature to use to grow tree DeclarationSwift public var splitFeature: RandomFeature
- 
                  
                  col num of target var DeclarationSwift public var target: Int
- 
                  
                  standard deviation DeclarationSwift public var stdDev: Float
- 
                  
                  giniImpurity of the data set DeclarationSwift public var giniImpurity: Float?
- 
                  
                  Creates a Random DataSet DeclarationSwift public init(data: [[String]], target: Int)Parametersdatadata with labels targetcolumn number of label Return ValueDataSet 
- 
                  
                  Returns if dataset has same target classification for all examples DeclarationSwift public func homogenous() -> (Bool, String)Return Value- if dataset has same target classification for all examples
- the target classification
 
- 
                  
                  Returns Coefficient of Standard Deviation DeclarationSwift public func getCoeffDev() -> FloatReturn ValueCoefficient of Standard Deviation as Float 
- 
                  
                  Returns standard deviation of continous target variable DeclarationSwift public func getTargetStdDev() -> FloatReturn Valuestandard deviation of target variable as Float 
- 
                  
                  Returns mean of continous target variable DeclarationSwift public func getTargetMean() -> FloatReturn Valuemean of target variable as Float 
- 
                  
                  Returns entropy of dataset and sets entropy DeclarationSwift public func getEntropy() -> FloatReturn Valueentropy of dataset as Float 
- 
                  
                  Returns the bestFeature with max infoGain to be used in id3 DeclarationSwift public func getBestFeature(fromIndices: [Int]) -> RandomFeatureParametersfromIndicesset of indices of features to be considered Return Valuebest feature 
- 
                  
                  Returns the best gini feature i.e. minimum gini impurity DeclarationSwift public func getGiniFeature(fromIndices: [Int]) -> RandomFeatureParametersfromIndicesset of indices of features to be considered Return Valuebest feature 
- 
                  
                  Returns the feature with most standard deviation reduction DeclarationSwift public func getSplitFeature(fromIndices: [Int]) -> RandomFeatureParametersfromIndicesset of indices of features to be considered Return Valuefeature 
- 
                  
                  Returns gini impurity of the data set DeclarationSwift public func getGiniImpurity() -> FloatReturn Valuegini impurity of the data set as a Float 
 RandomDataSet Class Reference
      RandomDataSet Class Reference