dyngpt package¶
Subpackages¶
- dyngpt.dynmodels package
- Submodules
- dyngpt.dynmodels.afl module
- dyngpt.dynmodels.arl module
- dyngpt.dynmodels.default_model module
- dyngpt.dynmodels.isc module
- dyngpt.dynmodels.nm_nm module
- dyngpt.dynmodels.on_off_nm module
- dyngpt.dynmodels.sdp module
- dyngpt.dynmodels.sir module
- dyngpt.dynmodels.sirs module
- dyngpt.dynmodels.toggle_switch module
- dyngpt.dynmodels.ts_mp module
- dyngpt.dynmodels.ts_txl module
- Module contents
- dyngpt.plotting package
- dyngpt.tools package
Submodules¶
dyngpt.inferrer module¶
- dyngpt.inferrer.inferring_dynamics(observed_data, config_infer, gene_names=[], true_params=[], synthetic_flag=0, new_model=False, synthetic_data=[])[source]¶
Infer the underlying dynamic parameters of a state transition network from observed data.
- Args:
observed_data (numpy.ndarray): The observed dataset containing state counts. config_infer (Namespace): Configuration object containing inference parameters. gene_names (list, optional): List of gene names corresponding to the observed data. Defaults to []. true_params (list, optional): List of true parameter values for validation. Defaults to []. synthetic_flag (int, optional): Flag indicating whether synthetic data is used (1) or not (0). Defaults to 0. new_model (bool, optional): Whether to initialize a new model or use a pre-trained model. Defaults to False. synthetic_data (list, optional): Synthetic dataset for model validation, if applicable. Defaults to [].
- Returns:
dict: Contains the inferred parameters, loss values, KL divergence values, and other evaluation metrics.
dyngpt.solver module¶
- dyngpt.solver.fine_tune_training(config_fine_tune)[source]¶
Fine-tune the neural network model using a specified training configuration.
- Args:
- config_fine_tune (Namespace): Configuration object containing hyperparameters,
dataset paths, training settings, and model specifications.
- Raises:
ValueError: If an unknown loss type is specified in args.loss_type.
- Returns:
- dict: A dictionary containing training results, including loss means and the path
to the fine-tuned model weights.
- dyngpt.solver.pre_training(config_pretrain)[source]¶
Pre-train the neural network model for state transition network.
- Args:
config_pretrain (Namespace): Configuration object containing training parameters.
- Returns:
dict: A dictionary containing training loss means and the final model weight path.
- dyngpt.solver.solving_STN(model_name, params=[], initial_value=[], args='')[source]¶
Solve the state transition network using a trained neural network model.
- Args:
model_name (str): The name of the model to be used. params (list, optional): A list of parameters for the model. Defaults to []. initial_value (list, optional): A list of initial values for the system. Defaults to []. args (Namespace, optional): Additional arguments containing model configurations,
including device, batch size, and initial values. Defaults to “”.
- Returns:
np.ndarray: Sampled data generated by the neural network based on the provided parameters.