FineTuneMethod class
The method used for fine-tuning.
Supports supervised, DPO (Direct Preference Optimization), and reinforcement learning methods.
- Annotations
-
- @immutable
Constructors
- FineTuneMethod({required String type, FineTuneSupervisedMethod? supervised, FineTuneDPOMethod? dpo, FineTuneReinforcementMethod? reinforcement})
-
Creates a FineTuneMethod.
const
- FineTuneMethod.dpo({FineTuneDPOMethod? config})
-
Creates a DPO fine-tune method.
factory
-
FineTuneMethod.fromJson(Map<
String, dynamic> json) -
Creates a FineTuneMethod from JSON.
factory
- FineTuneMethod.reinforcement({required FineTuneReinforcementMethod config})
-
Creates a reinforcement fine-tune method.
factory
- FineTuneMethod.supervised({FineTuneSupervisedMethod? config})
-
Creates a supervised fine-tune method.
factory
Properties
- dpo → FineTuneDPOMethod?
-
Configuration for DPO fine-tuning.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- reinforcement → FineTuneReinforcementMethod?
-
Configuration for reinforcement fine-tuning.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supervised → FineTuneSupervisedMethod?
-
Configuration for supervised fine-tuning.
final
- type → String
-
The type of method:
supervised,dpo, orreinforcement.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts to JSON.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override