DistillationHyperParameters.fromJson constructor
DistillationHyperParameters.fromJson(
- Object? j
Implementation
factory DistillationHyperParameters.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return DistillationHyperParameters(
epochCount: switch (json['epochCount']) {
null => null,
Object $1 => decodeInt64($1),
},
learningRateMultiplier: switch (json['learningRateMultiplier']) {
null => null,
Object $1 => decodeDouble($1),
},
adapterSize: switch (json['adapterSize']) {
null => SupervisedHyperParameters_AdapterSize.$default,
Object $1 => SupervisedHyperParameters_AdapterSize.fromJson($1),
},
);
}