Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed RealLabels to RegressionLabels
- Loading branch information
Showing
43 changed files
with
162 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#include <shogun/labels/DenseLabels.h> | ||
#include <shogun/labels/RegressionLabels.h> | ||
|
||
using namespace shogun; | ||
|
||
CRegressionLabels::CRegressionLabels() : CDenseLabels() | ||
{ | ||
} | ||
|
||
CRegressionLabels::CRegressionLabels(int32_t num_labels) : CDenseLabels(num_labels) | ||
{ | ||
} | ||
|
||
CRegressionLabels::CRegressionLabels(const SGVector<float64_t> src) : CDenseLabels() | ||
{ | ||
set_labels(src); | ||
} | ||
|
||
CRegressionLabels::CRegressionLabels(CFile* loader) : CDenseLabels(loader) | ||
{ | ||
} | ||
|
||
CRegressionLabels* CRegressionLabels::obtain_from_generic(CLabels* base_labels) | ||
{ | ||
if ( base_labels->get_label_type() == LT_REAL ) | ||
return (CRegressionLabels*) base_labels; | ||
else | ||
SG_SERROR("base_labels must be of dynamic type CRegressionLabels"); | ||
|
||
return NULL; | ||
} | ||
|
||
bool CRegressionLabels::is_valid() | ||
{ | ||
ASSERT(m_labels.vector); | ||
return true; | ||
} | ||
|
||
ELabelType CRegressionLabels::get_label_type() | ||
{ | ||
return LT_REAL; | ||
} | ||
|
Oops, something went wrong.