Implements all necessary data and functions needed for scaling a plssvm::data_set to an user-defined range.
More...
#include <data_set.hpp>
|
struct | factors |
| The calculated or read feature-wise scaling factors. More...
|
|
|
| scaling (real_type lower, real_type upper) |
| Create a new scaling class that can be used to scale all features of a data set to the interval [lower, upper]. More...
|
|
| scaling (const std::string &filename) |
| Read the scaling interval and factors from the provided file filename . More...
|
|
void | save (const std::string &filename) const |
| Save the scaling factors to the file filename . More...
|
|
template<typename T, typename U = int>
class plssvm::data_set< T, U >::scaling
Implements all necessary data and functions needed for scaling a plssvm::data_set to an user-defined range.
◆ scaling() [1/2]
template<typename T , typename U >
Create a new scaling class that can be used to scale all features of a data set to the interval [lower, upper].
- Parameters
-
[in] | lower | the lower bound value of all features |
[in] | upper | the upper bound value of all features |
- Exceptions
-
◆ scaling() [2/2]
template<typename T , typename U >
Read the scaling interval and factors from the provided file filename
.
- Parameters
-
[in] | filename | the filename to read the scaling information from |
- Exceptions
-
◆ save()
template<typename T , typename U >
void plssvm::data_set< T, U >::scaling::save |
( |
const std::string & |
filename | ) |
const |
Save the scaling factors to the file filename
.
- Parameters
-
[in] | filename | the file to save the scaling factors to |
- Exceptions
-
The documentation for this class was generated from the following file: