Skip to main content
. 2024 Sep 26;25(19):10351. doi: 10.3390/ijms251910351
Algorithm 1 Positive unlabeled learning algorithm for negative sample inference
  •  1:

    procedure Positive unlabeled learning(P, U) ▹ P is the set of positive samples, U is the set of unknown samples.

  •  2:

         Set the maximum number of iterations imax.                        ▹ We set imax to 5.

  •  3:

         Create empty RN.                      ▹ RN is the set of reliable negative samples.

  •  4:

         i=1

  •  5:

         while i≤imax do

  •  6:

              Initialize a classifier.

  •  7:

              Randomly select 20% of samples from U as AN.        ▹ AN is the set of assumed negative samples.

  •  8:

              Train the classifier using P and AN.

  •  9:

              Predict the remaining genes using the classifier. Select the 10% genes with the highest predicted negative samples ranking and add them to the RN.

  • 10:

              i=i+1

  • 11:

        end while

  • 12:

        return RN

  • 13:

    end procedure