pub struct MethodsPlsPredictDataProvider { /* private fields */ }Expand description
Native, in-memory data provider for target-free Methods PLS PREDICT.
It is deliberately PREDICT-only: training must use a provider that can
produce the complete target-bound [TrainingDataIdentity]. The provider
owns only row-major values already materialized by the upstream IO layer;
it delegates data/view handles and envelope identity checks to the normal
runtime provider rather than bypassing the scheduler.
Implementations§
Source§impl MethodsPlsPredictDataProvider
impl MethodsPlsPredictDataProvider
pub fn new<I>(
owner_controller: ControllerId,
bindings: I,
envelopes: BTreeMap<String, ExternalDataPlanEnvelope>,
inputs: BTreeMap<String, MethodsPlsPredictInput>,
) -> Result<MethodsPlsPredictDataProvider, DagMlError>where
I: IntoIterator<Item = DataBinding>,
Trait Implementations§
Source§impl RuntimeDataProvider for MethodsPlsPredictDataProvider
impl RuntimeDataProvider for MethodsPlsPredictDataProvider
fn materialize( &self, request: &DataMaterializationRequest, ) -> Result<HandleRef, DagMlError>
fn make_view(&self, request: &DataViewRequest) -> Result<HandleRef, DagMlError>
Source§fn training_data_identity(
&self,
binding: &DataBinding,
) -> Result<Option<TrainingDataIdentity>, DagMlError>
fn training_data_identity( &self, binding: &DataBinding, ) -> Result<Option<TrainingDataIdentity>, DagMlError>
Attest the exact feature and target content bound to one training input. Read more
fn coordinator_relations( &self, binding: &DataBinding, ) -> Result<Option<SampleRelationSet>, DagMlError>
Source§fn methods_pls_capability(&self) -> Result<(), DagMlError>
fn methods_pls_capability(&self) -> Result<(), DagMlError>
Confirm that this provider can supply the deliberately narrow numeric
view consumed by the portable Methods PLS controller. The default is a
refusal, so an ordinary data provider can never accidentally expose its
buffers to a native numerical controller.
fn preflight_methods_pls( &self, request: &MethodsPlsDataRequest, ) -> Result<(), DagMlError>
Source§fn methods_pls_data(
&self,
request: &MethodsPlsDataRequest,
) -> Result<MethodsPlsData, DagMlError>
fn methods_pls_data( &self, request: &MethodsPlsDataRequest, ) -> Result<MethodsPlsData, DagMlError>
Return provider-selected row-major numeric values for a Methods PLS
invocation. This is not a raw IO escape hatch: the request carries the
scheduler-created, identity-keyed data views and the provider is solely
responsible for resolving them to rows and targets.
Auto Trait Implementations§
impl !Freeze for MethodsPlsPredictDataProvider
impl !RefUnwindSafe for MethodsPlsPredictDataProvider
impl !Sync for MethodsPlsPredictDataProvider
impl Send for MethodsPlsPredictDataProvider
impl Unpin for MethodsPlsPredictDataProvider
impl UnsafeUnpin for MethodsPlsPredictDataProvider
impl UnwindSafe for MethodsPlsPredictDataProvider
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