Skip to content

Commit

Permalink
Update package structure
Browse files Browse the repository at this point in the history
  • Loading branch information
rmazzine committed Sep 1, 2023
1 parent 1e2a3cf commit 8fb8e6f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This package finds an optimal point (closer to the input dataset point), which

### Minimal example:
```python
from cfnow.cf_finder import find_tabular
from cfnow import find_tabular
import sklearn.datasets
import sklearn.ensemble
import pandas as pd
Expand Down Expand Up @@ -110,7 +110,7 @@ print(f"Factual: {x}\nFactual class: {model.predict([x])}")

#### 2 - Find the CF
```python
from cfnow.cf_finder import find_tabular
from cfnow import find_tabular
# Then, we use CFNOW to generate the minimum modification to change the classification
cf_obj = find_tabular(
factual=pd.Series(x),
Expand Down Expand Up @@ -165,7 +165,7 @@ print(f"Factual: {x.tolist()}\nFactual class: {model.predict([x])}")

#### 2 - Find the CF
```python
from cfnow.cf_finder import find_tabular
from cfnow import find_tabular
# Then, we use CFNOW to generate the minimum modification to change the classification
cf_obj = find_tabular(
factual=x,
Expand Down Expand Up @@ -218,7 +218,7 @@ print(f"Factual: {x.tolist()}\nFactual class: {model.predict([x])}")

#### 2 - Find the CF
```python
from cfnow.cf_finder import find_tabular
from cfnow import find_tabular
# Then, we use CFNOW to generate the minimum modification to change the classification
cf_obj = find_tabular(
factual=x,
Expand Down
6 changes: 4 additions & 2 deletions cfnow/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from cfnow import cf_finder
from cfnow.cf_finder import find_tabular, find_image, find_text

__all__ = [
'cf_finder'
'find_tabular',
'find_image',
'find_text',
]

0 comments on commit 8fb8e6f

Please sign in to comment.