![]() |
.. (לתיקייה המכילה) | |
In part one, what should be the total size of the training data after using data augmentation? | |
number_of_batches * mini_batch_size images for every call for create_batches |
In part one, in the HW assignment, it said the Worker's init arguments are jobs, result and anything else that we decide to add, but in the provided file, preprocessor.py, there are two more arguments. What should we do about them? | |
You can remove training_data and batch_size, they are not necessary (or keep them if you want to). |
In part 3, the link to further explanations doesn't work for me. Can you send it to me? | |
http://setosa.io/ev/image-kernels/ |
I implemented part one of the HW without overriding the function fit. Is that alright? | |
No. You should not create the workers within create_batches, but before calling the super fit function. |
In part 1, what is the range for angle, tilt, dx and dy, and steps? | |
You can assume the following: angle is between 45 and -45 (including the edges), tilt is between 1 and -1 (including the edges), dx, dy are between 28 and -28 (not including the edges), steps is at least 2. |
In part 1, x+y*tilt is a float what should I do? | |
round it (using the python function for it) |
In part 3, I compared my implementation's output to the numba function and there is a slight difference (under 1-e9) between all values. Is that alright? | |
Yes. Comparing floats isn't exact. And you should use math.isclose with rel_tol=1e-9 to compare instead. |
multiprocessing.cpu_count() always returns 64. How do I get the number of CPUs in use of the program? | |
You may use the following code to get the correct number of CPUs in use when running your program on the course's server: import re m = re.search(r'(?m)^Cpus_allowed:\s*(.*)$', open('/proc/self/status').read()) num_cpu = bin(int(m.group(1).replace(',', ''), 16)).count('1') |
In part 1, what is the shape of the input and output image in the functions shift, skew,step_func and rotate? | |
The input and output should be an numpy array of size 784. |