'When a different forest is given.'

def set_rf(self, model=None):

    self.clear()
    self.model = model
    if (model is not None):
        self.forest_adapter = self._get_forest_adapter(self.model)
        self._draw_trees()
        self.color_palette = self.forest_adapter.get_trees()[0]
        self.instances = model.instances
        if ((self.instances is not None) and (self.instances.domain != model.domain)):
            self.clf_dataset = self.instances.transform(self.model.domain)
        else:
            self.clf_dataset = self.instances
        self._update_info_box()
        self._update_target_class_combo()
        self._update_depth_slider()
        self.selected_tree_index = (-1)
