Used Black to reformat the code in the repository.

This commit is contained in:
Alec Helbling
2023-01-01 23:24:59 -05:00
parent 334662e8c8
commit 3d6e8072e1
71 changed files with 1701 additions and 1135 deletions

View File

@ -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)