Learning Abilities Achieved by a Single Solid-State Atomic Switch