torchdms.plot¶
Plotting functions.
Functions
This function takes in a (ideally trained) model and plots the values of the weights corresponding to the inputs, dubbed "beta coefficients". |
|
Build a dataframe that contains the value of the nonlinearity for the domain of the range of values seen in the geplot_df. |
|
Build data frame for making a global epistasis plot. |
|
This function takes in a model and plots the single mutant predictions. |
|
If a dataset has two targets, create a scatterplot of the scores. |
|
This function plots the log singular values and the cummulative sum of each of a trained model's beta coefficent matricies. |
|
Plots heatmaps of amino acid profiles (U) and site profiles (V) from SVD output after final gradient step of training. |
|
Plot scatter plot and correlation values between predicted and observed for each target. |
|
- torchdms.plot.plot_test_correlation(evaluation_dict, model, out, cmap='plasma')[source]¶
Plot scatter plot and correlation values between predicted and observed for each target.
- torchdms.plot.plot_heatmap(model, path)[source]¶
This function takes in a model and plots the single mutant predictions.
We plot this as a heatmap where the rows are substitutions nucleotides, and the columns are the sequence positions for each mutation.
- torchdms.plot.beta_coefficients(model, test_data, out)[source]¶
This function takes in a (ideally trained) model and plots the values of the weights corresponding to the inputs, dubbed “beta coefficients”.
We plot this as a heatmap where the rows are substitutions nucleotides, and the columns are the sequence positions for each mutation.
- torchdms.plot.build_geplot_df(model, data, device='cpu')[source]¶
Build data frame for making a global epistasis plot.
- torchdms.plot.build_2d_nonlinearity_df(model, geplot_df, steps)[source]¶
Build a dataframe that contains the value of the nonlinearity for the domain of the range of values seen in the geplot_df.
- torchdms.plot.plot_svd(model, test_data, out)[source]¶
This function plots the log singular values and the cummulative sum of each of a trained model’s beta coefficent matricies.