NN Part 1 published

This commit is contained in:
Grant Sanderson
2017-10-05 10:07:28 -07:00
parent 6fac1a578c
commit 5c1a8f9a32
4 changed files with 544 additions and 42 deletions

View File

@ -117,9 +117,12 @@ class Mobject(object):
def deepcopy(self):
return copy.deepcopy(self)
def generate_target(self):
def generate_target(self, use_deepcopy = False):
self.target = None #Prevent exponential explosion
self.target = self.copy()
if use_deepcopy:
self.target = self.deepcopy()
else:
self.target = self.copy()
return self.target
#### Transforming operations ######