# MLPro

```import numpy as np

# Please do not change the below function name and parameters
def box_blur(image):
# print(sum(image))
image = np.asarray(image)
image =image.astype(np.float64)
# print(type(image))
# print("1")
h,w = len(image), len(image[0])
# print(h,w)
new_arr = np.zeros((h+2,w+2))
# print(new_arr)
# print("1")
for i in range(1,h+1):
new_arr[i][1:w+1] = image[i-1]
# print(new_arr)
# new_arr[1:h+1][1:w+1] = image
# print(new_arr)

for i in range(1,h+1):
for j in range(1,w+1):
image[i-1][j-1] = (sum(new_arr[i-1][j-1:j+2])+ sum(new_arr[i][j-1:j+2])+sum(new_arr[i+1][j-1:j+2]))/9
# print(image[i-1][j-1])
print(image)
return image```
```#!/usr/bin/python3

import numpy as np

# Please do not change the below function name and parameters
def transform(u1,u2):
z1 = np.sqrt(-2* np.log(u1)) * np.cos(2*np.pi*u2)
z2 = np.sqrt(-2* np.log(u1)) * np.sin(2*np.pi*u2)
return (z1,z2)
```
```def bubbleSort(values):
for i in range(len(values)):
for j in range(len(values)-1):
if values[j] > values[j+1]:
values[j] ,values[j+1] = values[j+1], values[j]
return values
```
```import re
# Please do not change the below function name and parameters
def count_word_frequency(sentence,token):
return re.split("\W" ,sentence.lower()).count(token.lower())```