{"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":"! pip install -q seaborn\nimport numpy as np # linear algebra\nimport pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)\nimport matplotlib.pylab as plt\nimport matplotlib\ndf = pd.read_csv('../input/ai4c-lb-analysis/AI4Code-privateleaderboard.csv')\ndf = df.reset_index()\ndf = df.rename(columns={'index': 'rank'})\ndf.head(5)","metadata":{"_uuid":"8f2839f25d086af736a60e9eeb907d3b93b6e0e5","_cell_guid":"b1076dfc-b9ad-4769-8c92-a6c4dae69d19","execution":{"iopub.status.busy":"2022-08-12T02:13:37.075343Z","iopub.execute_input":"2022-08-12T02:13:37.075754Z","iopub.status.idle":"2022-08-12T02:13:37.098807Z","shell.execute_reply.started":"2022-08-12T02:13:37.075721Z","shell.execute_reply":"2022-08-12T02:13:37.097466Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.figure(figsize=(8,8))\ndf.plot(x='rank', y='Score', ax=plt.gca())\nplt.yticks(np.arange(0, 1, 0.05))\nplt.xticks(np.arange(0, len(df), 100))\nplt.ylim([0,1])\nplt.grid(True)\nplt.title('Score vs Rank')","metadata":{"execution":{"iopub.status.busy":"2022-08-12T02:17:17.341522Z","iopub.execute_input":"2022-08-12T02:17:17.341957Z","iopub.status.idle":"2022-08-12T02:17:17.587626Z","shell.execute_reply.started":"2022-08-12T02:17:17.341920Z","shell.execute_reply":"2022-08-12T02:17:17.586162Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"plt.figure(figsize=(8,8))\ndf.head(100).plot(x='rank', y='Score', ax=plt.gca())\nplt.yticks(np.arange(0, 1, 0.05))\nplt.xticks(np.arange(0, 100, 10))\nplt.ylim([0.8,1])\nplt.grid(True)\nplt.title('Score vs Rank (Top 100)')","metadata":{"execution":{"iopub.status.busy":"2022-08-12T02:32:56.539035Z","iopub.execute_input":"2022-08-12T02:32:56.540076Z","iopub.status.idle":"2022-08-12T02:32:56.797745Z","shell.execute_reply.started":"2022-08-12T02:32:56.540026Z","shell.execute_reply":"2022-08-12T02:32:56.796414Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import seaborn as sns\nplt.figure(figsize=(8,8))\nscores = df.Score[df.Score > 0.5]\nplt.xticks(np.arange(0, 1, 0.05))\nsns.histplot(scores, kde=True, bins=50, ax=plt.gca())\nplt.grid(True)\nplt.title('Score Histogram')","metadata":{"execution":{"iopub.status.busy":"2022-08-12T02:24:20.443121Z","iopub.execute_input":"2022-08-12T02:24:20.444394Z","iopub.status.idle":"2022-08-12T02:24:20.731228Z","shell.execute_reply.started":"2022-08-12T02:24:20.444348Z","shell.execute_reply":"2022-08-12T02:24:20.730184Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import seaborn as sns\nplt.figure(figsize=(8,8))\nscores = df.head(100).Score\nplt.xticks(np.arange(0.8, 1, 0.01))\nsns.histplot(scores, kde=True, bins=25, ax=plt.gca())\nplt.grid(True)\nplt.title('Score Histogram (Top 100)')","metadata":{"execution":{"iopub.status.busy":"2022-08-12T02:34:57.928833Z","iopub.execute_input":"2022-08-12T02:34:57.930117Z","iopub.status.idle":"2022-08-12T02:34:58.772706Z","shell.execute_reply.started":"2022-08-12T02:34:57.930059Z","shell.execute_reply":"2022-08-12T02:34:58.771440Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"import seaborn as sns\nplt.figure(figsize=(8,8))\nscores = df.Score[df.Score > 0.5]\nplt.xticks(np.arange(0, 1, 0.05))\nsns.histplot(scores, kde=True, bins=50, ax=plt.gca(), cumulative=True)\nplt.grid(True)\nplt.title('Score Cumulative Histogram')","metadata":{"execution":{"iopub.status.busy":"2022-08-12T02:27:58.357853Z","iopub.execute_input":"2022-08-12T02:27:58.358363Z","iopub.status.idle":"2022-08-12T02:27:58.683078Z","shell.execute_reply.started":"2022-08-12T02:27:58.358323Z","shell.execute_reply":"2022-08-12T02:27:58.681754Z"},"trusted":true},"execution_count":null,"outputs":[]},{"cell_type":"code","source":"","metadata":{},"execution_count":null,"outputs":[]}]}