privacytrustlab / ml_privacy_meter

Privacy Meter: An open-source library to audit data privacy in statistical and machine learning algorithms.
MIT License
556 stars 99 forks source link

Add conda recipe #82

Closed sarthakpati closed 1 year ago

sarthakpati commented 1 year ago

It would be great to have a conda recipe so that it can be included with projects that have more complicated build processes (for example, using libraries that need C/C++ compilers).

sarthakpati commented 1 year ago

I have already made a recipe: https://github.com/conda-forge/staged-recipes/pull/20256

This would auto-updated whenever a new version is pushed to pypi.

sarthakpati commented 1 year ago

I have already made a recipe: conda-forge/staged-recipes#20256

This would auto-updated whenever a new version is pushed to pypi.

Happy to add any other maitainer as needed.

changhongyan123 commented 1 year ago

Thank you so much @sarthakpati , for your contribution. We really appreciate it! I will test it and merge the pull request.

sarthakpati commented 1 year ago

Hi @changhongyan123, did you manage to check this PR?

changhongyan123 commented 1 year ago

Hi @sarthakpati , I encountered the following issues. Do you have any ideas about solving this issue?

The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:
  - defaults/osx-64::scikit-learn==0.24.1=py38hb2f4e1b_0
  - defaults/osx-64::scikit-image==0.18.1=py38hb2f4e1b_0
  - defaults/osx-64::patsy==0.5.1=py38_0
  - defaults/osx-64::astropy==4.2.1=py38h9ed2024_1
  - defaults/osx-64::anaconda==2021.05=py38_0
  - defaults/noarch::seaborn==0.11.1=pyhd3eb1b0_0
  - defaults/osx-64::statsmodels==0.12.2=py38h9ed2024_0
sarthakpati commented 1 year ago

2 questions:

changhongyan123 commented 1 year ago

@sarthakpati Thank you for your prompt reply. I solved the problem. Previously, I tested on conda env of version 4.10.3. When testing on conda env 4.12.0, privacy-meter can be installed correctly.

Thank you so much for your contribution :)! I will forward this pull request to the repository admin.

sarthakpati commented 1 year ago

Great!