A machine learning one-class logistic regression model to predict stemness for single cell transcriptomics and spatial omics