MCPcopy Create free account
hub / github.com/davisking/dlib / _cca1

Function _cca1

tools/python/src/cca.cpp:20–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18};
19
20cca_outputs _cca1 (
21 const std::vector<sparse_vect>& L,
22 const std::vector<sparse_vect>& R,
23 unsigned long num_correlations,
24 unsigned long extra_rank,
25 unsigned long q,
26 double regularization
27)
28{
29 pyassert(num_correlations > 0 && L.size() > 0 && R.size() > 0 && L.size() == R.size() && regularization >= 0,
30 "Invalid inputs");
31
32 cca_outputs temp;
33 temp.correlations = cca(L,R,temp.Ltrans,temp.Rtrans,num_correlations,extra_rank,q,regularization);
34 return temp;
35}
36
37// ----------------------------------------------------------------------------------------
38

Callers

nothing calls this directly

Calls 2

ccaFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected