axle
.
ml
LogisticRegression
Related Doc:
package ml
case class
LogisticRegression
[
D
,
M
]
(
examples:
List
[
D
]
,
numFeatures:
Int
,
featureExtractor: (
D
) ⇒
List
[
Double
]
,
objectiveExtractor: (
D
) ⇒
Boolean
,
α:
Double
=
0.1
,
numIterations:
Int
=
100
)
(
implicit
la:
LinearAlgebra
[
M
,
Int
,
Int
,
Double
]
)
extends (
List
[
Double
]) ⇒
Double
with
Product
with
Serializable
Linear Supertypes
Serializable
,
Serializable
,
Product
,
Equals
, (
List
[
Double
]) ⇒
Double
,
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
LogisticRegression
Serializable
Serializable
Product
Equals
Function1
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
LogisticRegression
(
examples:
List
[
D
]
,
numFeatures:
Int
,
featureExtractor: (
D
) ⇒
List
[
Double
]
,
objectiveExtractor: (
D
) ⇒
Boolean
,
α:
Double
=
0.1
,
numIterations:
Int
=
100
)
(
implicit
la:
LinearAlgebra
[
M
,
Int
,
Int
,
Double
]
)
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
def
Jθ
(
X:
M
,
θ:
M
,
y:
M
)
:
Double
val
X
:
M
def
andThen
[
A
]
(
g: (
Double
) ⇒
A
)
: (
List
[
Double
]) ⇒
A
Definition Classes
Function1
Annotations
@unspecialized
()
def
apply
(
features:
List
[
Double
]
)
:
Double
Definition Classes
LogisticRegression
→ Function1
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
boolean2double
(
b:
Boolean
)
:
Double
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
compose
[
A
]
(
g: (
A
) ⇒
List
[
Double
]
)
: (
A
) ⇒
Double
Definition Classes
Function1
Annotations
@unspecialized
()
def
cost
(
xi:
M
,
θ:
M
,
yi:
Double
)
:
Double
def
dθ
(
X:
M
,
y:
M
,
θ:
M
)
:
M
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
val
examples
:
List
[
D
]
val
featureExtractor
: (
D
) ⇒
List
[
Double
]
val
featureNormalizer
:
LinearFeatureNormalizer
[
M
]
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
val
finalθ
:
M
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
gradientDescent
(
X:
M
,
y:
M
,
α:
Double
,
iterations:
Int
)
:
M
Gradient descent's objective: minimize (over θ) the value of Jθ
def
h
(
xi:
M
,
θ:
M
)
:
Double
val
inputX
:
M
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
implicit
val
module
:
Module
[
M
,
Double
]
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
val
numIterations
:
Int
val
objectiveExtractor
: (
D
) ⇒
Boolean
implicit
val
ring
:
Ring
[
M
]
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
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
(
...
)
val
y
:
M
val
α
:
Double
Inherited from
Serializable
Inherited from
Serializable
Inherited from
Product
Inherited from
Equals
Inherited from (
List
[
Double
]) ⇒
Double
Inherited from
AnyRef
Inherited from
Any
Ungrouped