model_descriptor_to_learner: Create a Torch Learner from a ModelDescriptor

View source: R/nn_graph.R

model_descriptor_to_learnerR Documentation

Create a Torch Learner from a ModelDescriptor

Description

First a nn_graph is created using model_descriptor_to_module and then a learner is created from this module and the remaining information from the model descriptor, which must include the optimizer and loss function and optionally callbacks.

Usage

model_descriptor_to_learner(model_descriptor)

Arguments

model_descriptor

(ModelDescriptor)
The model descriptor.

Value

Learner

See Also

Other Graph Network: ModelDescriptor(), TorchIngressToken(), as_learner_torch(), mlr_learners_torch_model, mlr_pipeops_module, mlr_pipeops_torch, mlr_pipeops_torch_ingress, mlr_pipeops_torch_ingress_categ, mlr_pipeops_torch_ingress_ltnsr, mlr_pipeops_torch_ingress_num, model_descriptor_to_module(), model_descriptor_union(), nn_graph(), pipeop_torch()


mlr3torch documentation built on Oct. 30, 2026, 5:10 p.m.