axle
.
ml
NaiveBayesClassifier
Related Docs:
object NaiveBayesClassifier
|
package ml
case class
NaiveBayesClassifier
[
DATA
,
FEATURE
,
CLASS
,
F
,
G
,
N
]
(
data:
F
,
featureRandomVariables:
List
[
Distribution
[
FEATURE
,
N
]]
,
classRandomVariable:
Distribution
[
CLASS
,
N
]
,
featureExtractor: (
DATA
) ⇒
List
[
FEATURE
]
,
classExtractor: (
DATA
) ⇒
CLASS
)
(
implicit
evidence$1:
Order
[
FEATURE
]
,
evidence$2:
Order
[
CLASS
]
,
evidence$3:
Eq
[
CLASS
]
,
evidence$4:
Field
[
N
]
,
evidence$5:
Order
[
N
]
,
agg:
Aggregatable
[
F
,
DATA
,
Map
[(
CLASS
,
String
,
FEATURE
),
N
]]
,
functor:
Functor
[
F
,
DATA
,
CLASS
,
G
]
,
tal:
Talliable
[
G
,
CLASS
,
N
]
)
extends (
DATA
) ⇒
CLASS
with
Product
with
Serializable
Linear Supertypes
Serializable
,
Serializable
,
Product
,
Equals
, (
DATA
) ⇒
CLASS
,
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
NaiveBayesClassifier
Serializable
Serializable
Product
Equals
Function1
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
NaiveBayesClassifier
(
data:
F
,
featureRandomVariables:
List
[
Distribution
[
FEATURE
,
N
]]
,
classRandomVariable:
Distribution
[
CLASS
,
N
]
,
featureExtractor: (
DATA
) ⇒
List
[
FEATURE
]
,
classExtractor: (
DATA
) ⇒
CLASS
)
(
implicit
arg0:
Order
[
FEATURE
]
,
arg1:
Order
[
CLASS
]
,
arg2:
Eq
[
CLASS
]
,
arg3:
Field
[
N
]
,
arg4:
Order
[
N
]
,
agg:
Aggregatable
[
F
,
DATA
,
Map
[(
CLASS
,
String
,
FEATURE
),
N
]]
,
functor:
Functor
[
F
,
DATA
,
CLASS
,
G
]
,
tal:
Talliable
[
G
,
CLASS
,
N
]
)
Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
val
C
:
TallyDistribution0
[
CLASS
,
N
]
val
Fs
:
List
[
TallyDistribution1
[
FEATURE
,
CLASS
,
N
]]
def
andThen
[
A
]
(
g: (
CLASS
) ⇒
A
)
: (
DATA
) ⇒
A
Definition Classes
Function1
Annotations
@unspecialized
()
def
apply
(
d:
DATA
)
:
CLASS
Definition Classes
NaiveBayesClassifier
→ Function1
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
val
classExtractor
: (
DATA
) ⇒
CLASS
val
classRandomVariable
:
Distribution
[
CLASS
,
N
]
val
classTally
:
Map
[
CLASS
,
N
]
def
classes
:
IndexedSeq
[
CLASS
]
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
compose
[
A
]
(
g: (
A
) ⇒
DATA
)
: (
A
) ⇒
CLASS
Definition Classes
Function1
Annotations
@unspecialized
()
val
data
:
F
val
emptyFeatureTally
:
Map
[(
CLASS
,
String
,
FEATURE
),
N
]
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
val
featureExtractor
: (
DATA
) ⇒
List
[
FEATURE
]
val
featureNames
:
List
[
String
]
val
featureRandomVariables
:
List
[
Distribution
[
FEATURE
,
N
]]
val
featureTally
:
Map
[(
CLASS
,
String
,
FEATURE
),
N
]
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
val
numFeatures
:
Int
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
tallyFor
(
featureRandomVariable:
Distribution
[
FEATURE
,
N
]
)
:
Map
[(
FEATURE
,
CLASS
),
N
]
def
toString
()
:
String
Definition Classes
Function1 → AnyRef → Any
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
Inherited from
Serializable
Inherited from
Serializable
Inherited from
Product
Inherited from
Equals
Inherited from (
DATA
) ⇒
CLASS
Inherited from
AnyRef
Inherited from
Any
Ungrouped