Skip to main content
. 2023 Jul 26;13(15):2489. doi: 10.3390/diagnostics13152489
Algorithm 1 ADASYN algorithm

Input: Data_images ⟵ Input features

Labels ⟵ Corresponding labels

Output: X_res ⟵ Oversampled image f eature vectors

y_res ⟵ Oversampled corresponding labels

Start:

    

    1: Import ADASYN f rom imblearn.over_sampling

    2: Create ADASYN oversamping instance and assign a variable sm

    3: Applying the ADASYN oversampling technique to the dataset

    4: Fit resample method is called and passes through the arguments (Data_images and Labels).

    5: Assign Oversampled image f eature vectors to X_res

    6: Assign Oversampled corresponding labels to y_res

    7: Return (X_res, y_res)

End