Skip to content

Commit

Permalink
Merge branch 'main' into docfeatures
Browse files Browse the repository at this point in the history
  • Loading branch information
brownsarahm authored Apr 19, 2024
2 parents 337d4ff + c33d7aa commit a8bbfea
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 81 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/tests.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
62 changes: 62 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# ML-Sim:

Synthetic Data generators for ML evaluation

## Getting Started




To use the package:

```bash
git clone https://github.com/ml4sts/ml-sim.git
cd ml-sim/
pip install .
```

To use the package, after installed:

```python
import mlsim
```



## Development

To work in a separate development environment use the `requirements.txt` to install dependencies


### To reinstall package after changes

```
pip install --upgrade .
```

Or use
```
pip intall -e .
```
When updating the package and working in a notebook, the notebook's kernel will
need to be restarted to get the updates, if they're done outside of the notebook.

(only needed in development or after upgrade)



## Offline Documentation
To compile docs, jupyter book and some sphinx extensions are required, install
them with

```
pip install -r requirements.txt
```

then

```
jupyter-book build docs/
```

to build the documentation offline.
57 changes: 0 additions & 57 deletions README.rst

This file was deleted.

5 changes: 3 additions & 2 deletions mlsim/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

from . import anomaly

from . import base
from . import anomaly

from . import bias

__all__ = ['bias','anomaly']
2 changes: 1 addition & 1 deletion mlsim/bias/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from .populations import Population,PopulationInstantiated
from .populations import Population, PopulationInstantiated
from .bias_components import Demographic, DemographicIndependent, DemographicCorrelated
from .bias_components import Target, TargetDisadvantagedError, TargetTwoError
from .bias_components import Feature,FeatureSharedParam,FeatureTwoParams
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
author='Sarah M Brown',
author_email='[email protected]',
license='MIT',
packages=['mlsim','mlsim.bias','mlsim.anomaly'],
packages=['mlsim','mlsim.bias','mlsim.anomaly', 'mlsim.base'],
zip_safe=False,
install_requires=['Numpy', 'Scipy'])
install_requires=['Numpy', 'Scipy', 'aif360', 'Pandas'])

0 comments on commit a8bbfea

Please sign in to comment.