pub struct StartTrainingRequest {Show 15 fields
pub project_id: ProjectID,
pub name: String,
pub experiment_id: ExperimentID,
pub trainer_type: String,
pub dataset_id: DatasetID,
pub annotation_set_id: AnnotationSetID,
pub tag_name: Option<String>,
pub train_group: Option<String>,
pub val_group: Option<String>,
pub session_name: Option<String>,
pub session_description: Option<String>,
pub weights_session: Option<TrainingSessionID>,
pub params: HashMap<String, Parameter>,
pub is_local: bool,
pub is_kubernetes: bool,
}Expand description
Request payload for client::Client::start_training_session.
Launches a new training session against a single dataset using
group-based train/validation splits. When train_group / val_group
are None, the dataset’s default split groups ("train" / "val")
are used. When tag_name is None, the dataset’s most recent tag is
used.
The hyperparameters in params are trainer-specific; query the
trainer’s parameter schema with Client::trainer_schema (using a
schema_type from Client::trainer_schemas) to discover the
accepted parameter names, defaults, and ranges.
Set is_local: true for a user-managed session: the session row
is created and fully usable for artifact/metric uploads, but no cloud
instance is provisioned — the caller runs the training loop
themselves. is_kubernetes: true schedules onto the organization’s
Kubernetes runner; with both flags false the server provisions a
cloud (AWS EC2) instance.
Fields§
§project_id: ProjectIDProject owning the experiment and dataset.
name: StringName for the session’s background task.
experiment_id: ExperimentIDExperiment (trainer) the session belongs to.
trainer_type: StringTrainer schema type (e.g. "modelpack"), from
Client::trainer_schemas.
dataset_id: DatasetIDDataset to train on.
annotation_set_id: AnnotationSetIDAnnotation set providing the ground-truth labels.
tag_name: Option<String>Dataset tag to train against; None selects the latest tag (resolved
via the legacy Tag/Client::dataset_tags list, not
VersionTag/Client::version_tag_list).
train_group: Option<String>Training split group name; None uses the default "train".
val_group: Option<String>Validation split group name; None uses the default "val".
session_name: Option<String>Display name for the training session itself; None uses the
task name.
session_description: Option<String>Optional description for the training session.
weights_session: Option<TrainingSessionID>Optional source session for transfer-learning weights.
params: HashMap<String, Parameter>Trainer hyperparameters, keyed by schema parameter name.
is_local: boolCreate a user-managed session (no cloud instance).
is_kubernetes: boolSchedule onto the organization’s Kubernetes runner.
Trait Implementations§
Source§impl Clone for StartTrainingRequest
impl Clone for StartTrainingRequest
Source§fn clone(&self) -> StartTrainingRequest
fn clone(&self) -> StartTrainingRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for StartTrainingRequest
impl RefUnwindSafe for StartTrainingRequest
impl Send for StartTrainingRequest
impl Sync for StartTrainingRequest
impl Unpin for StartTrainingRequest
impl UnsafeUnpin for StartTrainingRequest
impl UnwindSafe for StartTrainingRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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