googleapis / googleapis/python-aiplatform
Inconsistent file type check in google/cloud/aiplatform/utils/gcs_utils.py and vertexai/evaluation/utils.py
- Ngôn ngữ chính
- Python
- Star
- 905
- Fork
- 465
- Merge trung bình
- 1 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 44
Mô tả
Prior to the function call [_upload_pandas_df_to_gcs](https://github.com/googleapis/python-aiplatform/blob/86fc215cb854c006a0836a6e8f98e6d40c191fee/vertexai/evaluation/utils.py#L265) in the Evaluation module, there is a [validation logic](https://github.com/googleapis/python-aiplatform/blob/86fc215cb854c006a0836a6e8f98e6d40c191fee/vertexai/evaluation/utils.py#L263) to check whether the file type is `csv`. However, within the [_upload_pandas_df_to_gcs](https://github.com/googleapis/python-aiplatform/blob/86fc215cb854c006a0836a6e8f98e6d40c191fee/google/cloud/aiplatform/utils/gcs_utils.py#L351) function implementation, `jsonl` is the only supported file type.
At least one of the types (CSV or JSONL) should be supported across both implementations.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.