You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the train_error is small ,but the test error is very large.
the result of each sample is the same value as shown in the picture.
The trainer seems to have no effect on the test data.
The text was updated successfully, but these errors were encountered:
it seems to be working for me. There is an issue in your code that you are doing the training/test split wrong, i think, at least there is going to be unused data leftover (you first split of 10% as training and from the remaining 90% half as test, leaving 45% untouched). The output looks quite correct to me.
You might have a problem with the epsilon in your data. Maybe this is too large? epsilon gives the maximum amount of error that you are willing to tolerate as noise.
`#define NOMINMAX
//===========================================================================
/*!
*
*
*/
//===========================================================================
#include <shark/LinAlg/Base.h>
#include <shark/Core/Random.h>
#include <shark/Models/Kernels/GaussianRbfKernel.h>
#include <shark/Algorithms/Trainers/EpsilonSvmTrainer.h>
#include <shark/Algorithms/Trainers/RegularizationNetworkTrainer.h>
#include <shark/ObjectiveFunctions/Loss/SquaredLoss.h>
#include <shark/Data/Dataset.h>
#include <shark/Data/DataDistribution.h>
#include <shark/Data/Csv.h>
using namespace shark;
int main()
{
// experiment settings
unsigned int ell = 200;
unsigned int tests = 10000;
double C = 10.0;
double gamma = 1.0 / C;
double epsilon = 0.03;
}
`
the train_error is small ,but the test error is very large.
the result of each sample is the same value as shown in the picture.
The trainer seems to have no effect on the test data.
The text was updated successfully, but these errors were encountered: