:param data_set: test data or train data :param example_no: example whose output is to be fetched :return: output for that example
(example_no, data_set)
| 39 | |
| 40 | |
| 41 | def output(example_no, data_set): |
| 42 | """ |
| 43 | :param data_set: test data or train data |
| 44 | :param example_no: example whose output is to be fetched |
| 45 | :return: output for that example |
| 46 | """ |
| 47 | if data_set == 'train': |
| 48 | return train_data[example_no][1] |
| 49 | elif data_set == 'test': |
| 50 | return test_data[example_no][1] |
| 51 | |
| 52 | |
| 53 | def calculate_hypothesis_value(example_no, data_set): |
no outgoing calls