In the MP database, we found 6,814 ferromagnetic, 872 antiferromagnetic, 2,382 ferrimagnetic, and 9,164 nonmagnetic ternary materials, which satisfy the above conditions. We regard all the ferromagnetic, antiferromagnetic, and ferrimagnetic compounds as magnetic/spintronics materials. Thus, altogether we have 10,068 magnetic and 9,164 nonmagnetic materials in the dataset. Next, we computed the probability of finding an A α M β Xγ material for each X element as shown in Fig. . Since we specifically use CubicGAN to discover potential stable materials, cubic materials were also studied for the above anions. It is clear that O-and F-based A α M β Xγ materials have a higher probability of being spintronic materials. When X=O or X=F, the probability of finding a magnetic material from all crystal systems is around 60 %, and it is less than 35 % for other anions. The dataset of cubic systems also shows that the A α M β Oγ and A α M β Fγ materials have a high probability of having a magnetic ground state. The probability of finding a cubic spintronics material is greater than 50 %, whereas that from other materials is less than 43 %. This indicates that one can focus on transition metal oxides and fluorides for discovering potential spintronics materials.