Wadood Alam
24th February 2024
AI 539 Assignment 3: Adapt to Change
- Python
- NumPy
- Pandas
- Scikit-learn
- accuracy_score
- confusion_matrix
- RandomForestClassifier
- GaussianProcessClassifier
- KNeighborsClassifier
- DummyClassifier
- Black Box Shift Correction: analyze_val_data, update_probs
- Install the required dependencies using pip: Pandas, NumPy, sklearn
- Ensure Dataset is contained in the same directory
- Donwload the
label_shift_adaptation.py
file in the same directory as your project - Run the program using the command
shift_adapt.py
- The program will genrate 3 csv files and 1
accuracy.csv
: This will generate a table of accuracies without BBSCaccuracy_BBSC.csv
: This will generate a table of accuracies with BBSCweights.csv
: This will generate a table of weights calculated by BBSCBarPlot.png
: Grounded bar plot for true label distribution for all the datasets
- tarin-TX.csv
- val_TX.csv
- test1-TX.csv
- test2-FL.csv
- test3-FL.csv
- shift_adapt.py
- label_shift_adaptation.py
- BarPlot.png
- accuacy.csv
- accuracy_BBSC.csv
- weights.csv