Skip to content

Instantly share code, notes, and snippets.

View AdeetyaKulkarni's full-sized avatar
🎯
Focusing

Adeetya Kulkarni AdeetyaKulkarni

🎯
Focusing
View GitHub Profile
@AdeetyaKulkarni
AdeetyaKulkarni / Main.java
Created March 13, 2019 20:28
Singly_LinkedList created by AdeetyaKulkarni - https://repl.it/@AdeetyaKulkarni/SinglyLinkedList
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);
@AdeetyaKulkarni
AdeetyaKulkarni / main.py
Created December 20, 2018 22:33
Linear regression in 1 var created by AdeetyaKulkarni - https://repl.it/@AdeetyaKulkarni/Linear-regression-in-1-var
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
@AdeetyaKulkarni
AdeetyaKulkarni / main.py
Created December 20, 2018 22:32
Linear regression in 1 var created by AdeetyaKulkarni - https://repl.it/@AdeetyaKulkarni/Linear-regression-in-1-var
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