Home | Trees | Indices | Help |
---|
|
object --+ | BaseStartVector --+ | ZerosStartVector
A start vector of zeros. Use with care! Be aware that using this in algorithms that are not aware may result in division by zero since the norm of this start vector is 0. Examples -------- >>> from parsimony.utils.start_vectors import ZerosStartVector >>> start_vector = ZerosStartVector() >>> zeros = start_vector.get_vector(3) >>> print zeros [[ 0.] [ 0.] [ 0.]]
|
|||
Inherited from |
|
|||
|
|||
|
|||
Inherited from |
|
|||
__abstractmethods__ =
|
|||
Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Return vector of zeros of chosen shape. Parameters ---------- size : Positive integer. Size of the vector to generate. The shape of the output is (size, 1). Examples -------- >>> from parsimony.utils.start_vectors import ZerosStartVector >>> start_vector = ZerosStartVector() >>> zeros = start_vector.get_vector(3) >>> print zeros [[ 0.] [ 0.] [ 0.]]
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Apr 6 23:52:11 2015 | http://epydoc.sourceforge.net |