|
__init__(self,
weights,
threshold,
relation=None)
Constructs a hyperplane whose slope is determined by the given
weights (in dictionary or KeyedVector form) and whose intercept is defined by
threshold (i.e., weights*x == threshold ) |
source code
|
|
|
|
bool
|
test(self,
value)
Returns:
True iff the passed in value (in dictionary form) lies
above this hyperplane (self.weights*value >
self.threshold ) |
source code
|
|
bool→float
|
testIntervals(self,
intervals)
Computes the 'probability' that a point in this region will satisfy
this plane. |
source code
|
|
boolean
|
always(self,
negative=True,
probability=False)
Returns:
True iff this plane eliminates none of the state space
(i.e., for all q, w*q > theta). |
source code
|
|
bool
|
isZero(self)
Returns:
True iff this plane has zero weights and a zero
threshold |
source code
|
|
Key[]
|
keys(self)
Returns:
the keys used by the weight vector of this plane |
source code
|
|
|
|
|
|
|
|
|
|
str
|
|
|
|
|
|
|
|
str
|
simpleText(self,
numbers=True,
all=False)
Returns:
a user-friendly string representation of this hyperplane |
source code
|
|
Inherited from matrices.Hyperplane :
__copy__ ,
__deepcopy__ ,
__getitem__ ,
__gt__ ,
__lt__ ,
__setitem__ ,
__str__ ,
__xml__ ,
getConstant ,
getWeights ,
inverse ,
parse
|