alifthi commited on
Commit
71b6402
·
1 Parent(s): b65d1cb

HousePricePrediction: main file to use utils and HousePricePrediction files

Browse files
Files changed (1) hide show
  1. main.py +13 -0
main.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from HousePricePrediction import Model
2
+ from utils import utils
3
+ from tensorflow.keras.optimizers import Adam
4
+
5
+
6
+ model = Model()
7
+ txtPath = r'/home/alifathi/Documents/AI/Git/House price prediction/Data/HousesInfo.txt'
8
+ imgPath = r'/home/alifathi/Documents/AI/Git/House price prediction/Data/house_dataset'
9
+ util = utils(txtPath = txtPath,imagePath=imgPath)
10
+ const = util.const
11
+ model.compile(loss = 'mse',metrics = ['mse'],optim = Adam(learning_rate = 0.01))
12
+ Hist = model.train(1,512,[util.image[3],util.txtFeatur],util.label)
13
+ model.plotHistory(Hist)