pub struct LossSpec {
pub loss_type: String,
pub params: HashMap<String, HyperparamValue>,
}Expand description
Loss function specification.
Fields§
§loss_type: StringLoss function type (e.g., “cross_entropy”, “mse”).
params: HashMap<String, HyperparamValue>Loss-specific parameters.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LossSpec
impl<'de> Deserialize<'de> for LossSpec
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
Auto Trait Implementations§
impl Freeze for LossSpec
impl RefUnwindSafe for LossSpec
impl Send for LossSpec
impl Sync for LossSpec
impl Unpin for LossSpec
impl UnsafeUnpin for LossSpec
impl UnwindSafe for LossSpec
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