Skip to content

Commit

Permalink
Merge pull request #35 from NDoering99/GMM_patch
Browse files Browse the repository at this point in the history
fix error in GMM
  • Loading branch information
NDoering99 authored Oct 2, 2024
2 parents e010736 + 56a00d7 commit 784492e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mdpath/src/mutual_information.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
import numpy as np
from tqdm import tqdm
from sklearn.metrics import mutual_info_score
from sklearn.mixture import GaussianMixture
from scipy.stats import entropy


class NMICalculator:
def __init__(self, df_all_residues: pd.DataFrame, num_bins: int = 35) -> None:
def __init__(self, df_all_residues: pd.DataFrame, num_bins: int = 35, GMM = None) -> None:
self.df_all_residues = df_all_residues
self.num_bins = num_bins
self.GMM = GMM
Expand Down

0 comments on commit 784492e

Please sign in to comment.