mirror of
https://github.com/helblazer811/ManimML.git
synced 2025-06-28 18:03:13 +08:00
Used Black to reformat the code in the repository.
This commit is contained in:
@ -3,11 +3,11 @@ import random
|
||||
|
||||
from manim_ml.neural_network.layers.parent_layers import VGroupNeuralNetworkLayer
|
||||
|
||||
|
||||
class VectorLayer(VGroupNeuralNetworkLayer):
|
||||
"""Shows a vector"""
|
||||
|
||||
def __init__(self, num_values, value_func=lambda: random.uniform(0, 1),
|
||||
**kwargs):
|
||||
def __init__(self, num_values, value_func=lambda: random.uniform(0, 1), **kwargs):
|
||||
super().__init__(**kwargs)
|
||||
self.num_values = num_values
|
||||
self.value_func = value_func
|
||||
@ -30,8 +30,8 @@ class VectorLayer(VGroupNeuralNetworkLayer):
|
||||
|
||||
def make_forward_pass_animation(self, layer_args={}, **kwargs):
|
||||
return AnimationGroup()
|
||||
|
||||
|
||||
@override_animation(Create)
|
||||
def _create_override(self):
|
||||
"""Create animation"""
|
||||
return Write(self.vector_label)
|
||||
return Write(self.vector_label)
|
||||
|
Reference in New Issue
Block a user