mirror of
https://github.com/helblazer811/ManimML.git
synced 2025-06-03 08:17:59 +08:00
Added ListGroup class for better management of a group of objects.
This commit is contained in:
@ -6,8 +6,9 @@ import numpy as np
|
||||
class TripletLayer(NeuralNetworkLayer):
|
||||
"""Shows triplet images"""
|
||||
|
||||
def __init__(self, anchor, positive, negative, stroke_width=5):
|
||||
super().__init__()
|
||||
def __init__(self, anchor, positive, negative, stroke_width=5,
|
||||
**kwargs):
|
||||
super().__init__(**kwargs)
|
||||
self.anchor = anchor
|
||||
self.positive = positive
|
||||
self.negative = negative
|
||||
|
Reference in New Issue
Block a user