Skip to content

Commit

Permalink
Refactor project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
kyosek committed Jul 27, 2023
1 parent 1124779 commit b65d26f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cfxplorer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from cfxplorer.focus.core import Focus
from cfxplorer.focus import Focus

# Let users know if they're missing any of our hard dependencies
_hard_dependencies = ("tensorflow", "numpy")
Expand Down
2 changes: 1 addition & 1 deletion cfxplorer/focus/core.py → cfxplorer/focus.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from sklearn.ensemble import AdaBoostClassifier, RandomForestClassifier
from sklearn.tree import DecisionTreeClassifier

from .utils import calculate_distance
from cfxplorer.utils import calculate_distance

os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3"

Expand Down
2 changes: 1 addition & 1 deletion cfxplorer/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import pytest
import tensorflow as tf

from cfxplorer.focus.utils import (
from cfxplorer.utils import (
calculate_distance,
safe_cosine,
safe_euclidean,
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions cfxplorer/version.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
``cfxplorer`` is a python package for
generating counterfactual explanations for a tree-based model
``CFXplorer`` is a python package for
generating counterfactual explanations for a given model and feature set.
"""
# PEP0440 compatible formatted version, see:
# https://www.python.org/dev/peps/pep-0440/
Expand All @@ -18,4 +18,4 @@
# Dev branch marker is: 'X.Y.dev' or 'X.Y.devN' where N is an integer.
# 'X.Y.dev0' is the canonical version of 'X.Y.dev'
#
__version__ = "0.0.dev4" # pragma: no cover
__version__ = "0.0.dev7" # pragma: no cover
4 changes: 0 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ def readme():
return f.read()


# read the contents of requirements.txt
with open(path.join(this_directory, "requirements.txt"), encoding="utf-8") as f:
requirements = f.read().splitlines()

setup(
name="CFXplorer",
version=__version__,
Expand Down

0 comments on commit b65d26f

Please sign in to comment.