Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 1, 2024
1 parent 0400f3f commit 6d4c2d9
Show file tree
Hide file tree
Showing 20 changed files with 6 additions and 17 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

1 change: 0 additions & 1 deletion raredecay/analysis/compatibility_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"""


from raredecay.tools import dev_tool


Expand Down
2 changes: 2 additions & 0 deletions raredecay/analysis/ml_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
The functions serve as basic tools, which do already a lot of the work.
"""

import copy
import timeit
import warnings
Expand Down Expand Up @@ -1379,6 +1380,7 @@ def mcreweighted_as_real(

# collect all the new weights to get a really cross-validated reweighted dataset


# COMPATIBILITY LAYER START
# OLD FUNCTION, DEPRECEATED
def reweight_Kfold(
Expand Down
1 change: 0 additions & 1 deletion raredecay/analysis/physical_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
values.
"""


import copy

import matplotlib.pyplot as plt
Expand Down
1 change: 0 additions & 1 deletion raredecay/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
@author: Jonas Eschle "Mayou36"
"""


__all__ = ["RUN_NAME", "run_message", "OUTPUT_CFG", "save_fig_cfg", "logger_cfg"]

RUN_NAME = "Default run name"
Expand Down
1 change: 0 additions & 1 deletion raredecay/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"""


from raredecay.analysis.physical_analysis import add_branch_to_rootfile
from raredecay.tools.data_storage import HEPDataStorage
from raredecay.tools.data_tools import adv_return, make_root_dict, to_list, try_unpickle
Expand Down
1 change: 0 additions & 1 deletion raredecay/globals_.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
can be extended if wanted
"""


from . import config as cfg
from . import meta_config as meta_cfg
from .tools import output
Expand Down
2 changes: 1 addition & 1 deletion raredecay/meta_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def set_parallel_profile(n_cpu=-1, gpu_in_use=False, stratified_kfolding=True):
# about but may be happy to have them saved somewhere)
DEFAULT_EXT_SAVE_FIG = dict(
file_format=["png", "pdf"],
to_pickle=True
to_pickle=True,
# save_cfg=None
)

Expand Down
1 change: 0 additions & 1 deletion raredecay/ml.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"""


try:
from raredecay.analysis.ml_analysis import (
backward_feature_elimination,
Expand Down
1 change: 0 additions & 1 deletion raredecay/reweight.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"""


try:
from raredecay.analysis.reweight import reweight, reweight_kfold
except Exception as err:
Expand Down
1 change: 0 additions & 1 deletion raredecay/score.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"""


try:
from raredecay.analysis.ml_analysis import mcreweighted_as_real
from raredecay.tools.ml_scores import mayou_score, train_similar, train_similar_new
Expand Down
1 change: 0 additions & 1 deletion raredecay/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
@author: Jonas Eschle "Mayou36"
"""


__all__ = [
"initialize",
"finalize",
Expand Down
1 change: 1 addition & 0 deletions raredecay/tools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@
DEPRECEATED!DEPRECEATED!DEPRECEATED!DEPRECEATED!DEPRECEATED!
"""

#
1 change: 0 additions & 1 deletion raredecay/tools/data_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
takes data, weights, targets, names and converts automatically, plots and more.
"""


import copy
import math
import random
Expand Down
1 change: 0 additions & 1 deletion raredecay/tools/data_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
Contains several tools to convert, load, save and plot data
"""


import copy
import os
import pickle
Expand Down
1 change: 0 additions & 1 deletion raredecay/tools/dev_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
Contains several useful tools for all kind of programs
"""


import collections

import numpy as np
Expand Down
1 change: 0 additions & 1 deletion raredecay/tools/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"""


import math as mt

import numpy as np
Expand Down
1 change: 0 additions & 1 deletion raredecay/tools/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"""


import copy
import io as StringIO
import os
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ hep_ml>=0.5.0
matplotlib
numpy
pandas
scipy
rep @ git+https://github.com/REPlegacy/rep
scikit-learn~=0.19.0 # otherwise, breaks REP
scipy
seaborn
uproot
xgboost<1.3 # TODO: negative weights and xgboost don't go well, error in 1.3+
1 change: 1 addition & 0 deletions scripts_readyToUse/reweightCV_score_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
The raredecay package is available at https://github.com/mayou36/raredecay
"""

from raredecay import settings

# first of all, it is advised to set some run-configurations like logger-level,
Expand Down

0 comments on commit 6d4c2d9

Please sign in to comment.