Skip to content

Commit

Permalink
v1.7.5 Multiview E.
Browse files Browse the repository at this point in the history
  • Loading branch information
SoftwareLiteracy committed Jan 13, 2021
1 parent 6845737 commit e89714f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 6 additions & 2 deletions src/API.cc
Original file line number Diff line number Diff line change
Expand Up @@ -520,13 +520,17 @@ MultiviewValues Multiview( DataFrame< double > & DF,
bool verbose,
unsigned nThreads )
{
// Note: Method::Simplex & embedded = false
// Parameters constructor calls Validate()
// If embedded = true: Validate() will set E to number of columns
// We need E to pass to PrepareEmbedding() : EmbedData()
Parameters parameters = Parameters( Method::Simplex,
"", // pathIn
"", // dataFile
pathOut, //
predictFile, //
lib, // lib_str
pred , // pred_str
pred, // pred_str
E, //
Tp, //
knn, //
Expand All @@ -535,7 +539,7 @@ MultiviewValues Multiview( DataFrame< double > & DF,
exclusionRadius,
columns, //
target, //
true, // embedded true
false, // embedded false
false, // const_predict
verbose, //
"", // SmapFile
Expand Down
4 changes: 1 addition & 3 deletions src/Multiview.cc
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ void MultiviewClass::Project( unsigned nThreads ) {

CheckParameters();

// Set embedded false so E-dimensional embedding is computed
parameters.embedded = false;

// Note: embedded false so E-dimensional embedding is computed
PrepareEmbedding(); // EmbedData(). target, data, lib/pred adjust

SetupParameters(); // Requires valid embedding
Expand Down
2 changes: 1 addition & 1 deletion src/Parameter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ Parameters::Parameters(

// Set validated flag and instantiate Version
validated ( false ),
version ( 1, 7, 4, "2021-01-09" )
version ( 1, 7, 5, "2021-01-13" )
{
// Constructor code
if ( method != Method::None ) {
Expand Down

0 comments on commit e89714f

Please sign in to comment.