Those with autism spectrum disorder (ASD) and/or attention-deficit-hyperactivity disorder (ADHD) exhibit symptoms of hyperactivity and inattention, causing significant hardships for families and society. A potential mechanism involved in these conditions is atypical executive function (EF). Inconsistent findings highlight that EF features may be shared or distinct across ADHD and ASD. With ADHD and ASD each also being heterogeneous, we hypothesized that there may be nested subgroups across disorders with shared or unique underlying mechanisms. Participants (N=130) included adolescents aged 7-16 with ASD (n=64) and ADHD (n=66). Typically developing (TD) participants (n=28) were included for a comparative secondary sub-group analysis. Parents completed the K-SADS and youth completed an extended battery of executive and other cognitive measures. A two stage hybrid machine learning tool called functional random forest (FRF) was applied as a classification approach and then subsequently to subgroup identification. We input 43 EF variables to the classification step, a supervised random forest procedure in which the features estimated either hyperactive or inattentive ADHD symptoms per model. The FRF then produced proximity matrices and identified optimal subgroups via the infomap algorithm (a type of community detection derived from graph theory). Resting state functional connectivity MRI (rs-fMRI) was used to evaluate the neurobiological validity of the resulting subgroups. Both hyperactive (Mean absolute error (MAE)=0.72, Null model MAE=0.8826, (t(58)=-4.9, p<.001) and inattentive (MAE=0.7, Null model MAE=0.85, t(58)=-4.4, p<.001) symptoms were predicted better than chance by the EF features selected. Subgroup identification was robust (Hyperactive: Q=0.2356, p<.001; Inattentive: Q=0.2350, p<.001). Two subgroups representing severe and mild symptomology were identified for each symptom domain. Neuroimaging data revealed that the subgroups and TD participants significantly differed within and between multiple functional brain networks, but no consistent "severity" patterns of over or under connectivity were observed between subgroups and TD. The FRF estimated hyperactive/inattentive symptoms and identified 2 distinct subgroups per model, revealing distinct neurocognitive profiles of Severe and Mild EF performance per model. Differences in functional connectivity between subgroups did not appear to follow a severity pattern based on symptom expression, suggesting a more complex mechanistic interaction that cannot be attributed to symptom presentation alone.