YGZWQZD / LAMDA-SSL

30 Semi-Supervised Learning Algorithms
MIT License
184 stars 16 forks source link

The random subset in Assemble does not contain more than one classes #6

Open tsiakmaki opened 1 year ago

tsiakmaki commented 1 year ago

Choosing randomly a subset of indexes at Assemble https://github.com/YGZWQZD/LAMDA-SSL/blob/master/LAMDA_SSL/Algorithm/Classification/Assemble.py#L88 does not necessarily means that the subset will contain more than one classes. E.g. for small datasets.

Is there a workaround for this?

Thank you in advance.