   (drop (- iterations 10) (take iterations (iterate (partial calc-theta x y) [0 1]))))
 
 (defn gradient-descent
-  "Calculate gradient descent"
+  "Calculate gradient descent, returns intercept: theta-0 and slope: theta-1"
   [x y]
   (drop (dec iterations) (take iterations (iterate (partial calc-theta x y) [0 1]))))
 

       (gradient-descent-history x)
       (map (partial compute-mse x y))))


(ns mekena.linear-reg
  (:require [incanter.core :as incore]
            [incanter.io :as io]
            [incanter.charts :as charts]))

;; Stanford Machine Learning using Clojure and Incanter
;; machine learning hw1: linear regression
(incore/view (charts/scatter-plot
              :col0
              :col1
              :data (io/read-dataset "./resources/ex1data1.txt")
