:param data_set: train data or test data :param example_no: example number whose error has to be checked :return: error in example pointed by example number.
(example_no, data_set='train')
| 14 | |
| 15 | |
| 16 | def _error(example_no, data_set='train'): |
| 17 | """ |
| 18 | :param data_set: train data or test data |
| 19 | :param example_no: example number whose error has to be checked |
| 20 | :return: error in example pointed by example number. |
| 21 | """ |
| 22 | return calculate_hypothesis_value(example_no, data_set) - output(example_no, data_set) |
| 23 | |
| 24 | |
| 25 | def _hypothesis_value(data_input_tuple): |
no test coverage detected