Skip to content

Commit

Permalink
use \\ instead of \ (escape character)
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-desbureaux-tellae committed Nov 27, 2023
1 parent eb3696f commit 1361b07
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bhepop2/bhepop2_enrichment.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def _run_optimization(self) -> pd.DataFrame:
"""
Run optimization model on each feature value.
The resulting probabilities are the :math:`P(M_{k} \mid f \in F_{i})`.
The resulting probabilities are the :math:`P(M_{k} \\mid f \\in F_{i})`.
:return: DataFrame containing the result probabilities
"""
Expand Down Expand Up @@ -286,7 +286,7 @@ def _compute_constraints(self):
For each modality of each attribute, compute the probability of belonging to each feature interval.
.. math::
P(Modality \mid f \in F_{i}) = P(f \in F_{i} \mid Modality) \\cdot \\frac{P(Modality)}{P(f \in F_{i})}
P(Modality \\mid f \\in F_{i}) = P(f \\in F_{i} \\mid Modality) \\cdot \\frac{P(Modality)}{P(f \\in F_{i})}
"""

# compute constraints on each modality
Expand Down Expand Up @@ -378,7 +378,7 @@ def _get_feature_probs(self):
.. math::
P(f \in F_{i} \mid M_{k}) = P(M_{k} \mid f \in F_{i}) \\cdot \\frac{P(f \in F_{i})}{P(M_{k})}
P(f \\in F_{i} \\mid M_{k}) = P(M_{k} \\mid f \\in F_{i}) \\cdot \\frac{P(f \\in F_{i})}{P(M_{k})}
:return: DataFrame
"""
Expand Down Expand Up @@ -499,7 +499,7 @@ def _compute_feature_probabilities_from_distributions(self):
Use the global distribution of the features to interpolate the interval probabilities.
The resulting DataFrame contains :math:`P(f \in F_{i})` for i in N
The resulting DataFrame contains :math:`P(f \\in F_{i})` for i in N
:return: DataFrame
"""
Expand Down

0 comments on commit 1361b07

Please sign in to comment.