aif360 Fairness library in python

1 回表示 (過去 30 日間)
Esmeralda Ruiz Pujadas
Esmeralda Ruiz Pujadas 2023 年 1 月 18 日
回答済み: Surya 2023 年 4 月 17 日
Hello,
I wonder if it is possible to use the aif360 library written in python in matlab. I tried to run it but it says that the module is not found.
Thank you

回答 (3 件)

Muskan
Muskan 2023 年 3 月 20 日
Hi Esmeralda,
As per my understanding, you would normally need to utilise a package or tool that allows you to run Python code inside of MATLAB in order to use the aif360 library in MATLAB. The MATLAB Python Integration is an illustration of such a tool because it enables you to execute Python functions from MATLAB and transfer data between two environments.
However, there can be some limitations to the functionalities. For instance, due to variations between the Python and MATLAB environments, some of the functionality might not be available or might not function as expected.
I hope the above information will be helpful in resolving your query.
Thanks,
Muskan

Image Analyst
Image Analyst 2023 年 3 月 20 日

Surya
Surya 2023 年 4 月 17 日
Hi,
You can make use of MATLAB Python interface to use Python objects directly in MATLAB.
For information about the Interface check here.
For the Interface to work, you need MATLAB compatible python installed in your system. here
Example code (Try this in MATLAB command line):
>> py.aif360.sklearn.preprocessing.Reweighing
ans =
Python Reweighing with properties:
prot_attr: [1×1 py.NoneType]
Reweighing()
Hope it helps.

カテゴリ

Help Center および File ExchangeCall Python from MATLAB についてさらに検索

製品


リリース

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by