!pip install lofo-importance
import pandas as pd
import os
from sklearn.model_selection import KFold
from sklearn.tree import DecisionTreeClassifier
from lofo import LOFOImportance, Dataset, plot_importance
from hbn.constants import Defaults
%matplotlib inline
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting lofo-importance
Downloading lofo_importance-0.3.2-py3-none-any.whl (11 kB)
Requirement already satisfied: networkx in /usr/local/lib/python3.9/dist-packages (from lofo-importance) (3.0)
Requirement already satisfied: lightgbm in /usr/local/lib/python3.9/dist-packages (from lofo-importance) (2.2.3)
Requirement already satisfied: numpy>=1.17.3 in /usr/local/lib/python3.9/dist-packages (from lofo-importance) (1.22.4)
Requirement already satisfied: scipy in /usr/local/lib/python3.9/dist-packages (from lofo-importance) (1.10.1)
Requirement already satisfied: tqdm in /usr/local/lib/python3.9/dist-packages (from lofo-importance) (4.65.0)
Requirement already satisfied: scikit-learn>=0.20.3 in /usr/local/lib/python3.9/dist-packages (from lofo-importance) (1.2.1)
Requirement already satisfied: pandas in /usr/local/lib/python3.9/dist-packages (from lofo-importance) (1.3.5)
Requirement already satisfied: joblib>=1.1.1 in /usr/local/lib/python3.9/dist-packages (from scikit-learn>=0.20.3->lofo-importance) (1.2.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in /usr/local/lib/python3.9/dist-packages (from scikit-learn>=0.20.3->lofo-importance) (3.1.0)
Requirement already satisfied: python-dateutil>=2.7.3 in /usr/local/lib/python3.9/dist-packages (from pandas->lofo-importance) (2.8.2)
Requirement already satisfied: pytz>=2017.3 in /usr/local/lib/python3.9/dist-packages (from pandas->lofo-importance) (2022.7.1)
Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.9/dist-packages (from python-dateutil>=2.7.3->pandas->lofo-importance) (1.15.0)
Installing collected packages: lofo-importance
Successfully installed lofo-importance-0.3.2
/usr/local/lib/python3.9/dist-packages/lofo/lofo_importance.py:3: TqdmExperimentalWarning: Using `tqdm.autonotebook.tqdm` in notebook mode. Use `tqdm.tqdm` instead to force console mode (e.g. in jupyter console)
from tqdm.autonotebook import tqdm