aboutsummaryrefslogtreecommitdiff
path: root/src/train.py
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-01-22 18:05:06 +0100
committerCharles <sircharlesaze@gmail.com>2020-01-22 18:05:33 +0100
commit1e45848f0b84218dfbdb62e313b4c33791a98555 (patch)
tree727e277ef8c688801220eaa14d2b710126116c11 /src/train.py
parent79f3505b2611b0f6a210224d38d59002597379e6 (diff)
downloadft_linear_regression-1e45848f0b84218dfbdb62e313b4c33791a98555.tar.gz
ft_linear_regression-1e45848f0b84218dfbdb62e313b4c33791a98555.tar.bz2
ft_linear_regression-1e45848f0b84218dfbdb62e313b4c33791a98555.zip
Moved notebook to notebook/, Added predict.py and train.py template
Diffstat (limited to 'src/train.py')
-rw-r--r--src/train.py32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/train.py b/src/train.py
new file mode 100644
index 0000000..a31d032
--- /dev/null
+++ b/src/train.py
@@ -0,0 +1,32 @@
+class Model:
+ def __init__(self, filename='../data.csv'):
+ self.datafile = filename
+
+ def train(self):
+ pass
+
+ def partial_theta1(self):
+ pass
+
+ def partial_theta0(self):
+ pass
+
+ def gradient_descent(self):
+ pass
+
+ def read_data(self):
+ pass
+
+ def normalize_data(self):
+ pass
+
+ def write_theta(self):
+ pass
+
+
+if __name__ == "__main__":
+ m = Model()
+ m.read_data()
+ m.normalize_data()
+ m.train()
+ m.write_theta()