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

📄 calc_weights.m

📁 一个关于adaboost算法的matlab程序
💻 M
字号:
function [rn,w]=calc_weigths(rn, dataset)
% [rn,w]=rbf_net_lsrc_w_fast.calc_weigths(rn, dataset)
%

%   G. Raetsch 1.6.98
%   Copyright (c) 1998  GMD Berlin - All rights reserved
%   THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE of GMD FIRST Berlin
%   The copyright notice above does not evidence any
%   actual or intended publication of this work.
%   Please see COPYRIGHT.txt for details.

dataset=data_w(dataset) ;
  
[H, Inp]= design_rbf(get_train(dataset, 1), get_C(rn), get_R(rn)) ;

rn=set_idim(rn, get_idim(dataset)) ;
[w,f]=ls_solve_w(H, get_train(dataset,2)', ...
    get_sampl_weights(dataset)', get_lambda(rn)) ;
if f>0,
%  disp('  In order to solve the linear system resulting from the ls-optimization')
  disp([' The regularization constant was increased to \lambda=' num2str(f)]) ;
end ;
  
rn=set_w(rn, w) ;

⌨️ 快捷键说明

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