cyberosa commited on
Commit
e22ac0a
·
1 Parent(s): 73f4a97

Adding garbage collector

Browse files
Files changed (1) hide show
  1. nbs/weekly_analysis.ipynb +16 -1
nbs/weekly_analysis.ipynb CHANGED
@@ -16,6 +16,7 @@
16
  "import pandas as pd\n",
17
  "import matplotlib.pyplot as plt\n",
18
  "import seaborn as sns\n",
 
19
  "sns.set_style(\"darkgrid\")"
20
  ]
21
  },
@@ -1591,6 +1592,20 @@
1591
  "prediction_url_cot_claude.head()"
1592
  ]
1593
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1594
  {
1595
  "cell_type": "markdown",
1596
  "metadata": {},
@@ -1605,7 +1620,7 @@
1605
  "outputs": [],
1606
  "source": [
1607
  "# only include non error requests\n",
1608
- "tools_non_error = tools_inc[tools_inc['error'] != True]\n",
1609
  "tools_non_error['currentAnswer'].replace('no', 'No', inplace=True)\n",
1610
  "tools_non_error['currentAnswer'].replace('yes', 'Yes', inplace=True)\n",
1611
  "tools_non_error = tools_non_error[tools_non_error['currentAnswer'].isin(['Yes', 'No'])]\n",
 
16
  "import pandas as pd\n",
17
  "import matplotlib.pyplot as plt\n",
18
  "import seaborn as sns\n",
19
+ "import gc\n",
20
  "sns.set_style(\"darkgrid\")"
21
  ]
22
  },
 
1592
  "prediction_url_cot_claude.head()"
1593
  ]
1594
  },
1595
+ {
1596
+ "cell_type": "code",
1597
+ "execution_count": null,
1598
+ "metadata": {},
1599
+ "outputs": [],
1600
+ "source": [
1601
+ "del tools\n",
1602
+ "del tools_inc\n",
1603
+ "del error\n",
1604
+ "del error_total\n",
1605
+ "\n",
1606
+ "gc.collect()"
1607
+ ]
1608
+ },
1609
  {
1610
  "cell_type": "markdown",
1611
  "metadata": {},
 
1620
  "outputs": [],
1621
  "source": [
1622
  "# only include non error requests\n",
1623
+ "tools_non_error = tools_inc[tools_inc['error'] != 1]\n",
1624
  "tools_non_error['currentAnswer'].replace('no', 'No', inplace=True)\n",
1625
  "tools_non_error['currentAnswer'].replace('yes', 'Yes', inplace=True)\n",
1626
  "tools_non_error = tools_non_error[tools_non_error['currentAnswer'].isin(['Yes', 'No'])]\n",