com
.
github
.
cloudml
.
zen
.
ml
.
regression
LogisticRegression
Related Docs:
object LogisticRegression
|
package regression
abstract
class
LogisticRegression
extends
Serializable
with
Logging
Linear Supertypes
Logging
,
Serializable
,
Serializable
,
AnyRef
,
Any
Known Subclasses
LogisticRegressionMIS
,
LogisticRegressionSGD
Ordering
Alphabetic
By inheritance
Inherited
LogisticRegression
Logging
Serializable
Serializable
AnyRef
Any
Hide All
Show all
Visibility
Public
All
Instance Constructors
new
LogisticRegression
(
input:
RDD
[(
VertexId
,
LabeledPoint
)]
,
stepSize:
Double
=
1e-4
,
regParam:
Double
=
0.0
,
useAdaGrad:
Boolean
=
false
,
storageLevel:
StorageLevel
=
StorageLevel.MEMORY_AND_DISK
)
new
LogisticRegression
(
dataSet:
Graph
[
VD
,
ED
]
,
stepSize:
Double
,
regParam:
Double
,
useAdaGrad:
Boolean
,
storageLevel:
StorageLevel
)
Abstract Value Members
abstract
def
backward
(
q:
VertexRDD
[
VD
]
,
iter:
Int
)
:
VertexRDD
[
Double
]
Attributes
protected
abstract
def
forward
(
iter:
Int
)
:
VertexRDD
[
VD
]
Attributes
protected
abstract
def
loss
(
q:
VertexRDD
[
VD
]
)
:
Double
Attributes
protected
Concrete 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
adaDelta
(
deltaSum:
VertexRDD
[
Array
[
Double
]]
,
gradient:
VertexRDD
[
Double
]
,
epsilon:
Double
,
rho:
Double
)
:
VertexRDD
[
Array
[
Double
]]
Attributes
protected
def
adaGrad
(
gradientSum:
VertexRDD
[
Double
]
,
gradient:
VertexRDD
[
Double
]
,
epsilon:
Double
,
rho:
Double
)
:
VertexRDD
[
Array
[
Double
]]
Attributes
protected
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
checkpointGradientSum
()
:
Unit
Attributes
protected
var
checkpointInterval
:
Int
Attributes
protected
def
checkpointVertices
()
:
Unit
Attributes
protected
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
var
dataSet
:
Graph
[
VD
,
ED
]
var
deltaSum
:
VertexRDD
[
Array
[
Double
]]
Attributes
protected
var
edges
:
EdgeRDDImpl
[
ED
,
VD
]
Attributes
protected
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
features
:
VertexRDD
[
VD
]
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
var
gradient
:
VertexRDD
[
Double
]
Attributes
protected
var
gradientSum
:
VertexRDD
[
Double
]
Attributes
protected
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
var
innerIter
:
Int
Attributes
protected
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
def
isTraceEnabled
()
:
Boolean
Attributes
protected
Definition Classes
Logging
def
log
:
Logger
Attributes
protected
Definition Classes
Logging
def
logDebug
(
msg: ⇒
String
,
throwable:
Throwable
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
logDebug
(
msg: ⇒
String
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
logError
(
msg: ⇒
String
,
throwable:
Throwable
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
logError
(
msg: ⇒
String
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
logInfo
(
msg: ⇒
String
,
throwable:
Throwable
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
logInfo
(
msg: ⇒
String
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
logName
:
String
Attributes
protected
Definition Classes
Logging
def
logTrace
(
msg: ⇒
String
,
throwable:
Throwable
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
logTrace
(
msg: ⇒
String
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
logWarning
(
msg: ⇒
String
,
throwable:
Throwable
)
:
Unit
Attributes
protected
Definition Classes
Logging
def
logWarning
(
msg: ⇒
String
)
:
Unit
Attributes
protected
Definition Classes
Logging
var
margin
:
VertexRDD
[
Double
]
Attributes
protected
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
:
Long
val
numSamples
:
Long
var
previousVertices
:
VertexRDD
[
VD
]
Attributes
protected
var
regParam
:
Double
def
run
(
iterations:
Int
)
:
Unit
def
samples
:
VertexRDD
[
VD
]
def
saveModel
()
:
LogisticRegressionModel
def
setAdaGrad
(
useAdaGrad:
Boolean
)
:
LogisticRegression
.this.type
def
setCheckpointInterval
(
interval:
Int
)
:
LogisticRegression
.this.type
def
setRegParam
(
regParam:
Double
)
:
LogisticRegression
.this.type
def
setStepSize
(
stepSize:
Double
)
:
LogisticRegression
.this.type
var
stepSize
:
Double
var
storageLevel
:
StorageLevel
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
thisIterStepSize
(
iter:
Int
)
:
Double
Attributes
protected
def
toString
()
:
String
Definition Classes
AnyRef → Any
def
unpersistVertices
()
:
Unit
Attributes
protected
def
updateDeltaSum
(
gradient:
VertexRDD
[
Double
]
,
iter:
Int
)
:
VertexRDD
[
Double
]
Attributes
protected
def
updateGradientSum
(
gradient:
VertexRDD
[
Double
]
,
iter:
Int
)
:
VertexRDD
[
Double
]
Attributes
protected
def
updateWeight
(
delta:
VertexRDD
[
Double
]
,
iter:
Int
,
thisIterStepSize:
Double
,
thisIterL1StepSize:
Double
)
:
VertexRDD
[
Double
]
Attributes
protected
var
useAdaGrad
:
Boolean
var
vertices
:
VertexRDD
[
VD
]
Attributes
protected
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
Logging
Inherited from
Serializable
Inherited from
Serializable
Inherited from
AnyRef
Inherited from
Any
Ungrouped