Collect dataset of CSGO The dataset contains ADR vs Rating of a Player :return : dataset obtained from the link, as matrix
()
| 14 | |
| 15 | |
| 16 | def 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 | |
| 34 | def run_steep_gradient_descent(data_x, data_y, |