1. An implantable neurostimulation system configured to optimize values of parameters which define electrical stimulation delivered to a brain of a patient as a form of neural modulation therapy based on a classification of a sensed brain signal into a neurological event type, the implantable neurostimulation system comprising: at least one lead provided with, at or near a distal end thereof, a plurality of sensors and a plurality of stimulators, the at least one lead configured to be implanted at least partially in the patient so that the plurality of sensors and the plurality of stimulators are in or on the brain; an implantable neurostimulator coupled to the at least one lead and configured to, with each of the plurality of sensors, selectively sense neurological activity from the brain and further configured to, with each of the plurality of stimulators, selectively stimulate the brain, the implantable neurostimulator comprising: a sensing module configured to: process information received on each of a plurality of sensing channels associated with an input from at least one of the plurality of sensors; create a record of electrographic activity for each sensing channel; a feature extraction module configured to extract a plurality of features from each record of electrographic activity; a mapping function module configured to attempt to match each record of electrographic activity, based on the plurality of extracted features, to one or more of a plurality of neurological event types, wherein each of the plurality of neurological event types is associated with a different parameter configuration comprising: a stimulation parameter subspace comprising a range of potential values for each of a plurality of stimulation parameters; and a discrete default value for each of the plurality of stimulation parameters; wherein the values of the stimulation parameters collectively define an instance of stimulation; a control module configured to determine which value to set for each of the plurality of stimulation parameters; and a stimulation module configured to generate the instance of stimulation and to deliver, through a selected one or more of the plurality of stimulators, a plurality of instances of stimulation comprising a course of stimulation therapy, to the patient.