Skip to content

Commit

Permalink
Merge pull request #87 from irec-org/feature-init
Browse files Browse the repository at this point in the history
add __init__ for all modules
  • Loading branch information
thiagodks committed Apr 11, 2023
2 parents c21f9f7 + 49a55b3 commit 9d49b53
Show file tree
Hide file tree
Showing 13 changed files with 184 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ matplotlib = "*"
numba = "*"
pandas = "*"
pip-chill = "*"
sklearn = "*"
scikit-learn = "*"
tqdm = "*"
PyYAML = "*"
tensorflow = "==2.4.1"
Expand Down
4 changes: 1 addition & 3 deletions all_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ importlib-resources==5.10.2
inquirer==2.7.0
ipykernel==6.20.2
ipython==8.8.0
-e git+https://github.com/irec-org/irec.git@364f8663af1bd4670e2b047d80be09c79ab3c55a#egg=irec
itsdangerous==2.0.1
jax==0.4.6
jedi==0.18.2
Expand Down Expand Up @@ -70,7 +69,6 @@ parso==0.8.3
pexpect==4.8.0
pickleshare==0.7.5
Pillow==8.3.2
pkg_resources==0.0.0
platformdirs==2.6.2
prometheus-client==0.11.0
prometheus-flask-exporter==0.18.3
Expand Down Expand Up @@ -101,7 +99,7 @@ scipy==1.7.1
seaborn==0.11.2
shap==0.41.0
six==1.16.0
sklearn==0.0
scikit-learn
slicer==0.0.7
smmap==4.0.0
soupsieve==2.2.1
Expand Down
2 changes: 2 additions & 0 deletions irec/environment/loader/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .full_data import FullData
from .train_test import SplitData
2 changes: 2 additions & 0 deletions irec/offline_experiments/evaluation_policies/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .fixed_interaction import FixedInteraction
from .limited_interaction import LimitedInteraction
6 changes: 6 additions & 0 deletions irec/offline_experiments/metric_evaluators/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from .cumulative_interaction import CumulativeInteraction
from .cumulative import Cumulative
from .interaction import Interaction
from .stage_iterations import StageIterations
from .total import Total
from .user_cumulative_interaction import UserCumulativeInteraction
12 changes: 12 additions & 0 deletions irec/offline_experiments/metrics/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from .ap import AP
from .entropy import Entropy
from .epc import EPC
from .epd import EPD
from .gini_coefficient_inv import GiniCoefficientInv
from .hits import Hits
from .ild import ILD
from .num_interactions import NumInteractions
from .precision import Precision
from .recall import Recall
from .top_items_membership import TopItemsMembership
from .users_coverage import UsersCoverage
2 changes: 2 additions & 0 deletions irec/recommendation/agents/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .simple_agent import SimpleAgent
from .simple_ensemble_agent import SimpleEnsembleAgent
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .egreedy import ASPEGreedy
from .generic_greedy import ASPGenericGreedy
from .greedy import ASPGreedy
from .ic_greedy import ASPICGreedy
from .reranker import ASPReranker
25 changes: 25 additions & 0 deletions irec/recommendation/agents/value_functions/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
from .most_popular import MostPopular
from .best_rated import BestRated
from .cluster_bandit import ClusterBandit
from .cofiba import COFIBA
from .e_greedy import EGreedy
from .entropy import Entropy
from .entropy0 import Entropy0
from .generic_thompson_sampling import GenericThompsonSampling
from .glm_ucb import GLM_UCB
from .helf import HELF
from .icf import ICF
from .ictr import ICTRTS
from .knn_bandit import kNNBandit
from .linear_egreedy import LinearEGreedy
from .linear_icf import LinearICF
from .linear_ts import LinearThompsonSampling
from .linear_ucb import LinearUCB
from .log_pop_ent import log_pop_ent
# from .nicf import NICF
from .pop_plus_ent import PopPlusEnt
from .pts import PTS
from .random import Random
from .thompson_sampling import ThompsonSampling
from .ucb import UCB
from .wscb import WSCB
2 changes: 1 addition & 1 deletion irec/recommendation/agents/value_functions/helf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np

