Skip to content

Commit c251491

Browse files
committed
update docs
1 parent 84761f3 commit c251491

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

tensorlayer/cost.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def dice_coe(output, target, loss_type='jaccard', epsilon=1e-10):
139139
140140
Examples
141141
---------
142-
>>> outputs = tl.act.pixel_wise_softmax(network.outputs)
142+
>>> outputs = tf.nn.sigmoid(network.outputs)
143143
>>> dice_loss = 1 - tl.cost.dice_coe(outputs, y_)
144144
145145
References
@@ -182,11 +182,6 @@ def dice_hard_coe(output, target, threshold=0.5, epsilon=1e-10):
182182
epsilon : float
183183
An small value be added to the numerator and denominator.
184184
185-
Examples
186-
---------
187-
>>> outputs = pixel_wise_softmax(network.outputs)
188-
>>> dice_loss = 1 - dice_coe(outputs, y_, epsilon=1e-5)
189-
190185
References
191186
-----------
192187
- `Wiki-Dice <https://en.wikipedia.org/wiki/Sørensen–Dice_coefficient>`_
@@ -224,8 +219,8 @@ def iou_coe(output, target, threshold=0.5, epsilon=1e-10):
224219
225220
Examples
226221
---------
227-
>>> outputs = tl.act.pixel_wise_softmax(network.outputs)
228-
>>> iou = tl.cost.iou_coe(outputs[:,:,:,0], y_[:,:,:,0])
222+
>>> outputs = tf.nn.sigmoid(network.outputs)
223+
>>> iou = tl.cost.iou_coe(outputs, y_)
229224
230225
Notes
231226
------

0 commit comments

Comments
 (0)