The transition metals can involve their penultimate shell (n-1)d electrons in chemical bonding in addition to the ns electrons. Therefore, (n-1)d electrons are also considered valence electrons.