You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/api/encoder.rst
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,20 +3,19 @@ Molecular Encoder Models
3
3
4
4
The encoder models inherit from the :class:`torch_molecule.base.encoder.BaseMolecularEncoder` class and share common methods for model pretraining and encoding, as well as model persistence.
5
5
6
-
Common Methods
7
-
--------------
6
+
.. rubric:: Training and Encoding
8
7
9
-
Training and Encoding
10
-
^^^^^^^^^^^^^^^^^^^^^^^
11
8
- ``fit(X, **kwargs)``: Pretrain the model on given data, where X contains SMILES strings
12
9
13
10
Not implemented for:
14
11
- N/A
15
12
16
13
- ``encode(X, **kwargs)``: Encode new SMILES strings and return a dictionary containing encoded representations
17
14
18
-
Model Persistence
19
-
^^^^^^^^^^^^^^^^^
15
+
.. rubric:: Model Persistence
16
+
17
+
inherited from :class:`torch_molecule.base.base.BaseModel`
18
+
20
19
- ``save_to_local(path)``: Save the trained model to a local file
21
20
- ``load_from_local(path)``: Load a trained model from a local file
22
21
- ``push_to_huggingface(repo_id)``: Push the model to Hugging Face Hub
Copy file name to clipboardExpand all lines: docs/source/api/generator.rst
+7-8Lines changed: 7 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,27 +3,26 @@ Molecular Generation Models
3
3
4
4
The generator models inherit from the :class:`torch_molecule.base.generator.BaseMolecularGenerator` class and share common methods for model training, generation and persistence.
5
5
6
-
Common Methods
7
-
-------------
6
+
.. rubric:: Training and Generation
8
7
9
-
Training and Generation
10
-
^^^^^^^^^^^^^^^^^^^^^^^
11
8
- ``fit(X, **kwargs)``: Train the model on given data, where X contains SMILES strings (y should be provided for conditional generation)
12
9
- ``generate(n_samples, **kwargs)``: Generate new molecules and return a list of SMILES strings (y should be provided for conditional generation)
13
10
14
-
Model Persistence
15
-
^^^^^^^^^^^^^^^^^
11
+
.. rubric:: Model Persistence
12
+
13
+
inherited from :class:`torch_molecule.base.base.BaseModel`
14
+
16
15
- ``save_to_local(path)``: Save the trained model to a local file
17
16
- ``load_from_local(path)``: Load a trained model from a local file
18
17
- ``push_to_huggingface(repo_id)``: Push the model to Hugging Face Hub
The predictor models inherit from the :class:`torch_molecule.base.predictor.BaseMolecularPredictor` class and share common methods for model training, evaluation, prediction and persistence.
5
5
6
-
Common Methods
7
-
--------------
6
+
.. rubric:: Training and Prediction
8
7
9
-
Training and Prediction
10
-
^^^^^^^^^^^^^^^^^^^^^^^
11
8
- ``fit(X, y, **kwargs)``: Train the model on given data, where X contains SMILES strings and y contains target values
12
9
- ``autofit(X, y, search_parameters, n_trials=50, **kwargs)``: Automatically search for optimal hyperparameters using Optuna and train the model
13
10
- ``predict(X, **kwargs)``: Make predictions on new SMILES strings and return a dictionary containing predictions and optional uncertainty estimates
14
11
15
-
Model Persistence
16
-
^^^^^^^^^^^^^^^^^
12
+
.. rubric:: Model Persistence
13
+
14
+
inherited from :class:`torch_molecule.base.base.BaseModel`
15
+
17
16
- ``save_to_local(path)``: Save the trained model to a local file
18
17
- ``load_from_local(path)``: Load a trained model from a local file
19
18
- ``push_to_huggingface(repo_id)``: Push the model to Hugging Face Hub
0 commit comments