20#ifndef _dataanalysis_pkg_h
21#define _dataanalysis_pkg_h
23#include "alglibinternal.h"
25#include "alglibmisc.h"
26#include "statistics.h"
27#include "specialfunctions.h"
29#include "optimization.h"
61 ae_int_t hlnetworktype;
100 double cvavgrelerror;
157 ae_int_t repinneriterationscount;
158 ae_int_t repouteriterationscount;
160 ae_int_t repterminationtype;
173 ae_int_t inneriterationscount;
174 ae_int_t outeriterationscount;
176 ae_int_t terminationtype;
180 ae_int_t ensemblesize;
210 ae_bool randomizenetwork;
220 ae_int_t minibatchsize;
236 ae_int_t lbfgsfactor;
249 ae_int_t valsubsetsize;
251 ae_int_t minibatchsize;
283 ae_int_t kmeansrestarts;
284 ae_int_t kmeansmaxits;
285 ae_int_t kmeansinitalgo;
286 ae_bool kmeansdbgnoits;
293 ae_int_t terminationtype;
305 ae_int_t terminationtype;
306 ae_int_t iterationscount;
327 double oobrelclserror;
331 double oobavgrelerror;
499 double &cvavgrelerror;
500 ae_int_t &ncvdefects;
627 ae_int_t &inneriterationscount;
628 ae_int_t &outeriterationscount;
630 ae_int_t &terminationtype;
918 ae_int_t &terminationtype;
986 ae_int_t &terminationtype;
987 ae_int_t &iterationscount;
1043 double &relclserror;
1047 double &avgrelerror;
1048 double &oobrelclserror;
1050 double &oobrmserror;
1051 double &oobavgerror;
1052 double &oobavgrelerror;
1182void pcatruncatedsubspace(
const real_2d_array &x,
const ae_int_t npoints,
const ae_int_t nvars,
const ae_int_t nneeded,
const double eps,
const ae_int_t maxits,
real_1d_array &s2,
real_2d_array &v);
1183void smp_pcatruncatedsubspace(
const real_2d_array &x,
const ae_int_t npoints,
const ae_int_t nvars,
const ae_int_t nneeded,
const double eps,
const ae_int_t maxits,
real_1d_array &s2,
real_2d_array &v);
1212void dsoptimalsplit2(
const real_1d_array &a,
const integer_1d_array &c,
const ae_int_t n, ae_int_t &info,
double &threshold,
double &pal,
double &pbl,
double &par,
double &pbr,
double &cve);
1239void dsoptimalsplit2fast(
real_1d_array &a,
integer_1d_array &c,
integer_1d_array &tiesbuf,
integer_1d_array &cntbuf,
real_1d_array &bufr,
integer_1d_array &bufi,
const ae_int_t n,
const ae_int_t nc,
const double alpha, ae_int_t &info,
double &threshold,
double &rms,
double &cvrms);
1310void mlpcreate1(
const ae_int_t nin,
const ae_int_t nhid,
const ae_int_t nout,
multilayerperceptron &network);
1321void mlpcreate2(
const ae_int_t nin,
const ae_int_t nhid1,
const ae_int_t nhid2,
const ae_int_t nout,
multilayerperceptron &network);
1341void mlpcreateb0(
const ae_int_t nin,
const ae_int_t nout,
const double b,
const double d,
multilayerperceptron &network);
1350void mlpcreateb1(
const ae_int_t nin,
const ae_int_t nhid,
const ae_int_t nout,
const double b,
const double d,
multilayerperceptron &network);
1359void mlpcreateb2(
const ae_int_t nin,
const ae_int_t nhid1,
const ae_int_t nhid2,
const ae_int_t nout,
const double b,
const double d,
multilayerperceptron &network);
1370void mlpcreater0(
const ae_int_t nin,
const ae_int_t nout,
const double a,
const double b,
multilayerperceptron &network);
1379void mlpcreater1(
const ae_int_t nin,
const ae_int_t nhid,
const ae_int_t nout,
const double a,
const double b,
multilayerperceptron &network);
1388void mlpcreater2(
const ae_int_t nin,
const ae_int_t nhid1,
const ae_int_t nhid2,
const ae_int_t nout,
const double a,
const double b,
multilayerperceptron &network);
1409void mlpcreatec1(
const ae_int_t nin,
const ae_int_t nhid,
const ae_int_t nout,
multilayerperceptron &network);
1418void mlpcreatec2(
const ae_int_t nin,
const ae_int_t nhid1,
const ae_int_t nhid2,
const ae_int_t nout,
multilayerperceptron &network);
1491void mlpproperties(
const multilayerperceptron &network, ae_int_t &nin, ae_int_t &nout, ae_int_t &wcount);
1574void mlpgetinputscaling(
const multilayerperceptron &network,
const ae_int_t i,
double &mean,
double &sigma);
1597void mlpgetoutputscaling(
const multilayerperceptron &network,
const ae_int_t i,
double &mean,
double &sigma);
1620void mlpgetneuroninfo(
const multilayerperceptron &network,
const ae_int_t k,
const ae_int_t i, ae_int_t &fkind,
double &threshold);
1644double mlpgetweight(
const multilayerperceptron &network,
const ae_int_t k0,
const ae_int_t i0,
const ae_int_t k1,
const ae_int_t i1);
1664void mlpsetinputscaling(
const multilayerperceptron &network,
const ae_int_t i,
const double mean,
const double sigma);
1688void mlpsetoutputscaling(
const multilayerperceptron &network,
const ae_int_t i,
const double mean,
const double sigma);
1717void mlpsetneuroninfo(
const multilayerperceptron &network,
const ae_int_t k,
const ae_int_t i,
const ae_int_t fkind,
const double threshold);
1741void mlpsetweight(
const multilayerperceptron &network,
const ae_int_t k0,
const ae_int_t i0,
const ae_int_t k1,
const ae_int_t i1,
const double w);
1759void mlpactivationfunction(
const double net,
const ae_int_t k,
double &f,
double &df,
double &d2f);
3363void fisherlda(
const real_2d_array &xy,
const ae_int_t npoints,
const ae_int_t nvars,
const ae_int_t nclasses, ae_int_t &info,
real_1d_array &w);
3425void fisherldan(
const real_2d_array &xy,
const ae_int_t npoints,
const ae_int_t nvars,
const ae_int_t nclasses, ae_int_t &info,
real_2d_array &w);
3426void smp_fisherldan(
const real_2d_array &xy,
const ae_int_t npoints,
const ae_int_t nvars,
const ae_int_t nclasses, ae_int_t &info,
real_2d_array &w);
3663void filtersma(
real_1d_array &x,
const ae_int_t n,
const ae_int_t k);
3698void filterema(
real_1d_array &x,
const ae_int_t n,
const double alpha);
3741void filterlrma(
real_1d_array &x,
const ae_int_t n,
const ae_int_t k);
3770void mnltrainh(
const real_2d_array &xy,
const ae_int_t npoints,
const ae_int_t nvars,
const ae_int_t nclasses, ae_int_t &info,
logitmodel &lm,
mnlreport &rep);
3998void mcpdcreate(
const ae_int_t n,
mcpdstate &s);
4047void mcpdcreateentry(
const ae_int_t n,
const ae_int_t entrystate,
mcpdstate &s);
4096void mcpdcreateexit(
const ae_int_t n,
const ae_int_t exitstate,
mcpdstate &s);
4156void mcpdcreateentryexit(
const ae_int_t n,
const ae_int_t entrystate,
const ae_int_t exitstate,
mcpdstate &s);
4306void mcpdaddec(
const mcpdstate &s,
const ae_int_t i,
const ae_int_t j,
const double c);
4408void mcpdaddbc(
const mcpdstate &s,
const ae_int_t i,
const ae_int_t j,
const double bndl,
const double bndu);
4476void mcpdsettikhonovregularizer(
const mcpdstate &s,
const double v);
4585void mlpeserialize(
mlpensemble &obj, std::string &s_out);
4591void mlpeunserialize(
const std::string &s_in,
mlpensemble &obj);
4607void mlpeserialize(
mlpensemble &obj, std::ostream &s_out);
4613void mlpeunserialize(
const std::istream &s_in,
mlpensemble &obj);
4622void mlpecreate0(
const ae_int_t nin,
const ae_int_t nout,
const ae_int_t ensemblesize,
mlpensemble &ensemble);
4631void mlpecreate1(
const ae_int_t nin,
const ae_int_t nhid,
const ae_int_t nout,
const ae_int_t ensemblesize,
mlpensemble &ensemble);
4640void mlpecreate2(
const ae_int_t nin,
const ae_int_t nhid1,
const ae_int_t nhid2,
const ae_int_t nout,
const ae_int_t ensemblesize,
mlpensemble &ensemble);
4649void mlpecreateb0(
const ae_int_t nin,
const ae_int_t nout,
const double b,
const double d,
const ae_int_t ensemblesize,
mlpensemble &ensemble);
4658void mlpecreateb1(
const ae_int_t nin,
const ae_int_t nhid,
const ae_int_t nout,
const double b,
const double d,
const ae_int_t ensemblesize,
mlpensemble &ensemble);
4667void mlpecreateb2(
const ae_int_t nin,
const ae_int_t nhid1,
const ae_int_t nhid2,
const ae_int_t nout,
const double b,
const double d,
const ae_int_t ensemblesize,
mlpensemble &ensemble);
4676void mlpecreater0(
const ae_int_t nin,
const ae_int_t nout,
const double a,
const double b,
const ae_int_t ensemblesize,
mlpensemble &ensemble);
4685void mlpecreater1(
const ae_int_t nin,
const ae_int_t nhid,
const ae_int_t nout,
const double a,
const double b,
const ae_int_t ensemblesize,
mlpensemble &ensemble);
4694void mlpecreater2(
const ae_int_t nin,
const ae_int_t nhid1,
const ae_int_t nhid2,
const ae_int_t nout,
const double a,
const double b,
const ae_int_t ensemblesize,
mlpensemble &ensemble);
4703void mlpecreatec0(
const ae_int_t nin,
const ae_int_t nout,
const ae_int_t ensemblesize,
mlpensemble &ensemble);
4712void mlpecreatec1(
const ae_int_t nin,
const ae_int_t nhid,
const ae_int_t nout,
const ae_int_t ensemblesize,
mlpensemble &ensemble);
4721void mlpecreatec2(
const ae_int_t nin,
const ae_int_t nhid1,
const ae_int_t nhid2,
const ae_int_t nout,
const ae_int_t ensemblesize,
mlpensemble &ensemble);
4748void mlpeproperties(
const mlpensemble &ensemble, ae_int_t &nin, ae_int_t &nout);
4958void mlptrainlbfgs(
const multilayerperceptron &network,
const real_2d_array &xy,
const ae_int_t npoints,
const double decay,
const ae_int_t restarts,
const double wstep,
const ae_int_t maxits, ae_int_t &info,
mlpreport &rep);
5043void mlpkfoldcvlbfgs(
const multilayerperceptron &network,
const real_2d_array &xy,
const ae_int_t npoints,
const double decay,
const ae_int_t restarts,
const double wstep,
const ae_int_t maxits,
const ae_int_t foldscount, ae_int_t &info,
mlpreport &rep,
mlpcvreport &cvrep);
5175void mlpcreatetrainer(
const ae_int_t nin,
const ae_int_t nout,
mlptrainer &s);
5193void mlpcreatetrainercls(
const ae_int_t nin,
const ae_int_t nclasses,
mlptrainer &s);
5287void mlpsetdecay(
const mlptrainer &s,
const double decay);
5316void mlpsetcond(
const mlptrainer &s,
const double wstep,
const ae_int_t maxits);
5611void mlpebagginglbfgs(
const mlpensemble &ensemble,
const real_2d_array &xy,
const ae_int_t npoints,
const double decay,
const ae_int_t restarts,
const double wstep,
const ae_int_t maxits, ae_int_t &info,
mlpreport &rep,
mlpcvreport &ooberrors);
5638void mlpetraines(
const mlpensemble &ensemble,
const real_2d_array &xy,
const ae_int_t npoints,
const double decay,
const ae_int_t restarts, ae_int_t &info,
mlpreport &rep);
5772void clusterizersetpoints(
const clusterizerstate &s,
const real_2d_array &xy,
const ae_int_t npoints,
const ae_int_t nfeatures,
const ae_int_t disttype);
5851void clusterizersetkmeanslimits(
const clusterizerstate &s,
const ae_int_t restarts,
const ae_int_t maxits);
5879void clusterizersetkmeansinit(
const clusterizerstate &s,
const ae_int_t initalgo);
6042void clusterizergetdistances(
const real_2d_array &xy,
const ae_int_t npoints,
const ae_int_t nfeatures,
const ae_int_t disttype,
real_2d_array &d);
6043void smp_clusterizergetdistances(
const real_2d_array &xy,
const ae_int_t npoints,
const ae_int_t nfeatures,
const ae_int_t disttype,
real_2d_array &d);
6243void dfunserialize(
const std::istream &s_in,
decisionforest &obj);
6279void dfbuildrandomdecisionforest(
const real_2d_array &xy,
const ae_int_t npoints,
const ae_int_t nvars,
const ae_int_t nclasses,
const ae_int_t ntrees,
const double r, ae_int_t &info,
decisionforest &df,
dfreport &rep);
6318void dfbuildrandomdecisionforestx1(
const real_2d_array &xy,
const ae_int_t npoints,
const ae_int_t nvars,
const ae_int_t nclasses,
const ae_int_t ntrees,
const ae_int_t nrndvars,
const double r, ae_int_t &info,
decisionforest &df,
dfreport &rep);
6463namespace alglib_impl
6465void pcabuildbasis( ae_matrix* x,
6472void _pexec_pcabuildbasis( ae_matrix* x,
6477 ae_matrix* v, ae_state *_state);
6478void pcatruncatedsubspace( ae_matrix* x,
6487void _pexec_pcatruncatedsubspace( ae_matrix* x,
6494 ae_matrix* v, ae_state *_state);
6495void dserrallocate(ae_int_t nclasses,
6498void dserraccumulate( ae_vector* buf,
6500 ae_vector* desiredy,
6502void dserrfinish( ae_vector* buf, ae_state *_state);
6503void dsnormalize( ae_matrix* xy,
6510void dsnormalizec( ae_matrix* xy,
6517double dsgetmeanmindistance( ae_matrix* xy,
6521void dstie( ae_vector* a,
6528void dstiefasti( ae_vector* a,
6536void dsoptimalsplit2( ae_vector* a,
6547void dsoptimalsplit2fast( ae_vector* a,
6561void dssplitk( ae_vector* a,
6567 ae_vector* thresholds,
6571void dsoptimalsplitk( ae_vector* a,
6577 ae_vector* thresholds,
6581void _cvreport_init(
void* _p, ae_state *_state);
6582void _cvreport_init_copy(
void* _dst,
void* _src, ae_state *_state);
6583void _cvreport_clear(
void* _p);
6584void _cvreport_destroy(
void* _p);
6585ae_int_t mlpgradsplitcost(ae_state *_state);
6586ae_int_t mlpgradsplitsize(ae_state *_state);
6587void mlpcreate0(ae_int_t nin,
6589 multilayerperceptron* network,
6591void mlpcreate1(ae_int_t nin,
6594 multilayerperceptron* network,
6596void mlpcreate2(ae_int_t nin,
6600 multilayerperceptron* network,
6602void mlpcreateb0(ae_int_t nin,
6606 multilayerperceptron* network,
6608void mlpcreateb1(ae_int_t nin,
6613 multilayerperceptron* network,
6615void mlpcreateb2(ae_int_t nin,
6621 multilayerperceptron* network,
6623void mlpcreater0(ae_int_t nin,
6627 multilayerperceptron* network,
6629void mlpcreater1(ae_int_t nin,
6634 multilayerperceptron* network,
6636void mlpcreater2(ae_int_t nin,
6642 multilayerperceptron* network,
6644void mlpcreatec0(ae_int_t nin,
6646 multilayerperceptron* network,
6648void mlpcreatec1(ae_int_t nin,
6651 multilayerperceptron* network,
6653void mlpcreatec2(ae_int_t nin,
6657 multilayerperceptron* network,
6659void mlpcopy(multilayerperceptron* network1,
6660 multilayerperceptron* network2,
6662void mlpcopyshared(multilayerperceptron* network1,
6663 multilayerperceptron* network2,
6665ae_bool mlpsamearchitecture(multilayerperceptron* network1,
6666 multilayerperceptron* network2,
6668void mlpcopytunableparameters(multilayerperceptron* network1,
6669 multilayerperceptron* network2,
6671void mlpexporttunableparameters(multilayerperceptron* network,
6675void mlpimporttunableparameters(multilayerperceptron* network,
6678void mlpserializeold(multilayerperceptron* network,
6682void mlpunserializeold( ae_vector* ra,
6683 multilayerperceptron* network,
6685void mlprandomize(multilayerperceptron* network, ae_state *_state);
6686void mlprandomizefull(multilayerperceptron* network, ae_state *_state);
6687void mlpinitpreprocessor(multilayerperceptron* network,
6691void mlpinitpreprocessorsparse(multilayerperceptron* network,
6695void mlpinitpreprocessorsubset(multilayerperceptron* network,
6699 ae_int_t subsetsize,
6701void mlpinitpreprocessorsparsesubset(multilayerperceptron* network,
6705 ae_int_t subsetsize,
6707void mlpproperties(multilayerperceptron* network,
6712ae_int_t mlpntotal(multilayerperceptron* network, ae_state *_state);
6713ae_int_t mlpgetinputscount(multilayerperceptron* network,
6715ae_int_t mlpgetoutputscount(multilayerperceptron* network,
6717ae_int_t mlpgetweightscount(multilayerperceptron* network,
6719ae_bool mlpissoftmax(multilayerperceptron* network, ae_state *_state);
6720ae_int_t mlpgetlayerscount(multilayerperceptron* network,
6722ae_int_t mlpgetlayersize(multilayerperceptron* network,
6725void mlpgetinputscaling(multilayerperceptron* network,
6730void mlpgetoutputscaling(multilayerperceptron* network,
6735void mlpgetneuroninfo(multilayerperceptron* network,
6741double mlpgetweight(multilayerperceptron* network,
6747void mlpsetinputscaling(multilayerperceptron* network,
6752void mlpsetoutputscaling(multilayerperceptron* network,
6757void mlpsetneuroninfo(multilayerperceptron* network,
6763void mlpsetweight(multilayerperceptron* network,
6770void mlpactivationfunction(
double net,
6776void mlpprocess(multilayerperceptron* network,
6780void mlpprocessi(multilayerperceptron* network,
6784double mlperror(multilayerperceptron* network,
6788double _pexec_mlperror(multilayerperceptron* network,
6790 ae_int_t npoints, ae_state *_state);
6791double mlperrorsparse(multilayerperceptron* network,
6795double _pexec_mlperrorsparse(multilayerperceptron* network,
6797 ae_int_t npoints, ae_state *_state);
6798double mlperrorn(multilayerperceptron* network,
6802ae_int_t mlpclserror(multilayerperceptron* network,
6806ae_int_t _pexec_mlpclserror(multilayerperceptron* network,
6808 ae_int_t npoints, ae_state *_state);
6809double mlprelclserror(multilayerperceptron* network,
6813double _pexec_mlprelclserror(multilayerperceptron* network,
6815 ae_int_t npoints, ae_state *_state);
6816double mlprelclserrorsparse(multilayerperceptron* network,
6820double _pexec_mlprelclserrorsparse(multilayerperceptron* network,
6822 ae_int_t npoints, ae_state *_state);
6823double mlpavgce(multilayerperceptron* network,
6827double _pexec_mlpavgce(multilayerperceptron* network,
6829 ae_int_t npoints, ae_state *_state);
6830double mlpavgcesparse(multilayerperceptron* network,
6834double _pexec_mlpavgcesparse(multilayerperceptron* network,
6836 ae_int_t npoints, ae_state *_state);
6837double mlprmserror(multilayerperceptron* network,
6841double _pexec_mlprmserror(multilayerperceptron* network,
6843 ae_int_t npoints, ae_state *_state);
6844double mlprmserrorsparse(multilayerperceptron* network,
6848double _pexec_mlprmserrorsparse(multilayerperceptron* network,
6850 ae_int_t npoints, ae_state *_state);
6851double mlpavgerror(multilayerperceptron* network,
6855double _pexec_mlpavgerror(multilayerperceptron* network,
6857 ae_int_t npoints, ae_state *_state);
6858double mlpavgerrorsparse(multilayerperceptron* network,
6862double _pexec_mlpavgerrorsparse(multilayerperceptron* network,
6864 ae_int_t npoints, ae_state *_state);
6865double mlpavgrelerror(multilayerperceptron* network,
6869double _pexec_mlpavgrelerror(multilayerperceptron* network,
6871 ae_int_t npoints, ae_state *_state);
6872double mlpavgrelerrorsparse(multilayerperceptron* network,
6876double _pexec_mlpavgrelerrorsparse(multilayerperceptron* network,
6878 ae_int_t npoints, ae_state *_state);
6879void mlpgrad(multilayerperceptron* network,
6881 ae_vector* desiredy,
6885void mlpgradn(multilayerperceptron* network,
6887 ae_vector* desiredy,
6891void mlpgradbatch(multilayerperceptron* network,
6897void _pexec_mlpgradbatch(multilayerperceptron* network,
6901 ae_vector* grad, ae_state *_state);
6902void mlpgradbatchsparse(multilayerperceptron* network,
6908void _pexec_mlpgradbatchsparse(multilayerperceptron* network,
6912 ae_vector* grad, ae_state *_state);
6913void mlpgradbatchsubset(multilayerperceptron* network,
6917 ae_int_t subsetsize,
6921void _pexec_mlpgradbatchsubset(multilayerperceptron* network,
6925 ae_int_t subsetsize,
6927 ae_vector* grad, ae_state *_state);
6928void mlpgradbatchsparsesubset(multilayerperceptron* network,
6932 ae_int_t subsetsize,
6936void _pexec_mlpgradbatchsparsesubset(multilayerperceptron* network,
6940 ae_int_t subsetsize,
6942 ae_vector* grad, ae_state *_state);
6943void mlpgradbatchx(multilayerperceptron* network,
6945 sparsematrix* sparsexy,
6946 ae_int_t datasetsize,
6947 ae_int_t datasettype,
6951 ae_int_t subsettype,
6952 ae_shared_pool* buf,
6953 ae_shared_pool* gradbuf,
6955void mlpgradnbatch(multilayerperceptron* network,
6961void mlphessiannbatch(multilayerperceptron* network,
6968void mlphessianbatch(multilayerperceptron* network,
6975void mlpinternalprocessvector( ae_vector* structinfo,
6977 ae_vector* columnmeans,
6978 ae_vector* columnsigmas,
6984void mlpalloc(ae_serializer* s,
6985 multilayerperceptron* network,
6987void mlpserialize(ae_serializer* s,
6988 multilayerperceptron* network,
6990void mlpunserialize(ae_serializer* s,
6991 multilayerperceptron* network,
6993void mlpallerrorssubset(multilayerperceptron* network,
6997 ae_int_t subsetsize,
7000void _pexec_mlpallerrorssubset(multilayerperceptron* network,
7004 ae_int_t subsetsize,
7005 modelerrors* rep, ae_state *_state);
7006void mlpallerrorssparsesubset(multilayerperceptron* network,
7010 ae_int_t subsetsize,
7013void _pexec_mlpallerrorssparsesubset(multilayerperceptron* network,
7017 ae_int_t subsetsize,
7018 modelerrors* rep, ae_state *_state);
7019double mlperrorsubset(multilayerperceptron* network,
7023 ae_int_t subsetsize,
7025double _pexec_mlperrorsubset(multilayerperceptron* network,
7029 ae_int_t subsetsize, ae_state *_state);
7030double mlperrorsparsesubset(multilayerperceptron* network,
7034 ae_int_t subsetsize,
7036double _pexec_mlperrorsparsesubset(multilayerperceptron* network,
7040 ae_int_t subsetsize, ae_state *_state);
7041void mlpallerrorsx(multilayerperceptron* network,
7043 sparsematrix* sparsexy,
7044 ae_int_t datasetsize,
7045 ae_int_t datasettype,
7049 ae_int_t subsettype,
7050 ae_shared_pool* buf,
7053void _modelerrors_init(
void* _p, ae_state *_state);
7054void _modelerrors_init_copy(
void* _dst,
void* _src, ae_state *_state);
7055void _modelerrors_clear(
void* _p);
7056void _modelerrors_destroy(
void* _p);
7057void _smlpgrad_init(
void* _p, ae_state *_state);
7058void _smlpgrad_init_copy(
void* _dst,
void* _src, ae_state *_state);
7059void _smlpgrad_clear(
void* _p);
7060void _smlpgrad_destroy(
void* _p);
7061void _multilayerperceptron_init(
void* _p, ae_state *_state);
7062void _multilayerperceptron_init_copy(
void* _dst,
void* _src, ae_state *_state);
7063void _multilayerperceptron_clear(
void* _p);
7064void _multilayerperceptron_destroy(
void* _p);
7065void fisherlda( ae_matrix* xy,
7072void fisherldan( ae_matrix* xy,
7079void _pexec_fisherldan( ae_matrix* xy,
7084 ae_matrix* w, ae_state *_state);
7085void lrbuild( ae_matrix* xy,
7092void lrbuilds( ae_matrix* xy,
7100void lrbuildzs( ae_matrix* xy,
7108void lrbuildz( ae_matrix* xy,
7115void lrunpack(linearmodel* lm,
7119void lrpack( ae_vector* v,
7123double lrprocess(linearmodel* lm,
7126double lrrmserror(linearmodel* lm,
7130double lravgerror(linearmodel* lm,
7134double lravgrelerror(linearmodel* lm,
7138void lrcopy(linearmodel* lm1, linearmodel* lm2, ae_state *_state);
7139void lrlines( ae_matrix* xy,
7151void lrline( ae_matrix* xy,
7157void _linearmodel_init(
void* _p, ae_state *_state);
7158void _linearmodel_init_copy(
void* _dst,
void* _src, ae_state *_state);
7159void _linearmodel_clear(
void* _p);
7160void _linearmodel_destroy(
void* _p);
7161void _lrreport_init(
void* _p, ae_state *_state);
7162void _lrreport_init_copy(
void* _dst,
void* _src, ae_state *_state);
7163void _lrreport_clear(
void* _p);
7164void _lrreport_destroy(
void* _p);
7165void filtersma( ae_vector* x,
7169void filterema( ae_vector* x,
7173void filterlrma( ae_vector* x,
7177void mnltrainh( ae_matrix* xy,
7185void mnlprocess(logitmodel* lm,
7189void mnlprocessi(logitmodel* lm,
7193void mnlunpack(logitmodel* lm,
7198void mnlpack( ae_matrix* a,
7203void mnlcopy(logitmodel* lm1, logitmodel* lm2, ae_state *_state);
7204double mnlavgce(logitmodel* lm,
7208double mnlrelclserror(logitmodel* lm,
7212double mnlrmserror(logitmodel* lm,
7216double mnlavgerror(logitmodel* lm,
7220double mnlavgrelerror(logitmodel* lm,
7224ae_int_t mnlclserror(logitmodel* lm,
7228void _logitmodel_init(
void* _p, ae_state *_state);
7229void _logitmodel_init_copy(
void* _dst,
void* _src, ae_state *_state);
7230void _logitmodel_clear(
void* _p);
7231void _logitmodel_destroy(
void* _p);
7232void _logitmcstate_init(
void* _p, ae_state *_state);
7233void _logitmcstate_init_copy(
void* _dst,
void* _src, ae_state *_state);
7234void _logitmcstate_clear(
void* _p);
7235void _logitmcstate_destroy(
void* _p);
7236void _mnlreport_init(
void* _p, ae_state *_state);
7237void _mnlreport_init_copy(
void* _dst,
void* _src, ae_state *_state);
7238void _mnlreport_clear(
void* _p);
7239void _mnlreport_destroy(
void* _p);
7240void mcpdcreate(ae_int_t n, mcpdstate* s, ae_state *_state);
7241void mcpdcreateentry(ae_int_t n,
7242 ae_int_t entrystate,
7245void mcpdcreateexit(ae_int_t n,
7249void mcpdcreateentryexit(ae_int_t n,
7250 ae_int_t entrystate,
7254void mcpdaddtrack(mcpdstate* s,
7258void mcpdsetec(mcpdstate* s,
7261void mcpdaddec(mcpdstate* s,
7266void mcpdsetbc(mcpdstate* s,
7270void mcpdaddbc(mcpdstate* s,
7276void mcpdsetlc(mcpdstate* s,
7281void mcpdsettikhonovregularizer(mcpdstate* s,
double v, ae_state *_state);
7282void mcpdsetprior(mcpdstate* s,
7285void mcpdsetpredictionweights(mcpdstate* s,
7288void mcpdsolve(mcpdstate* s, ae_state *_state);
7289void mcpdresults(mcpdstate* s,
7293void _mcpdstate_init(
void* _p, ae_state *_state);
7294void _mcpdstate_init_copy(
void* _dst,
void* _src, ae_state *_state);
7295void _mcpdstate_clear(
void* _p);
7296void _mcpdstate_destroy(
void* _p);
7297void _mcpdreport_init(
void* _p, ae_state *_state);
7298void _mcpdreport_init_copy(
void* _dst,
void* _src, ae_state *_state);
7299void _mcpdreport_clear(
void* _p);
7300void _mcpdreport_destroy(
void* _p);
7301void mlpecreate0(ae_int_t nin,
7303 ae_int_t ensemblesize,
7304 mlpensemble* ensemble,
7306void mlpecreate1(ae_int_t nin,
7309 ae_int_t ensemblesize,
7310 mlpensemble* ensemble,
7312void mlpecreate2(ae_int_t nin,
7316 ae_int_t ensemblesize,
7317 mlpensemble* ensemble,
7319void mlpecreateb0(ae_int_t nin,
7323 ae_int_t ensemblesize,
7324 mlpensemble* ensemble,
7326void mlpecreateb1(ae_int_t nin,
7331 ae_int_t ensemblesize,
7332 mlpensemble* ensemble,
7334void mlpecreateb2(ae_int_t nin,
7340 ae_int_t ensemblesize,
7341 mlpensemble* ensemble,
7343void mlpecreater0(ae_int_t nin,
7347 ae_int_t ensemblesize,
7348 mlpensemble* ensemble,
7350void mlpecreater1(ae_int_t nin,
7355 ae_int_t ensemblesize,
7356 mlpensemble* ensemble,
7358void mlpecreater2(ae_int_t nin,
7364 ae_int_t ensemblesize,
7365 mlpensemble* ensemble,
7367void mlpecreatec0(ae_int_t nin,
7369 ae_int_t ensemblesize,
7370 mlpensemble* ensemble,
7372void mlpecreatec1(ae_int_t nin,
7375 ae_int_t ensemblesize,
7376 mlpensemble* ensemble,
7378void mlpecreatec2(ae_int_t nin,
7382 ae_int_t ensemblesize,
7383 mlpensemble* ensemble,
7385void mlpecreatefromnetwork(multilayerperceptron* network,
7386 ae_int_t ensemblesize,
7387 mlpensemble* ensemble,
7389void mlpecopy(mlpensemble* ensemble1,
7390 mlpensemble* ensemble2,
7392void mlperandomize(mlpensemble* ensemble, ae_state *_state);
7393void mlpeproperties(mlpensemble* ensemble,
7397ae_bool mlpeissoftmax(mlpensemble* ensemble, ae_state *_state);
7398void mlpeprocess(mlpensemble* ensemble,
7402void mlpeprocessi(mlpensemble* ensemble,
7406void mlpeallerrorsx(mlpensemble* ensemble,
7408 sparsematrix* sparsexy,
7409 ae_int_t datasetsize,
7410 ae_int_t datasettype,
7414 ae_int_t subsettype,
7415 ae_shared_pool* buf,
7418void mlpeallerrorssparse(mlpensemble* ensemble,
7427double mlperelclserror(mlpensemble* ensemble,
7431double mlpeavgce(mlpensemble* ensemble,
7435double mlpermserror(mlpensemble* ensemble,
7439double mlpeavgerror(mlpensemble* ensemble,
7443double mlpeavgrelerror(mlpensemble* ensemble,
7447void mlpealloc(ae_serializer* s, mlpensemble* ensemble, ae_state *_state);
7448void mlpeserialize(ae_serializer* s,
7449 mlpensemble* ensemble,
7451void mlpeunserialize(ae_serializer* s,
7452 mlpensemble* ensemble,
7454void _mlpensemble_init(
void* _p, ae_state *_state);
7455void _mlpensemble_init_copy(
void* _dst,
void* _src, ae_state *_state);
7456void _mlpensemble_clear(
void* _p);
7457void _mlpensemble_destroy(
void* _p);
7458void mlptrainlm(multilayerperceptron* network,
7466void mlptrainlbfgs(multilayerperceptron* network,
7476void mlptraines(multilayerperceptron* network,
7486void mlpkfoldcvlbfgs(multilayerperceptron* network,
7493 ae_int_t foldscount,
7498void mlpkfoldcvlm(multilayerperceptron* network,
7503 ae_int_t foldscount,
7508void mlpkfoldcv(mlptrainer* s,
7509 multilayerperceptron* network,
7511 ae_int_t foldscount,
7514void _pexec_mlpkfoldcv(mlptrainer* s,
7515 multilayerperceptron* network,
7517 ae_int_t foldscount,
7518 mlpreport* rep, ae_state *_state);
7519void mlpcreatetrainer(ae_int_t nin,
7523void mlpcreatetrainercls(ae_int_t nin,
7527void mlpsetdataset(mlptrainer* s,
7531void mlpsetsparsedataset(mlptrainer* s,
7535void mlpsetdecay(mlptrainer* s,
double decay, ae_state *_state);
7536void mlpsetcond(mlptrainer* s,
7540void mlpsetalgobatch(mlptrainer* s, ae_state *_state);
7541void mlptrainnetwork(mlptrainer* s,
7542 multilayerperceptron* network,
7546void _pexec_mlptrainnetwork(mlptrainer* s,
7547 multilayerperceptron* network,
7549 mlpreport* rep, ae_state *_state);
7550void mlpstarttraining(mlptrainer* s,
7551 multilayerperceptron* network,
7552 ae_bool randomstart,
7554ae_bool mlpcontinuetraining(mlptrainer* s,
7555 multilayerperceptron* network,
7557ae_bool _pexec_mlpcontinuetraining(mlptrainer* s,
7558 multilayerperceptron* network, ae_state *_state);
7559void mlpebagginglm(mlpensemble* ensemble,
7566 mlpcvreport* ooberrors,
7568void mlpebagginglbfgs(mlpensemble* ensemble,
7577 mlpcvreport* ooberrors,
7579void mlpetraines(mlpensemble* ensemble,
7587void mlptrainensemblees(mlptrainer* s,
7588 mlpensemble* ensemble,
7592void _pexec_mlptrainensemblees(mlptrainer* s,
7593 mlpensemble* ensemble,
7595 mlpreport* rep, ae_state *_state);
7596void _mlpreport_init(
void* _p, ae_state *_state);
7597void _mlpreport_init_copy(
void* _dst,
void* _src, ae_state *_state);
7598void _mlpreport_clear(
void* _p);
7599void _mlpreport_destroy(
void* _p);
7600void _mlpcvreport_init(
void* _p, ae_state *_state);
7601void _mlpcvreport_init_copy(
void* _dst,
void* _src, ae_state *_state);
7602void _mlpcvreport_clear(
void* _p);
7603void _mlpcvreport_destroy(
void* _p);
7604void _smlptrnsession_init(
void* _p, ae_state *_state);
7605void _smlptrnsession_init_copy(
void* _dst,
void* _src, ae_state *_state);
7606void _smlptrnsession_clear(
void* _p);
7607void _smlptrnsession_destroy(
void* _p);
7608void _mlpetrnsession_init(
void* _p, ae_state *_state);
7609void _mlpetrnsession_init_copy(
void* _dst,
void* _src, ae_state *_state);
7610void _mlpetrnsession_clear(
void* _p);
7611void _mlpetrnsession_destroy(
void* _p);
7612void _mlptrainer_init(
void* _p, ae_state *_state);
7613void _mlptrainer_init_copy(
void* _dst,
void* _src, ae_state *_state);
7614void _mlptrainer_clear(
void* _p);
7615void _mlptrainer_destroy(
void* _p);
7616void _mlpparallelizationcv_init(
void* _p, ae_state *_state);
7617void _mlpparallelizationcv_init_copy(
void* _dst,
void* _src, ae_state *_state);
7618void _mlpparallelizationcv_clear(
void* _p);
7619void _mlpparallelizationcv_destroy(
void* _p);
7620void clusterizercreate(clusterizerstate* s, ae_state *_state);
7621void clusterizersetpoints(clusterizerstate* s,
7627void clusterizersetdistances(clusterizerstate* s,
7632void clusterizersetahcalgo(clusterizerstate* s,
7635void clusterizersetkmeanslimits(clusterizerstate* s,
7639void clusterizersetkmeansinit(clusterizerstate* s,
7642void clusterizerrunahc(clusterizerstate* s,
7645void _pexec_clusterizerrunahc(clusterizerstate* s,
7646 ahcreport* rep, ae_state *_state);
7647void clusterizerrunkmeans(clusterizerstate* s,
7651void _pexec_clusterizerrunkmeans(clusterizerstate* s,
7653 kmeansreport* rep, ae_state *_state);
7654void clusterizergetdistances( ae_matrix* xy,
7660void _pexec_clusterizergetdistances( ae_matrix* xy,
7664 ae_matrix* d, ae_state *_state);
7665void clusterizergetdistancesbuf(apbuffers* buf,
7672void clusterizergetkclusters(ahcreport* rep,
7677void clusterizerseparatedbydist(ahcreport* rep,
7683void clusterizerseparatedbycorr(ahcreport* rep,
7689void kmeansinitbuf(kmeansbuffers* buf, ae_state *_state);
7690void kmeansgenerateinternal( ae_matrix* xy,
7697 ae_bool kmeansdbgnoits,
7699 ae_int_t* iterationscount,
7708void kmeansupdatedistances( ae_matrix* xy,
7717 ae_shared_pool* bufferpool,
7719void _kmeansbuffers_init(
void* _p, ae_state *_state);
7720void _kmeansbuffers_init_copy(
void* _dst,
void* _src, ae_state *_state);
7721void _kmeansbuffers_clear(
void* _p);
7722void _kmeansbuffers_destroy(
void* _p);
7723void _clusterizerstate_init(
void* _p, ae_state *_state);
7724void _clusterizerstate_init_copy(
void* _dst,
void* _src, ae_state *_state);
7725void _clusterizerstate_clear(
void* _p);
7726void _clusterizerstate_destroy(
void* _p);
7727void _ahcreport_init(
void* _p, ae_state *_state);
7728void _ahcreport_init_copy(
void* _dst,
void* _src, ae_state *_state);
7729void _ahcreport_clear(
void* _p);
7730void _ahcreport_destroy(
void* _p);
7731void _kmeansreport_init(
void* _p, ae_state *_state);
7732void _kmeansreport_init_copy(
void* _dst,
void* _src, ae_state *_state);
7733void _kmeansreport_clear(
void* _p);
7734void _kmeansreport_destroy(
void* _p);
7735void dfbuildrandomdecisionforest( ae_matrix* xy,
7745void dfbuildrandomdecisionforestx1( ae_matrix* xy,
7756void dfbuildinternal( ae_matrix* xy,
7761 ae_int_t samplesize,
7768void dfprocess(decisionforest* df,
7772void dfprocessi(decisionforest* df,
7776double dfrelclserror(decisionforest* df,
7780double dfavgce(decisionforest* df,
7784double dfrmserror(decisionforest* df,
7788double dfavgerror(decisionforest* df,
7792double dfavgrelerror(decisionforest* df,
7796void dfcopy(decisionforest* df1, decisionforest* df2, ae_state *_state);
7797void dfalloc(ae_serializer* s, decisionforest* forest, ae_state *_state);
7798void dfserialize(ae_serializer* s,
7799 decisionforest* forest,
7801void dfunserialize(ae_serializer* s,
7802 decisionforest* forest,
7804void _decisionforest_init(
void* _p, ae_state *_state);
7805void _decisionforest_init_copy(
void* _dst,
void* _src, ae_state *_state);
7806void _decisionforest_clear(
void* _p);
7807void _decisionforest_destroy(
void* _p);
7808void _dfreport_init(
void* _p, ae_state *_state);
7809void _dfreport_init_copy(
void* _dst,
void* _src, ae_state *_state);
7810void _dfreport_clear(
void* _p);
7811void _dfreport_destroy(
void* _p);
7812void _dfinternalbuffers_init(
void* _p, ae_state *_state);
7813void _dfinternalbuffers_init_copy(
void* _dst,
void* _src, ae_state *_state);
7814void _dfinternalbuffers_clear(
void* _p);
7815void _dfinternalbuffers_destroy(
void* _p);
7816void kmeansgenerate( ae_matrix* xy,