Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have made the following changes in the model
(1). Deleted all .dvc folders and files
(2) Update LICENSE file to
GNU
(3) Modify src/service.py from
predict
torun
api and changepython {0}/main.py {0}/MODEL_DIR {1} {2}
tobash {0}/run.sh {0} {1} {2}
(4) Move
MODEL_DIR
that contains model file to checkpoints folder(5) Move
molecule_generation
folder andmain.py
to code folder(6) Add
run.sh
in framework folder(7) Initially the number of molecules it is showing in the output is 99 due to this
So, i changed it to
df['smiles'].iloc[0:100].to_csv(output_file, sep='\t', index=False)
in main.py so it returns 100 samples ofgenerated molecules in the output file
(8) I have modified main.py as it is taking arguments directly as an input using
argument parser
and not usingrun.sh
before, it is usingdef get_argparser() -> argparse.ArgumentParser:
anddef run_from_args(args: argparse.Namespace) -> None:
functions to take arguments as an input and then parse it.To omit arguments and the parser in the code and provide
model_dir
as an absolute path andinput_file
&output_file
as an argument directly in the script, i modified the main() function and remove the argument parser.In this modified version, the argument parser has been removed i.e. def
get_argparser()
anddef run_from_args(args: argparse.Namespace)
from main.py and simply replaced byThanks