pub struct CircuitObjectiveSpec {
pub schema_version: u32,
pub region_id: String,
pub member_area_ids: BTreeSet<String>,
pub boundary: CircuitBoundary,
pub stimulus: StimulusProtocol,
pub metric: CircuitMetric,
pub constraints: CircuitConstraints,
pub search_space: Vec<ParameterRange>,
pub interface_frozen: bool,
}Expand description
A measurable objective for one circuit (brain region).
Fields§
§schema_version: u32Wire/format version; must equal SCHEMA_VERSION.
region_id: StringBrain region the circuit is rooted at.
member_area_ids: BTreeSet<String>Cortical areas in the region and its descendants when the spec was defined.
boundary: CircuitBoundaryBoundary of the circuit.
stimulus: StimulusProtocolHow the circuit is driven.
metric: CircuitMetricFitness metric.
constraints: CircuitConstraintsResource limits.
search_space: Vec<ParameterRange>Parameters an optimizer may change; empty for analysis-only objectives.
interface_frozen: boolKeep mappings that cross the circuit boundary unchanged.
Implementations§
Source§impl CircuitObjectiveSpec
impl CircuitObjectiveSpec
Sourcepub fn objective(&self) -> FitnessObjective
pub fn objective(&self) -> FitnessObjective
Direction in which the spec’s fitness improves.
Sourcepub fn validate(&self) -> Result<(), CircuitSpecError>
pub fn validate(&self) -> Result<(), CircuitSpecError>
Checks every contract invariant; hosts call this before storing or running a spec.
§Errors
Returns the first CircuitSpecError found.
Trait Implementations§
Source§impl Clone for CircuitObjectiveSpec
impl Clone for CircuitObjectiveSpec
Source§impl Debug for CircuitObjectiveSpec
impl Debug for CircuitObjectiveSpec
Source§impl<'de> Deserialize<'de> for CircuitObjectiveSpec
impl<'de> Deserialize<'de> for CircuitObjectiveSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CircuitObjectiveSpec
impl PartialEq for CircuitObjectiveSpec
Source§impl Serialize for CircuitObjectiveSpec
impl Serialize for CircuitObjectiveSpec
impl StructuralPartialEq for CircuitObjectiveSpec
Auto Trait Implementations§
impl Freeze for CircuitObjectiveSpec
impl RefUnwindSafe for CircuitObjectiveSpec
impl Send for CircuitObjectiveSpec
impl Sync for CircuitObjectiveSpec
impl Unpin for CircuitObjectiveSpec
impl UnsafeUnpin for CircuitObjectiveSpec
impl UnwindSafe for CircuitObjectiveSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more