class_docstr: Model (F)ine(t)unable
class_docstr_tok: ["Model","(","F",")","ine","(","t",")","unable"]
docstr: finetune model based given dataset
  
  A typical use case of finetuning model with qlib.workflow.R
  
  .. code-block:: python
  
      # start exp to train init model
      with R.start(experiment_name="init models"):
          model.fit(dataset)
          R.save_objects(init_model=model)
          rid = R.get_recorder().id
  
      # Finetune model based on previous trained model
      with R.start(experiment_name="finetune model"):
          recorder = R.get_recorder(recorder_id=rid, experiment_name="init models")
          model = recorder.load_object("init_model")
          model.finetune(dataset, num_boost_round=10)
  
  
  Parameters
  ----------
  dataset : Dataset
      dataset will generate the processed dataset from model training.
docstr_tok: ["finetune","model","based","given","dataset","A","typical","use","case","of","finetuning","model","with","qlib.workflow.R","..","code-block",":",":","python","#","start","exp","to","train","init","model","with","R.start","(","experiment_name=","''","init","models","''",")",":","model.fit","(","dataset",")","R.save_objects","(","init_model=model",")","rid","=","R.get_recorder","(",")",".id","#","Finetune","model","based","on","previous","trained","model","with","R.start","(","experiment_name=","''","finetune","model","''",")",":","recorder","=","R.get_recorder","(","recorder_id=rid",",","experiment_name=","''","init","models","''",")","model","=","recorder.load_object","(","``","init_model","''",")","model.finetune","(","dataset",",","num_boost_round=10",")","Parameters","--","--","--","--","--","dataset",":","Dataset","dataset","will","generate","the","processed","dataset","from","model","training","."]
code: def finetune(self, dataset: Dataset):
      """finetune model based given dataset
  
      A typical use case of finetuning model with qlib.workflow.R
  
      .. code-block:: python
  
          # start exp to train init model
          with R.start(experiment_name="init models"):
              model.fit(dataset)
              R.save_objects(init_model=model)
              rid = R.get_recorder().id
  
          # Finetune model based on previous trained model
          with R.start(experiment_name="finetune model"):
              recorder = R.get_recorder(recorder_id=rid, experiment_name="init models")
              model = recorder.load_object("init_model")
              model.finetune(dataset, num_boost_round=10)
  
  
      Parameters
      ----------
      dataset : Dataset
          dataset will generate the processed dataset from model training.
      """
      raise NotImplementedError()
  
file_path: qlib/qlib/model/base.py
imports: import abc
  from typing import Text, Union
  from ..utils.serial import Serializable
  from ..data.dataset import Dataset
  from ..data.dataset.weight import Reweighter
label_desc: Use image node_id 1 for calling the ModelFT obj's underlying member method code with example usage: obj.finetune(dataset) without return types