Conventional drug screens and treatments often ignore the underlying complexity of brain network dysfunctions, resulting in suboptimal outcomes. Here we ask whether we can correct abnormal functional connectivity of the entire brain by identifying and combining multiple neuromodulators that perturb connectivity in complementary ways. Our approach avoids the combinatorial complexity of screening all drug combinations. We develop a high-speed platform capable of imaging more than 15000 neurons in 50ms to map the entire brain functional connectivity in large numbers of vertebrates under many conditions. Screening a panel of drugs in a zebrafish model of human Dravet syndrome, we show that even drugs with related mechanisms of action can modulate functional connectivity in significantly different ways. By clustering connectivity fingerprints, we algorithmically select small subsets of complementary drugs and rapidly identify combinations that are significantly more effective at correcting abnormal networks and reducing spontaneous seizures than monotherapies, while minimizing behavioral side effects. Even at low concentrations, our polytherapy performs superior to individual drugs even at highest tolerated concentrations.