public DecisionMaking(string name, LearningAlgorithm algorithm, Dictionary<ImageVector.ImageParameters, bool> parameterList) { // Set name Name = name; //connect to already existing algorithm instance Algorithm = algorithm; //Set parameter list dictionary ParameterList = new Dictionary<ImageVector.ImageParameters, bool>(parameterList); //Weight = weight; }
public DataLearning(string name, LearningAlgorithm.Algorithm algorithm, Dictionary<ImageVector.ImageParameters, bool> parameterList, int K) { // Set name _name = name; // Create repository and try to load vectors (if exists) _repository = new VectorRepository(_name); // _repository.loadList(); // Create new algorithm instance /* if (algorithm == LearningAlgorithm.Algorithm.DecisionTree) _algorithm = new DecisionTree(); _algorithm = new DecisionTreeNumerical(); if (algorithm == LearningAlgorithm.Algorithm.DecisionTreeNumerical) if (algorithm == LearningAlgorithm.Algorithm.KNN) _algorithm = new KNN(K,_repository); */ // Set parameter list dictionary _parameterList = new Dictionary<ImageVector.ImageParameters, bool>(parameterList); }