Skip to content

Instantly share code, notes, and snippets.

@mmuratarat
Last active September 16, 2017 02:25
Show Gist options
  • Save mmuratarat/5d8182279e81a63e9f25c5fe509f98c2 to your computer and use it in GitHub Desktop.
Save mmuratarat/5d8182279e81a63e9f25c5fe509f98c2 to your computer and use it in GitHub Desktop.
#Veriyi okutma
housing <- read.csv("https://goo.gl/eYbv9F",
header = TRUE,
sep = "," )
#Fonksyonu calistirma
results <- GradientDescent( data = housing, alpha = 0.05,
iteration = 500, epsilon = 0.001)
#Analiz sonuclari
results$theta[nrow(results$theta),]
# theta0 area bedrooms
#501 340412.7 110630 -6648.375
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment