axle
.
ml
LinearRegression
Related Doc:
package ml
case class
LinearRegression
[
D
,
M
]
(
examples:
Seq
[
D
]
,
numFeatures:
Int
,
featureExtractor: (
D
) ⇒
Seq
[
Double
]
,
objectiveExtractor: (
D
) ⇒
Double
,
α:
Double
=
0.1
,
iterations:
Int
=
100
)
(
implicit
la:
LinearAlgebra
[
M
,
Int
,
Int
,
Double
]
)
extends (
D
) ⇒
Double
with
Product
with
Serializable
Linear Supertypes
Serializable
,
Serializable
,
Product
,
Equals
, (
D
) ⇒
Double
,
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
LinearRegression
Serializable
Serializable
Product
Equals
Function1
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
new
LinearRegression
(
examples:
Seq
[
D
]
,
numFeatures:
Int
,
featureExtractor: (
D
) ⇒
Seq
[
Double
]
,
objectiveExtractor: (
D
) ⇒
Double
,
α:
Double
=
0.1
,
iterations:
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
val
X
:
M
implicit
val
additive
:
AdditiveCSemigroup
[
M
]
def
andThen
[
A
]
(
g: (
Double
) ⇒
A
)
: (
D
) ⇒
A
Definition Classes
Function1
Annotations
@unspecialized
()
def
apply
(
observation:
D
)
:
Double
Definition Classes
LinearRegression
→ Function1
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
compose
[
A
]
(
g: (
A
) ⇒
D
)
: (
A
) ⇒
Double
Definition Classes
Function1
Annotations
@unspecialized
()
def
cost
(
xi:
M
,
θ:
M
,
yi:
Double
)
:
Double
def
dTheta
(
X:
M
,
y:
M
,
θ:
M
)
:
M
def
dθ
(
X:
M
,
y:
M
,
θ:
M
)
:
M
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
errTree
:
TreeMap
[
Int
,
Double
]
val
errorLogReversed
:
List
[
Double
]
val
examples
:
Seq
[
D
]
val
featureExtractor
: (
D
) ⇒
Seq
[
Double
]
val
featureNormalizer
:
LinearFeatureNormalizer
[
M
]
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
gradientDescent
(
X:
M
,
y:
M
,
θ:
M
,
α:
Double
,
iterations:
Int
)
: (
M
,
List
[
Double
])
def
h
(
xi:
M
,
θ:
M
)
:
M
val
inputX
:
M
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
val
iterations
:
Int
implicit
val
mul
:
MultiplicativeSemigroup
[
M
]
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
normalEquation
(
X:
M
,
y:
M
)
:
M
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
val
numFeatures
:
Int
val
objectiveExtractor
: (
D
) ⇒
Double
val
objectiveNormalizer
:
LinearFeatureNormalizer
[
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
val
θ
:
M
val
θ0
:
M
Inherited from
Serializable
Inherited from
Serializable
Inherited from
Product
Inherited from
Equals
Inherited from (
D
) ⇒
Double
Inherited from
AnyRef
Inherited from
Any
Ungrouped