Skip to content
This repository was archived by the owner on Aug 17, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions karthik_mahendra_day_2_mlmbc.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print 54321 * 12345
55 changes: 55 additions & 0 deletions precourse.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,61 @@

# Free example function definition
# This function passes one of the 11 tests contained inside of test.py. Write the rest, defined in README.md, here, and execute python test.py to test. Passing this precourse work will greatly increase your odds of acceptance into the program.
from scipy.misc import derivative
import numpy as np

def f(x):
return x**2

def f_2(x):
return x**3

def f_3(x):
return (x**3) + (5*x)

def d_f(x):
return derivative(f,x)

def d_f_2(x):
return round(derivative (f_2,x,dx=1e-3))


def d_f_3(x):
return round(derivative(f_3,x,dx=1e-3))


def vector_sum(x,y):
x = np.array(x)
y = np.array(y)
return x+y

def vector_less(x,y):
x = np.array(x)
y = np.array(y)
return x-y

def vector_magnitude(x):
return np.linalg.norm(x)

def vec5():
return np.array([1,1,1,1,1],dtype=int)

def vec3():
return np.array([0,0,0],dtype=int)

def vec2_1():
return np.array([1,0],dtype=int)

def vec2_2():
return np.array([0,1],dtype=int)

def matrix_multiply(vec,matrix):
return np.dot(vec, matrix)








11 changes: 11 additions & 0 deletions why.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Why do I want to learn ML?
* ML brings better career opportunities.
* Have good prospect of higher compensation.
* Applications in various domains,scope of ML is not narrow.
* Meet with other people working on interesting projects.
* Several job opportunities in ML. Demand>Supply at the moment.
* Opportunity for me to excericse my analytical skills which I don't in my current job.
* Opportunity to create something that others may use or find useful.
* Hopefully, help me escape wage slavery eventually.