|
|
|
|
|
new(self)
Make a copy of WeightedCDataset with a copy of weights and a reference to input_data. |
source code
|
|
|
|
initialize_weights(self,
value=-1)
Initialize weights if 'weights' is None |
source code
|
|
|
|
set_weights(self,
value=1)
Set all weight values to 'value', initialize if necessary |
source code
|
|
|
|
get_twpc(self)
Get total weights per class. |
source code
|
|
|
|
|
|
|
get_tw(self)
Get total weights of all class(es). |
source code
|
|
|
|
normalize_weights(self)
Normalize the weights so that the sum of all weights is equal to 1. |
source code
|
|
|
|
scale_weights(self,
i,
thelambda)
Scale the weights of class i by thelambda. |
source code
|
|
|
|
|
|
|
concat(self,
j,
input_data,
weights=None)
Concatenate a few samples to class j. |
source code
|
|
|
|
|
|
|
_get_masks(self,
j)
Get the masks for instances of class j if approximation is needed. |
source code
|
|
|
|
|
|
|
|