Dear MaiAShaaban, I cannot find your submission, when did you submitted it?
Dear wan77pc, I see the following Exception in your submission:
2024-01-05T02:46:40.774000+00:00 Traceback (most recent call last):
2024-01-05T02:46:40.774000+00:00 File "/usr/local/lib/python3.10/dist-packages/sklearn/utils/encode.py", line 224, in _encode
2024-01-05T02:46:40.774000+00:00 return _map_to_integer(values, uniques)
2024-01-05T02:46:40.774000+00:00 File "/usr/local/lib/python3.10/dist-packages/sklearn/utils/_encode.py", line 164, in _map_to_integer
2024-01-05T02:46:40.774000+00:00 return np.array([table[v] for v in values])
2024-01-05T02:46:40.774000+00:00 File "/usr/local/lib/python3.10/dist-packages/sklearn/utils/_encode.py", line 164, in
2024-01-05T02:46:40.774000+00:00 return np.array([table[v] for v in values])
2024-01-05T02:46:40.774000+00:00 File "/usr/local/lib/python3.10/dist-packages/sklearn/utils/_encode.py", line 158, in __missing__
2024-01-05T02:46:40.774000+00:00 raise KeyError(key)
2024-01-05T02:46:40.774000+00:00 KeyError: None
2024-01-05T02:46:40.774000+00:00
2024-01-05T02:46:40.774000+00:00 During handling of the above exception, another exception occurred:
2024-01-05T02:46:40.774000+00:00
2024-01-05T02:46:40.774000+00:00 Traceback (most recent call last):
2024-01-05T02:46:40.774000+00:00 File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
2024-01-05T02:46:40.774000+00:00 return _run_code(code, main_globals, None,
2024-01-05T02:46:40.774000+00:00 File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
2024-01-05T02:46:40.774000+00:00 exec(code, run_globals)
2024-01-05T02:46:40.774000+00:00 File "/opt/app/process.py", line 114, in
2024-01-05T02:46:40.774000+00:00 Lungcancerosprediction().predict()
2024-01-05T02:46:40.774000+00:00 File "/opt/app/process.py", line 91, in predict
2024-01-05T02:46:40.774000+00:00 clinical_info[i] = le.transform([clinical_info[i]])[0]
2024-01-05T02:46:40.774000+00:00 File "/usr/local/lib/python3.10/dist-packages/sklearn/utils/_set_output.py", line 142, in wrapped
2024-01-05T02:46:40.774000+00:00 data_to_wrap = f(self, X, args, *kwargs)
2024-01-05T02:46:40.774000+00:00 File "/usr/local/lib/python3.10/dist-packages/sklearn/preprocessing/_label.py", line 139, in transform
2024-01-05T02:46:40.774000+00:00 return _encode(y, uniques=self.classes)
2024-01-05T02:46:40.774000+00:00 File "/usr/local/lib/python3.10/dist-packages/sklearn/utils/_encode.py", line 226, in _encode
2024-01-05T02:46:40.774000+00:00 raise ValueError(f"y contains previously unseen labels: {str(e)}")
2024-01-05T02:46:40.774000+00:00 ValueError: y contains previously unseen labels: None
Hope it's useful. Bests,
Ana