MCPcopy Index your code
hub / github.com/subbarayudu-j/TheAlgorithms-Python / collect_dataset

Function collect_dataset

machine_learning/linear_regression.py:16–31  ·  view source on GitHub ↗

Collect dataset of CSGO The dataset contains ADR vs Rating of a Player :return : dataset obtained from the link, as matrix

()

Source from the content-addressed store, hash-verified

14
15
16def collect_dataset():
17 """ Collect dataset of CSGO
18 The dataset contains ADR vs Rating of a Player
19 :return : dataset obtained from the link, as matrix
20 """
21 response = requests.get('https://raw.githubusercontent.com/yashLadha/' +
22 'The_Math_of_Intelligence/master/Week1/ADRvs' +
23 'Rating.csv')
24 lines = response.text.splitlines()
25 data = []
26 for item in lines:
27 item = item.split(',')
28 data.append(item)
29 data.pop(0) # This is for removing the labels from the list
30 dataset = np.matrix(data)
31 return dataset
32
33
34def run_steep_gradient_descent(data_x, data_y,

Callers 1

mainFunction · 0.85

Calls 3

splitMethod · 0.80
getMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected