By implementing an error function on a Machine Learning algorithm we look for minimal conditions to construct stable Anti de Sitter and de Sitter vacua from dimensional type IIB String theory compactifcation on Kähler manifolds with torsion. This allows to have contributions to the scalar potential from the five-form flux and from D-branes wrapping torsional cycles, interpreted as non-BPS states. The former implies the possibility to construct stable AdS vacua while the later constitutes a mechanism to uplift AdS to dS vacua. Particularly we consider D5 non-BPS states to uplift the stable AdS vacua to an (apparently) stable dS minimum. Both results −the generation of an AdS vacuum and the corresponding uplifting to a dS one− are restricted to certain type of configurations, specifically with the number of O3 orientifolds bounded from below by the number of D3-branes and fluxes. Under these conditions we report over 170 dS (classical) stable vacua. In all of them, the uplifted effective potential becomes very flat indicating the presence of possible source of instabilities. We comment about their relation with the Swampland Conjectures.