taps.apps.moldesign.tasks¶
train_model() ¶
Train a machine learning model using Morgan Fingerprints.
Parameters:
-
train_data(DataFrame) –Dataframe with a 'smiles' and 'ie' column that contains molecule structure and property, respectfully.
Returns:
-
Pipeline–A trained model.
Source code in taps/apps/moldesign/tasks.py
run_model() ¶
Run a model on a list of smiles strings.
Parameters:
-
model(Pipeline) –Trained model that takes SMILES strings as inputs.
-
smiles(list[str]) –List of molecules to evaluate.
Returns:
-
DataFrame–A dataframe with the molecules and their predicted outputs.
Source code in taps/apps/moldesign/tasks.py
combine_inferences() ¶
Concatenate a series of inferences into a single DataFrame.
Parameters:
-
inputs(DataFrame, default:()) –A list of the component DataFrames.
Returns:
-
DataFrame–A single DataFrame containing the same inferences.