def _create_model_dir(self, labels_count, sample_fmt_type, exp_type): assert(isinstance(exp_type, unicode) or exp_type is None) origin_name = super(FineTunedResultsProvider, self)._create_model_dir( labels_count=labels_count, sample_fmt_type=sample_fmt_type, exp_type=exp_type) # In such case we would like to provide # original name, i.e. the case when we # do not adopt fine-tunning in training process if exp_type is None: return origin_name ra_version = RuAttitudesVersionsService.find_by_name(exp_type) return Common.combine_tag_with_full_model_name( full_model_name=self._create_model_name( sample_fmt_type=sample_fmt_type, labels_count=labels_count), tag=Common.get_tag_by_ruattitudes_version(ra_version))
def _create_model_dir(self, labels_count, sample_fmt_type, exp_type): base_name = self._create_model_name(sample_fmt_type=sample_fmt_type, labels_count=labels_count) return Common.combine_tag_with_full_model_name(full_model_name=base_name, tag=None)