advaithsrao / Fraud-Detector

Fraud Detection Package with fine-tuned ML and DL model, equipped with ethical considerations such as Differential Privacy and SMPC
Apache License 2.0
5 stars 1 forks source link

Crypten: Scikit Learn Depricated package dependancy #16

Open advaithsrao opened 11 months ago

advaithsrao commented 11 months ago

In some package import currently, there is sklearn=0.0.post10 being installed, which fails the test pipeline as pip install sklearn has been depricated.

The current fix is

#Set environment variable for scikit-learn depricated package
echo "export SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True" >> ~/.zshrc
source ~/.zshrc
poetry shell

This needs to be backtracked to the package and resolved at a later stage

advaithsrao commented 11 months ago

Also to note. This (sklearn) is not the same package as scikit-learn=^1.3.0 that we install in the .toml script. It is a dependancy for some other package (maybe spacy, en_core_sm).