from entropy import Entropy
from .entropy import Entropy
from . import most_popular
import scipy.stats
from .base import ValueFunction
Expand Down
1 change: 0 additions & 1 deletion irec/recommendation/agents/value_functions/most_popular.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import numpy as np
from .base import ValueFunction
from .most_popular import *
import scipy


Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ numpy
pandas
scikit-learn
scipy
sklearn
threadpoolctl>=3.0.0
tqdm>=4.62.3
mlflow
cachetools
cachetools
138 changes: 126 additions & 12 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,133 @@ classifiers =
packages = find:
python_requires = >=3.8
install_requires =
pyyaml
joblib
matplotlib
numba
numpy
pandas
absl-py==1.4.0
alembic==1.4.1
asttokens==2.2.1
astunparse==1.6.3
backcall==0.2.0
beautifulsoup4==4.10.0
blessed==1.17.6
cachetools==5.2.1
certifi==2021.5.30
charset-normalizer==2.0.6
click==8.0.1
cloudpickle==2.0.0
comm==0.1.2
contourpy==1.0.6
cycler==0.10.0
databricks-cli==0.15.0
debugpy==1.6.5
decorator==5.1.1
docker==5.0.2
entrypoints==0.3
executing==1.2.0
filelock==3.9.0
Flask==2.0.2
flatbuffers==23.3.3
fonttools==4.38.0
gast==0.4.0
gdown==4.6.0
gitdb==4.0.7
GitPython==3.1.24
google-auth==2.16.3
google-auth-oauthlib==0.4.6
google-pasta==0.2.0
googleDriveFileDownloader==1.2
greenlet==1.1.2
grpcio==1.51.3
gunicorn==20.1.0
h5py==3.8.0
idna==3.2
importlib-metadata==4.8.1
importlib-resources==5.10.2
inquirer==2.7.0
ipykernel==6.20.2
ipython==8.8.0
itsdangerous==2.0.1
jax==0.4.6
jedi==0.18.2
Jinja2==3.0.2
joblib==1.0.1
jupyter_client==7.4.9
jupyter_core==5.1.3
keras==2.11.0
kiwisolver==1.3.2
libclang==16.0.0
llvmlite==0.39.1
Mako==1.1.5
Markdown==3.4.1
MarkupSafe==2.0.1
matplotlib==3.4.3
matplotlib-inline==0.1.6
mlflow==1.20.2
nest-asyncio==1.5.6
numba==0.56.4
numpy==1.22.4
oauthlib==3.2.2
opt-einsum==3.3.0
packaging==21.0
pandas==1.3.3
parso==0.8.3
pexpect==4.8.0
pickleshare==0.7.5
Pillow==8.3.2
platformdirs==2.6.2
prometheus-client==0.11.0
prometheus-flask-exporter==0.18.3
prompt-toolkit==3.0.36
protobuf==3.19.6
psutil==5.9.4
ptyprocess==0.7.0
pure-eval==0.2.2
pyarrow==10.0.1
pyasn1==0.4.8
pyasn1-modules==0.2.8
Pygments==2.14.0
PyJWT==2.6.0
pyparsing==2.4.7
PySocks==1.7.1
python-dateutil==2.8.2
python-editor==1.0.4
pytz==2021.3
PyYAML==5.4.1
pyzmq==25.0.0
querystring-parser==1.2.4
readchar==2.0.1
requests==2.26.0
requests-oauthlib==1.3.1
rsa==4.9
scikit-learn==1.0
scipy==1.7.1
seaborn==0.11.2
shap==0.41.0
six==1.16.0
scikit-learn
scipy
sklearn
threadpoolctl>=3.0.0
tqdm>=4.62.3
mlflow
cachetools
slicer==0.0.7
smmap==4.0.0
soupsieve==2.2.1
SQLAlchemy==1.4.25
sqlparse==0.4.2
stack-data==0.6.2
tabulate==0.8.9
tensorboard==2.11.2
tensorboard-data-server==0.6.1
tensorboard-plugin-wit==1.8.1
tensorflow==2.11.0
tensorflow-estimator==2.11.0
tensorflow-io-gcs-filesystem==0.31.0
termcolor==1.1.0
threadpoolctl==3.0.0
tornado==6.2
tqdm==4.64.1
traitlets==5.8.1
typing-extensions==3.10.0.2
urllib3==1.26.7
wcwidth==0.2.5
websocket-client==1.2.1
Werkzeug==2.0.1
wrapt==1.14.1
zipp==3.6.0
[options.packages.find]
#where = irec
exclude =
Expand Down

0 comments on commit 9d49b53

Please sign in to comment.