资源简介
适合centos7平台,Mahout 是 Apache Software Foundation(ASF) 旗下的一个开源项目,提供一些可扩展的机器学习领域经典算法的实现,旨在帮助开发人员更加方便快捷地创建智能应用程序。Mahout包含许多实现,包括聚类、分类、推荐过滤、频繁子项挖掘。此外,通过使用 Apache Hadoop 库,Mahout 可以有效地扩展到云中。
代码片段和文件信息
function A = allcomb(varargin)
% ALLCOMB - All combinations
% B = ALLCOMB(A1A2A3...AN) returns all combinations of the elements
% in A1 A2 ... and AN. B is P-by-N matrix is which P is the product
% of the number of elements of the N inputs.
% Empty inputs yields an empty matrix B of size 0-by-N. Note that
% previous versions (1.x) simply ignored empty inputs.
%
% Example:
% allcomb([1 3 5][-3 8][0 1]) ;
% 1 -3 0
% 1 -3 1
% 1 8 0
% ...
% 5 -3 1
% 5 8 0
% 5 8 1
%
% ALLCOMB(A1..AN‘matlab‘) causes the first column to change fastest.
% This is more consistent with matlab indexing. Example:
% allcomb(1:23:45:6‘matlab‘) %->
% 1 3 5
% 2 3 5
% 1 4 5
% ...
% 2 4 6
%
% This functionality is also known as the cartesian product.
%
% See also NCHOOSEK PERMS
% and COMBN (Matlab Central FEX)
% for Matlab R13+
% version 2.1 (feb 2011)
% (c) Jos van der Geest
% email: jos@jasen.nl
% History
% 1.1 (feb 2006) removed minor bug when entering empty cell arrays;
% added option to let the first input run fastest (suggestion by JD)
% 1.2 (jan 2010) using ii as an index on the left-hand for the multiple
% output by NDGRID. Thanks to Jan Simon for showing this little trick
% 2.0 (dec 2010). Bruno Luong convinced me that an empty input should
% return an empty output.
% 2.1 (feb 2011). A cell as input argument caused the check on the last
% argument (specifying the order) to crash.
error(nargchk(1Infnargin)) ;
% check for empty inputs
q = ~cellfun(‘isempty‘varargin) ;
if any(~q)
warning(‘ALLCOMB:EmptyInput‘‘Empty inputs result in an empty output.‘) ;
A = zeros(0nargin) ;
else
ni = sum(q) ;
argn = varargin{end} ;
ischar(argn)
if ischar(argn) && (strcmpi(argn‘matlab‘) || strcmpi(argn‘john‘))
% based on a suggestion by JD on the FEX
ni = ni-1 ;
ii = 1:ni ;
q(end) = 0 ;
else
% enter arguments backwards so last one (AN) is changing fastest
ii = ni:-1:1 ;
end
if ni==0
A = [] ;
else
args = varargin(q) ;
if ~all(cellfun(‘isclass‘args‘double‘))
error(‘All arguments should be arrays of doubles‘) ;
end
if ni==1
A = args{1}(:) ;
else
% flip using ii if last column is changing fastest
[A{ii}] = ndgrid(args{ii}) ;
% concatenate
A = reshape(cat(ni+1A{:})[]ni) ;
end
end
end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2618 2014-05-11 05:46 DBN实例1\allcomb.m
文件 93015 2015-01-21 08:57 DBN实例1\data1.mat
文件 92845 2015-01-21 08:57 DBN实例1\data2.mat
文件 92937 2015-01-21 08:57 DBN实例1\data3.mat
文件 93438 2015-01-21 08:57 DBN实例1\data4.mat
文件 671 2015-02-20 21:03 DBN实例1\dbnsetup.asv
文件 665 2015-02-20 21:06 DBN实例1\dbnsetup.m
文件 254 2015-02-11 19:10 DBN实例1\dbntrain.asv
文件 308 2015-02-11 19:12 DBN实例1\dbntrain.m
文件 674 2015-02-21 22:00 DBN实例1\dbnunfoldtonn.asv
文件 674 2015-02-21 22:00 DBN实例1\dbnunfoldtonn.m
文件 1958 2014-05-11 05:46 DBN实例1\expand.m
文件 208 2014-05-11 05:46 DBN实例1\flicker.m
文件 80 2014-05-11 05:46 DBN实例1\flipall.m
文件 543 2014-05-11 05:46 DBN实例1\fliplrf.m
文件 576 2014-05-11 05:46 DBN实例1\flipudf.m
文件 313 2014-05-11 05:46 DBN实例1\im2patches.m
文件 108 2014-05-11 05:46 DBN实例1\isOctave.m
文件 1895 2014-05-11 05:46 DBN实例1\makeLMfilters.m
文件 14735220 2014-05-11 05:46 DBN实例1\mnist_uint8.mat
文件 169 2014-05-11 05:46 DBN实例1\myOctaveVersion.m
文件 641 2015-02-11 18:32 DBN实例1\nnapplygrads.m
文件 1691 2015-02-11 18:24 DBN实例1\nnbp.m
文件 704 2014-05-11 05:46 DBN实例1\nnchecknumgrad.m
文件 811 2014-05-11 05:46 DBN实例1\nneval.m
文件 2225 2015-02-11 21:12 DBN实例1\nnff.asv
文件 2225 2015-02-11 21:12 DBN实例1\nnff.m
文件 192 2014-05-11 05:46 DBN实例1\nnpredict.m
文件 2032 2015-02-11 17:01 DBN实例1\nnsetup.m
文件 191 2017-12-31 15:18 DBN实例1\nntest.m
............此处省略29个文件信息
- 上一篇:KaoQinMS.zip
- 下一篇:visual studio插件开发
评论
共有 条评论