Skip to content

Commit 0b0c6c1

Browse files
committed
Adding ref to machine learning coursera class
1 parent 503e3e0 commit 0b0c6c1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

01-Simple-Linear-Regression/linreg.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
x <- read.table("ex2x.dat")
2-
y <- read.table("ex2y.dat")
1+
x <- read.table("data/ex2x.dat")
2+
y <- read.table("data/ex2y.dat")
33

44
ft <- lm(y[,1]~x[,1])
55
ft

01-Simple-Linear-Regression/linreg.gradient.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import numpy as np
44

5+
# Implementation based on Ex. 1 in https://www.coursera.org/course/ml
56
def gradDescent(x, y, theta, alpha, m, nIter):
67
loss = 0
78
for i in range(0, nIter):

0 commit comments

Comments
 (0)