nak
.
classify
.
LogisticClassifier
.
Trainer
ObjectiveFunction
class
ObjectiveFunction
extends
BatchDiffFunction
[
LFMatrix
[
L
,
TF
]]
Attributes
protected
Linear Supertypes
BatchDiffFunction
[
LFMatrix
[
L
,
TF
]], (
LFMatrix
[
L
,
TF
],
IndexedSeq
[
Int
]) ⇒
Double
,
DiffFunction
[
LFMatrix
[
L
,
TF
]],
StochasticDiffFunction
[
LFMatrix
[
L
,
TF
]], (
LFMatrix
[
L
,
TF
]) ⇒
Double
,
AnyRef
,
Any
Ordering
Alphabetic
By inheritance
Inherited
ObjectiveFunction
BatchDiffFunction
Function2
DiffFunction
StochasticDiffFunction
Function1
AnyRef
Any
Hide All
Show all
Learn more about member selection
Visibility
Public
All
Instance Constructors
new
ObjectiveFunction
(
data:
IndexedSeq
[
Example
[
L
,
TF
]]
,
labelIndex:
Index
[
L
]
)
Value Members
final
def
!=
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
Any
def
andThen
[
A
]
(
g: (
Double
) ⇒
A
)
: (
LFMatrix
[
L
,
TF
]) ⇒
A
Definition Classes
Function1
Annotations
@unspecialized
()
def
apply
(
x:
LFMatrix
[
L
,
TF
]
,
batch:
IndexedSeq
[
Int
]
)
:
Double
Definition Classes
BatchDiffFunction → Function2
final
def
apply
(
x:
LFMatrix
[
L
,
TF
]
)
:
Double
Definition Classes
StochasticDiffFunction → Function1
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
calculate
(
weights:
LFMatrix
[
L
,
TF
]
,
range:
IndexedSeq
[
Int
]
)
: (
Double
,
LFMatrix
[
L
,
TF
])
Definition Classes
ObjectiveFunction
→ BatchDiffFunction
def
calculate
(
x:
LFMatrix
[
L
,
TF
]
)
: (
Double
,
LFMatrix
[
L
,
TF
])
Definition Classes
BatchDiffFunction → StochasticDiffFunction
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
compose
[
A
]
(
g: (
A
) ⇒
LFMatrix
[
L
,
TF
]
)
: (
A
) ⇒
Double
Definition Classes
Function1
Annotations
@unspecialized
()
def
curried
: (
LFMatrix
[
L
,
TF
]) ⇒ (
IndexedSeq
[
Int
]) ⇒
Double
Definition Classes
Function2
Annotations
@unspecialized
()
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
val
fullRange
:
Range
Definition Classes
ObjectiveFunction
→ BatchDiffFunction
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
gradientAt
(
x:
LFMatrix
[
L
,
TF
]
)
:
LFMatrix
[
L
,
TF
]
Definition Classes
BatchDiffFunction → StochasticDiffFunction
def
gradientAt
(
x:
LFMatrix
[
L
,
TF
]
,
batch:
IndexedSeq
[
Int
]
)
:
LFMatrix
[
L
,
TF
]
Definition Classes
BatchDiffFunction
def
groupItems
(
groupSize:
Int
)
:
BatchDiffFunction
[
LFMatrix
[
L
,
TF
]]
Definition Classes
BatchDiffFunction
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
logScores
(
weights:
LFMatrix
[
L
,
TF
]
,
datum:
TF
)
:
DenseVector
[
Double
]
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
throughLens
[
U
]
(
implicit
l:
Isomorphism
[
LFMatrix
[
L
,
TF
],
U
]
)
:
DiffFunction
[
U
]
Definition Classes
StochasticDiffFunction
def
toString
()
:
String
Definition Classes
Function2 → AnyRef → Any
def
tupled
: ((
LFMatrix
[
L
,
TF
],
IndexedSeq
[
Int
])) ⇒
Double
Definition Classes
Function2
Annotations
@unspecialized
()
def
valueAt
(
x:
LFMatrix
[
L
,
TF
]
)
:
Double
Definition Classes
BatchDiffFunction → StochasticDiffFunction
def
valueAt
(
x:
LFMatrix
[
L
,
TF
]
,
batch:
IndexedSeq
[
Int
]
)
:
Double
Definition Classes
BatchDiffFunction
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
(
...
)
def
withRandomBatches
(
size:
Int
)
:
StochasticDiffFunction
[
LFMatrix
[
L
,
TF
]]
Definition Classes
BatchDiffFunction
def
withScanningBatches
(
size:
Int
)
:
StochasticDiffFunction
[
LFMatrix
[
L
,
TF
]]
Definition Classes
BatchDiffFunction
Inherited from
BatchDiffFunction
[
LFMatrix
[
L
,
TF
]]
Inherited from (
LFMatrix
[
L
,
TF
],
IndexedSeq
[
Int
]) ⇒
Double
Inherited from
DiffFunction
[
LFMatrix
[
L
,
TF
]]
Inherited from
StochasticDiffFunction
[
LFMatrix
[
L
,
TF
]]
Inherited from (
LFMatrix
[
L
,
TF
]) ⇒
Double
Inherited from
AnyRef
Inherited from
Any
Ungrouped