Ejemplo n.º 1
0
    def interpret(self,
                  dataset_type: str,
                  checkpoint_dir: str,
                  flags: List[str] = None):
        # Set up command line arguments
        raw_args = self.create_raw_interpret_args(
            dataset_type=dataset_type,
            checkpoint_dir=checkpoint_dir,
            flags=flags)

        # Interpret
        with patch('sys.argv', raw_args):
            command_line = ' '.join(raw_args[1:])
            print(f'python interpret.py {command_line}')
            chemprop_interpret()
Ejemplo n.º 2
0
"""Uses MCTS to interpret a chemprop model."""

from chemprop.interpret import chemprop_interpret

if __name__ == '__main__':
    chemprop_interpret()