This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
#Algorithm to predict the price of house of 50 acres using Linear regression model | |
def hypothesis(th0, th1, x): | |
hx = th0 + th1*(x) | |
return hx | |
def costfunction(m, hx, h_price): | |
t_cost = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
#Algorithm to predict the price of house of 50 acres using Linear regression model | |
def hypothesis(th0, th1, x): | |
hx = th0 + th1*(x) | |
return hx | |
def costfunction(m, hx, h_price): | |
t_cost = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Main { | |
public static void main(String[] args) { | |
LinkedList list = new LinkedList(); | |
list = list.pushfront(list , 0); | |
list = list.pushback(list, 1); | |
list = list.pushback(list, 3); | |
list = list.pushback(list, 4); | |
list = list.pushindex(list,2, 2); |