forked from yashkothari42/Machine-Learning-Tutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTask 1.txt
More file actions
15 lines (12 loc) · 640 Bytes
/
Task 1.txt
File metadata and controls
15 lines (12 loc) · 640 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Task 1:
1. Generate 500 random numbers and store them in a list.
2. Use a function to calculate Y = (k^-1) * Log(X). Take arbitrary value of k.
3. Store (X, Y) values in another list.
4. Plot (X, Y) values in a scatter plot.
Task 2:
1. Create two 10x1 arrays and fill up random values.
2. Find the dot product of the two arrays using numpy.
3. Use a loop to compute the dot product of the same vectors.
4. Calculate the time required for the computation of the dot product using the said methods. Which method is faster? (Use time library).
Submit by 27 May, 2018.
Push into https://github.com/itsyashkothari/Machine-Learning-Tutorial