Machine-Learning Classification to Predict the Dimensionality of Hybrid Organic-Inorganic Halide Perovskites