Shark-ML/Shark

Shark seems to be broken

Closed this issue · 2 comments

I built shark library from Git Source.(with visual studio).
Added the include files.

wrote a simple code
`

#include <shark/Algorithms/Trainers/CSvmTrainer.h> // the C-SVM trainer
#include <shark/Models/Kernels/GaussianRbfKernel.h> //the used kernel for the SVM
#include <shark/ObjectiveFunctions/Loss/ZeroOneLoss.h> //used for evaluation of the classifier
#include <shark/Data/DataDistribution.h> //includes small toy distributions
#include <shark/Data/Csv.h>
#include <shark/Algorithms/Trainers/LDA.h>
#include <shark/ObjectiveFunctions/Loss/ZeroOneLoss.h>
#include "stdafx.h"

using namespace shark;
int main(int argc, char **argv) {
  ClassificationDataset data;
	try
	{
		importCSV(data, argv[1], LAST_COLUMN, ' ');
	}
	catch (...)
	{
		exit(EXIT_FAILURE);
	}

	ClassificationDataset test = splitAtElement(data, static_cast<std::size_t>(0.8*data.numberOfElements()));
}
`

I get these errors
shark: namespace does not exists
Cannot open file shark/core/shark.h
Classification identifier not declared

Checked the include file, all I see is "shark.h.in"

Whats the Issues? The last time i asked, A shark official told me latest shark is version 4.0.0

The Website http://image.diku.dk/shark/index.html is showing 3.0.0<-<-<- (Whats this guy saying?)

Hi sometimes Visual Studio Can be a little bit weird,
make sure "stdafx.h" is at the top