Both graduate programs require 16 units of graduate coordinator approved technical electives.  These electives must be at the 400 or 500 level otherwise they will not count.  Any CSC or CPE course at the appropriate level is pre-approved, except for additional restrictions on independent study and co-op units (details here).  If a course outside CSC and CPE makes sense for your area of specialization (for instance, advanced STAT classes are appropriate for a data scientist) it will likely be approved.  You must verify approval with the graduate coordinator prior to taking the course to avoid unpleasant surprises that can delay graduation.

Courses taken as part of the data science minor may also qualify as advisor approved electives.  You can find a longer description of this policy here.