The electron Hamiltonian of molecules and materials is vital for understanding the systems and calculating electron-related physical quantities. In recent years, the Hamiltonian derived from the neural network has been developed a lot for nonmagnetic systems . In a recent work, we have implemented a transferable E(3) equivariant model for predicting the electron Hamiltonian of non-magnetic systems . For magnetic systems, approaches for constructing the Hamiltonian including spin are not available. The time-reversal symmetry should be well considered when building the Hamiltonian. For the investigation of large-scale magnetic materials, the method of electron Hamiltonian including spin and time-reversal is demanding.