Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to fix style issues. #126

Merged
merged 23 commits into from
Oct 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,14 @@ disable=raw-checker-failed,
suppressed-message,
useless-suppression,
deprecated-pragma,
use-symbolic-message-instead
use-symbolic-message-instead,
unnecessary-lambda-assignment,
unnecessary-lambda,
no-member,
too-many-arguments,
fixme, # Remove this to find TODOs
too-many-instance-attributes,
too-many-ancestors

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down Expand Up @@ -553,7 +560,18 @@ good-names=i,
k,
ex,
Run,
_
_,
X, Y, C, W,
X_train, X_test,
Y_train, Y_test,
C_train, C_test,
X_means, X_stds,
C_means, C_stds,
Y_means, Y_stds,
X_val, Y_val, C_val,
W_train, W_val, W_test,
beta, mu,
Y_true, Y_pred

# Good variable names regexes, separated by a comma. If names match any regex,
# they will always be accepted
Expand Down
5 changes: 5 additions & 0 deletions contextualized/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
"""Contextualized.ML: A statistical machine learning toolbox for estimating
models, distributions, and functions with context-specific parameters.
For more details, please refer to contextualized.ml.
"""

from contextualized.utils import *
15 changes: 10 additions & 5 deletions contextualized/dags/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
"""
Contextualized Directed Acyclic Graphs (DAGs).
"""

from contextualized.modules import MLP, NGAM
from contextualized.dags.notmad import NOTMAD

ENCODERS = {
'mlp': MLP,
'ngam': NGAM,
"mlp": MLP,
"ngam": NGAM,
}

from contextualized.dags.notmad import NOTMAD
MODELS = ['bayesian']
METAMODELS = ['subtype']
MODELS = ["bayesian"]
METAMODELS = ["subtype"]
Loading