{"metadata":{"kernelspec":{"language":"python","display_name":"Python 3","name":"python3"},"language_info":{"pygments_lexer":"ipython3","nbconvert_exporter":"python","version":"3.6.4","file_extension":".py","codemirror_mode":{"name":"ipython","version":3},"name":"python","mimetype":"text/x-python"}},"nbformat_minor":4,"nbformat":4,"cells":[{"cell_type":"code","source":"MODEL_FOLDER = '/kaggle/input/ai4code/pytorch/deberta-v3-large/4' \n!ls $MODEL_FOLDER ","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2023-06-22T04:02:21.584968Z","iopub.execute_input":"2023-06-22T04:02:21.585382Z","iopub.status.idle":"2023-06-22T04:02:23.060642Z","shell.execute_reply.started":"2023-06-22T04:02:21.585339Z","shell.execute_reply":"2023-06-22T04:02:23.059129Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"DATASET_FOLDER = '/kaggle/input/AI4Code/test' # or any other folder you want to predict\n!ls $DATASET_FOLDER ","metadata":{"execution":{"iopub.status.busy":"2023-06-22T04:02:28.919356Z","iopub.execute_input":"2023-06-22T04:02:28.919760Z","iopub.status.idle":"2023-06-22T04:02:30.149314Z","shell.execute_reply.started":"2023-06-22T04:02:28.919726Z","shell.execute_reply":"2023-06-22T04:02:30.147986Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import sys\nsys.path.append(MODEL_FOLDER)\nfrom predict import get_predictions, get_embedding","metadata":{"execution":{"iopub.status.busy":"2023-06-22T04:02:30.461119Z","iopub.execute_input":"2023-06-22T04:02:30.461586Z","iopub.status.idle":"2023-06-22T04:02:46.033740Z","shell.execute_reply.started":"2023-06-22T04:02:30.461544Z","shell.execute_reply":"2023-06-22T04:02:46.032646Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"predictions_df = get_predictions(DATASET_FOLDER)\npredictions_df","metadata":{"execution":{"iopub.status.busy":"2023-06-22T04:02:46.036010Z","iopub.execute_input":"2023-06-22T04:02:46.036428Z","iopub.status.idle":"2023-06-22T04:03:26.325706Z","shell.execute_reply.started":"2023-06-22T04:02:46.036390Z","shell.execute_reply":"2023-06-22T04:03:26.324227Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"predictions_df = get_embedding(DATASET_FOLDER)\npredictions_df","metadata":{},"execution_count":null,"outputs":[]}]}