⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 get_new_model_name.m

📁 一个学习自然场景类别的贝叶斯模型、基于“词袋”模型的目标分类。来源于Feifei Li的论文。是近年来的目标识别模型热点之一。
💻 M
字号:
function [fname,num] = get_new_model_name(model_dir,num_zeros)

%% little function to return filename for new model, along with its index
%% it sees how many existing models are in model_dir and generates a
%% filename for a new one.

%% input - model_dir, the full path to the model directory.

%% output - fname, full path and file name of new model
%%          num, index of new model

%%% what is the model filename prefix
model_prefix = 'model_';

%%% get list of all existing models in directory
d = dir([model_dir,'/*.mat']);

%%% get index of new model (+1 from last)
num = length(d)+1;

%%% create filename
fname = [model_dir,'/',model_prefix,prefZeros(num,num_zeros),'.mat'];

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -