Quick Start ============ Follow these steps to get started with OpenDDI: Step 1: Clone the Repository ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .. code-block:: bash git clone cd OpenDDI Step 2: Install Dependencies ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ General Dependencies ^^^^^^^^^^^^^^^^^^^^ You can install the general dependencies: .. code-block:: bash conda env create -f openddi.yml pip install torch-scatter==2.0.7 torch-sparse==0.6.9 -f https://data.pyg.org/whl/torch-1.7.0+cu110.html Step 3: Run the Main Script ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ After installing the dependencies, you can run the main script using the following command: .. code-block:: bash python openddi/main.py --model --matrix --modality --epochs --batch Optional arguments: ^^^^^^^^^^^^^^^^^^^ - ``--model ``: Model choice, e.g., ``MRCGNN``, ``GOGNN``, ``ZeroDDI``, ``TIGER``, ``MVA``, ``MUFFIN``, ``CASTER``, ``MMDGDTI``, ``MKGFENN``, etc. - ``--matrix ``: Interaction matrix, e.g., ``binary``, ``ChCh-Miner``, ``Ryus``, ``Dengs``, ``zeroddi``, ``multilabel``, ``twosides``, etc. - ``--modality``: Modality types, e.g., ``smiles``, ``sequence``, ``3d``, ``mechanism``, ``text``, ``drkg``, etc. (can specify multiple) - ``--epochs ``: Number of epochs to run. - ``--batch ``: The batch size to use. Note that the above list includes only a subset of the available parameters. For a complete list of parameters and their descriptions, see the :doc:`Parameters ` section. Example Command: ^^^^^^^^^^^^^^^^ To run the **MRCGNN** model on the **Ryus** DDI dataset with **smiles sequence 3d mechanism text** modalities, you can run the following command: .. code-block:: bash python openddi/main.py --model MRCGNN --matrix Ryus --modality smiles sequence 3d mechanism text --epochs 100 --batch 4096 This command will: - Use the **MRCGNN** model - Use the **Ryus** dataset - Use the **smiles sequence 3d mechanism text** modalities - Train for **100 epochs** with a **batch size of 4096**