package par
The par package contains classes, traits and objects for analytics including classification, clustering and prediction with parallel implementations.
- Alphabetic
- By Inheritance
- par
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
abstract
class
BayesClassifier
extends ClassifierInt with BayesMetrics
The
BayesClassifier
object provides factory methods for building Bayesian classifiers.The
BayesClassifier
object provides factory methods for building Bayesian classifiers. The following types of classifiers are currently supported:NaiveBayes
- Naive Bayes classifierSelNaiveBayes
- Selective Naive Bayes classifierAugNaiveBayes
- Augmented Naive Bayes classifierAugSelNaiveBayes
- Augmented Selective Naive Bayes classifierTANBayes
- Tree Augmented Naive Bayes classifierSelTAN
- Selective Tree Augmented Naive Bayes classifierBayesNetwork2
- Ordering-based Bayesian Network with k = 2 -
class
BayesNetwork2
extends ClassifierInt with BayesMetrics
The
BayesNetwork2
class implements an Integer-Based Bayesian Network Classifier, which is a commonly used such classifier for discrete input data.The
BayesNetwork2
class implements an Integer-Based Bayesian Network Classifier, which is a commonly used such classifier for discrete input data. Each node is limited to have at most 2 parents, and hence the "2" in the class nameBayesNetwork2
. The classifier is trained using a data matrix 'x' and a classification vector 'y'. Each data vector in the matrix is classified into one of 'k' classes numbered 0, ..., k-1. Prior probabilities are calculated based on the population of each class in the training-set. Relative posterior probabilities are computed by multiplying these by values computed using conditional probabilities. The classifier supports limited dependency between features/variables. ------------------------------------------------------------------------------ -
class
DAG
extends AnyRef
The 'DAG' class provides a data structure for storing directed acyclic graphs.
-
class
NaiveBayes
extends BayesClassifier
The
NaiveBayes
class implements an Integer-Based Naive Bayes Classifier, which is a commonly used such classifier for discrete input data.The
NaiveBayes
class implements an Integer-Based Naive Bayes Classifier, which is a commonly used such classifier for discrete input data. The classifier is trained using a data matrix 'x' and a classification vector 'y'. Each data vector in the matrix is classified into one of 'k' classes numbered 0, ..., k-1. Prior probabilities are calculated based on the population of each class in the training-set. Relative posterior probabilities are computed by multiplying these by values computed using conditional probabilities. The classifier is naive, because it assumes feature independence and therefore simply multiplies the conditional probabilities. ----------------------------------------------------------------------------- -
class
SelNaiveBayes
extends BayesClassifier
The
SelNaiveBayes
class implements an Integer-Based Naive Bayes Classifier, which is a commonly used such classifier for discrete input data.The
SelNaiveBayes
class implements an Integer-Based Naive Bayes Classifier, which is a commonly used such classifier for discrete input data. The classifier is trained using a data matrix 'x' and a classification vector 'y'. Each data vector in the matrix is classified into one of 'k' classes numbered 0, ..., k-1. Prior probabilities are calculated based on the population of each class in the training-set. Relative posterior probabilities are computed by multiplying these by values computed using conditional probabilities. The classifier is naive, because it assumes feature independence and therefore simply multiplies the conditional probabilities. The version is "selective", since features whose impact is small are ignored. ---------------------------------------------------------------------------- -
class
TANBayes
extends BayesClassifier
The
TANBayes
class implements an Integer-Based Tree Augmented Naive Bayes Classifier, which is a commonly used such classifier for discrete input data.The
TANBayes
class implements an Integer-Based Tree Augmented Naive Bayes Classifier, which is a commonly used such classifier for discrete input data. The classifier is trained using a data matrix 'x' and a classification vector 'y'. Each data vector in the matrix is classified into one of 'k' classes numbered 0, ..., k-1. Prior probabilities are calculated based on the population of each class in the training-set. Relative posterior probabilities are computed by multiplying these by values computed using conditional probabilities. The classifier supports limited dependency between features/variables. -----------------------------------------------------------------------------
Value Members
-
val
BASE_DIR: String
The relative path for base directory
-
object
BayesClassifier
The
BayesClassifier
object provides factory methods for building Bayes classifiers. -
object
BayesClassifierTest
extends App
The
BayesClassifierTest
object is used to test theBayesClassifier
class.The
BayesClassifierTest
object is used to test theBayesClassifier
class. Classify whether a car is more likely to be stolen (1) or not (1).- See also
www.inf.u-szeged.hu/~ormandi/ai2/06-naiveBayes-example.pdf > run-main scalation.analytics.classifier.par.BayesClassifierTest
-
object
BayesClassifierTest10
extends App
The
BayesClassifierTest10
object is used to test theBayesClassifier
class.The
BayesClassifierTest10
object is used to test theBayesClassifier
class. > run-main scalation.analytics.classifier.par.BayesClassifierTest10 -
object
BayesClassifierTest11
extends App
The
BayesClassifierTest11
object is used to test theBayesClassifier
class.The
BayesClassifierTest11
object is used to test theBayesClassifier
class. > run-main scalation.analytics.classifier.par.BayesClassifierTest11 -
object
BayesClassifierTest2
extends App
The
BayesClassifierTest2
object is used to test theBayesClassifier
class.The
BayesClassifierTest2
object is used to test theBayesClassifier
class. > run-main scalation.analytics.classifier.par.BayesClassifierTest2 -
object
BayesClassifierTest3
extends App
The
BayesClassifierTest3
object is used to test theBayesClassifier
class.The
BayesClassifierTest3
object is used to test theBayesClassifier
class. > run-main scalation.analytics.classifier.par.BayesClassifierTest3 -
object
BayesClassifierTest4
extends App
The
BayesClassifierTest4
object is used to test theBayesClassifier
class.The
BayesClassifierTest4
object is used to test theBayesClassifier
class. > run-main scalation.analytics.classifier.par.BayesClassifierTest4 -
object
BayesClassifierTest5
extends App
The
BayesClassifierTest5
object is used to test theBayesClassifier
class.The
BayesClassifierTest5
object is used to test theBayesClassifier
class. > run-main scalation.analytics.classifier.par.BayesClassifierTest5 -
object
BayesClassifierTest6
extends App
The
BayesClassifierTest6
object is used to test theBayesClassifier
class.The
BayesClassifierTest6
object is used to test theBayesClassifier
class. > run-main scalation.analytics.classifier.par.BayesClassifierTest6 -
object
BayesClassifierTest7
extends App
The
BayesClassifierTest7
object is used to test theBayesClassifier
class.The
BayesClassifierTest7
object is used to test theBayesClassifier
class. > run-main scalation.analytics.classifier.par.BayesClassifierTest7 -
object
BayesClassifierTest8
extends App
The
BayesClassifierTest8
object is used to test theBayesClassifier
class.The
BayesClassifierTest8
object is used to test theBayesClassifier
class. > run-main scalation.analytics.classifier.par.BayesClassifierTest8 -
object
BayesClassifierTest9
extends App
The
BayesClassifierTest9
object is used to test theBayesClassifier
class.The
BayesClassifierTest9
object is used to test theBayesClassifier
class. > run-main scalation.analytics.classifier.par.BayesClassifierTest9 -
object
BayesNetwork2
The
BayesNetwork2
object is the companion object for theBayesNetwork2
class. -
object
BayesNetwork2Test
extends App
The
BayesNetwork2Test
object is used to test theBayesNetwork2
class.The
BayesNetwork2Test
object is used to test theBayesNetwork2
class. Classify whether a car is more likely to be stolen (1) or not (1).- See also
www.inf.u-szeged.hu/~ormandi/ai2/06-BayesNetwork2-example.pdf > run-main scalation.analytics.classifier.par.BayesNetwork2Test
-
object
BayesNetwork2Test2
extends App
The
BayesNetwork2Test2
object is used to test theBayesNetwork2
class.The
BayesNetwork2Test2
object is used to test theBayesNetwork2
class. Given whether a person is Fast and/or Strong, classify them as making C = 1 or not making C = 0 the football team. > run-main scalation.analytics.classifier.par.BayesNetwork2Test2 -
object
BayesNetwork2Test3
extends App
The
BayesNetwork2Test3
object is used to test theBayesNetwork2
class.The
BayesNetwork2Test3
object is used to test theBayesNetwork2
class. > run-main scalation.analytics.classifier.par.BayesNetwork2Test3 -
object
NaiveBayes
The
NaiveBayes
object is the companion object for theNaiveBayes
class. -
object
NaiveBayesTest
extends App
The
NaiveBayesTest
object is used to test theNaiveBayes
class.The
NaiveBayesTest
object is used to test theNaiveBayes
class. Classify whether a car is more likely to be stolen (1) or not (1).- See also
www.inf.u-szeged.hu/~ormandi/ai2/06-naiveBayes-example.pdf > run-main scalation.analytics.classifier.par.NaiveBayesTest
-
object
NaiveBayesTest2
extends App
The
NaiveBayesTest2
object is used to test theNaiveBayes
class.The
NaiveBayesTest2
object is used to test theNaiveBayes
class. Given whether a person is Fast and/or Strong, classify them as making C = 1 or not making C = 0 the football team. > run-main scalation.analytics.classifier.par.NaiveBayesTest2 -
object
NaiveBayesTest3
extends App
The
NaiveBayesTest3
object is used to test theNaiveBayes
class.The
NaiveBayesTest3
object is used to test theNaiveBayes
class. > run-main scalation.analytics.classifier.par.NaiveBayesTest3 -
object
SelNaiveBayes
SelNaiveBayes
is the companion object for theSelNaiveBayes
class. -
object
SelNaiveBayesTest
extends App
The
SelNaiveBayesTest
object is used to test theSelNaiveBayes
class.The
SelNaiveBayesTest
object is used to test theSelNaiveBayes
class. Classify whether a car is more likely to be stolen (1) or not (1).- See also
www.inf.u-szeged.hu/~ormandi/ai2/06-naiveBayes-example.pdf > run-main scalation.analytics.classifier.par.SelNaiveBayesTest
-
object
SelNaiveBayesTest2
extends App
The
SelNaiveBayesTest2
object is used to test theSelNaiveBayes
class.The
SelNaiveBayesTest2
object is used to test theSelNaiveBayes
class. Given whether a person is Fast and/or Strong, classify them as making C = 1 or not making C = 0 the football team. > run-main scalation.analytics.classifier.par.SelNaiveBayesTest2 -
object
SelNaiveBayesTest3
extends App
The
SelNaiveBayesTest3
object is used to test theSelNaiveBayes
class.The
SelNaiveBayesTest3
object is used to test theSelNaiveBayes
class. > run-main scalation.analytics.classifier.par.SelNaiveBayesTest3 -
object
TANBayes
The
TANBayes
object is the companion object for theTANBayes
class. -
object
TANBayesTest
extends App
The
TANBayesTest
object is used to test theTANBayes
class.The
TANBayesTest
object is used to test theTANBayes
class. Classify whether a car is more likely to be stolen (1) or not (1).- See also
www.inf.u-szeged.hu/~ormandi/ai2/06-AugNaiveBayes-example.pdf > run-main scalation.analytics.classifier.par.TANBayesTest
-
object
TANBayesTest2
extends App
The
TANBayesTest2
object is used to test theTANBayes
class.The
TANBayesTest2
object is used to test theTANBayes
class. Given whether a person is Fast and/or Strong, classify them as making C = 1 or not making C = 0 the football team. > run-main scalation.analytics.classifier.par.TANBayesTest2 -
object
TANBayesTest3
extends App
The
TANBayesTest3
object is used to test theTANBayes
class.The
TANBayesTest3
object is used to test theTANBayes
class. > run-main scalation.analytics.classifier.par.TANBayesTest3