While I'm skeptical of pushing kids in a direction, the sentiment that programming is taking over the other sciences and the economy, and machine learning is taking over programming, is basically correct.
It's something smart kids will pickup on their own, and worth encouraging her to pursue deep, complex projects she finds interesting.
As a general approach, letting her spend vast amounts of time going deep in whatever interests her, while even taking a year or two away from school, or defocusing on school until the final few years, is the right one. (The greatest waste of giftedness is ekeing out a perfect GPA instead of excelling at things that have no inherent ceiling.)
Greatest positive influence: teachers who let me skip class in elementary school (basically built and ran the school's website, handled any software issues etc.), and then teachers/admins who allowed me to opt out of math class in favor of independent study math from 7th-12th grade. Huge help in math competitions, getting a full scholarship to Caltech etc.
Book Recommendations: Free to Learn, and Children above 180 IQ, Stanford-Binet, by Leta Stetter Hollingworth
The former recommends letting children chart their own course, the latter suggests profoundly gifted children (really anyone ~160+) opt out of middle school and study something orthogonal then resume high school with their age group. (Elementary school and a good high school provide important socialization and can generally avoid being too boring; while middle school teaches nothing a bright child needs to learn, and is usually a dead-zone as far as extracurriculars or advanced coursework).
I'd avoid planting any ideas, and just let the child run with whatever interests her.
It's something smart kids will pickup on their own, and worth encouraging her to pursue deep, complex projects she finds interesting.
As a general approach, letting her spend vast amounts of time going deep in whatever interests her, while even taking a year or two away from school, or defocusing on school until the final few years, is the right one. (The greatest waste of giftedness is ekeing out a perfect GPA instead of excelling at things that have no inherent ceiling.)