Skip to content

Commit

Permalink
Fixed file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
gkwt committed Aug 11, 2022
1 parent ee3d602 commit f867fe8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions models_jupyter/hill-climbing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
"metadata": {},
"outputs": [],
"source": [
"%%sh\n",
"git clone https://github.com/gkwt/hill-climbing-lstm.git\n",
"cd hill-climbing-lstm"
"!git clone https://github.com/gkwt/hill-climbing-lstm.git"
]
},
{
Expand All @@ -34,7 +32,9 @@
"outputs": [],
"source": [
"import sys, os\n",
"sys.path.append('../..')\n",
"ROOT_DIR = '..'\n",
"sys.path.append(ROOT_DIR)\n",
"sys.path.append('hill-climbing-lstm')\n",
"\n",
"from tartarus import pce\n",
"\n",
Expand Down Expand Up @@ -87,12 +87,12 @@
"outputs": [],
"source": [
"# define parameters\n",
"data_path = '../../datasets/hce.csv'\n",
"data_path = os.path.join(ROOT_DIR, 'datasets/hce.csv')\n",
"string_type = 'selfies' # 'smiles'\n",
"num_workers = 6\n",
"\n",
"# get the data\n",
"smi_list, sfs_list = utils.get_lists(data_path, sep=',', header=1, smiles_name='smiles')\n",
"smi_list, sfs_list = utils.get_lists(data_path, sep=',', header='infer', smiles_name='smiles')\n",
"if string_type == 'selfies':\n",
" str_list = sfs_list\n",
" dm = SELFIESDataModule(str_list, batch_size = 128, num_workers = num_workers)\n",
Expand Down
3 changes: 1 addition & 2 deletions models_jupyter/janus.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
"metadata": {},
"outputs": [],
"source": [
"%%sh\n",
"pip install janus-ga"
"!pip install janus-ga"
]
},
{
Expand Down
13 changes: 7 additions & 6 deletions models_jupyter/reinvent.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
"metadata": {},
"outputs": [],
"source": [
"%%sh\n",
"git clone https://github.com/gkwt/reinvent-benchmarking.git\n",
"cd reinvent-benchmarking"
"!git clone https://github.com/gkwt/reinvent-benchmarking.git"
]
},
{
Expand All @@ -41,7 +39,10 @@
"outputs": [],
"source": [
"import sys, os\n",
"sys.path.append('../..')\n",
"ROOT_DIR = '..'\n",
"sys.path.append(ROOT_DIR)\n",
"sys.path.append('reinvent-benchmarking')\n",
"\n",
"\n",
"from tartarus import pce\n",
"\n",
Expand Down Expand Up @@ -85,10 +86,10 @@
"outputs": [],
"source": [
"\n",
"data_path = '../../datasets'\n",
"data_path = os.path.join(ROOT_DIR, 'datasets')\n",
"filename = 'hce.csv'\n",
"sep = ','\n",
"header = 1\n",
"header = 'infer'\n",
"smile_name = 'smiles'\n",
"\n",
"# dataset load\n",
Expand Down

0 comments on commit f867fe8

Please sign in to comment.