|
54 | 54 | "import networkx as nx\n",
|
55 | 55 | "import pandas as pd\n",
|
56 | 56 | "\n",
|
57 |
| - "from math import sqrt" |
| 57 | + "from math import sqrt\n", |
| 58 | + "from pathlib import Path" |
58 | 59 | ]
|
59 | 60 | },
|
60 | 61 | {
|
|
71 | 72 | "outputs": [],
|
72 | 73 | "source": [
|
73 | 74 | "from git_commit_graph_ext.commit_graph import _commit_graph_name, commit_graph\n",
|
74 |
| - "from git_commit_graph_ext.checkpoint import compute_cached_graph, compute_cached_reachability_labels" |
| 75 | + "from git_commit_graph_ext.checkpoint import compute_cached_graph, compute_cached_reachability_labels, save_df_to_file" |
75 | 76 | ]
|
76 | 77 | },
|
77 | 78 | {
|
|
1720 | 1721 | "- exact tree intervals: false negatives 3298 out of 4515 positive queries (73.0454 %)"
|
1721 | 1722 | ]
|
1722 | 1723 | },
|
| 1724 | + { |
| 1725 | + "cell_type": "markdown", |
| 1726 | + "metadata": {}, |
| 1727 | + "source": [ |
| 1728 | + "## Append results of evaluation to a file (TODO)" |
| 1729 | + ] |
| 1730 | + }, |
| 1731 | + { |
| 1732 | + "cell_type": "code", |
| 1733 | + "execution_count": null, |
| 1734 | + "metadata": {}, |
| 1735 | + "outputs": [ |
| 1736 | + { |
| 1737 | + "name": "stdout", |
| 1738 | + "output_type": "stream", |
| 1739 | + "text": [ |
| 1740 | + "saving reachability analysis for git-commit_graph to \"datasets/git-commit_graph-df_reachability_sample.csv.gz\"\n" |
| 1741 | + ] |
| 1742 | + } |
| 1743 | + ], |
| 1744 | + "source": [ |
| 1745 | + "df_filename = 'datasets/' + graph_name + '-df_reachability_sample.csv.gz'\n", |
| 1746 | + "if Path(df_filename).exists():\n", |
| 1747 | + " print('appending not implemented yet !!!')\n", |
| 1748 | + "else:\n", |
| 1749 | + " print('saving reachability analysis for {} to \"{}\"'.format(graph_name, df_filename))\n", |
| 1750 | + " save_df_to_file(conn_sample_df, df_filename)" |
| 1751 | + ] |
| 1752 | + }, |
1723 | 1753 | {
|
1724 | 1754 | "cell_type": "markdown",
|
1725 | 1755 | "metadata": {},
|
|
0 commit comments