Skip to content
This repository was archived by the owner on Sep 18, 2020. It is now read-only.

Creates ClassifierFactory for easier classifier creation#42

Open
Regis128 wants to merge 4 commits intofeature/DatasetFactoryfrom
feature/classifier_factory
Open

Creates ClassifierFactory for easier classifier creation#42
Regis128 wants to merge 4 commits intofeature/DatasetFactoryfrom
feature/classifier_factory

Conversation

@Regis128
Copy link
Contributor

Added classifierFactory class for easier creation of classifiers

/// <summary>
/// The factory for creating classifiers
/// </summary>
class ClassifierFactory
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Static class maybe? This is yet another class that does not store any state, so I think this will be a suitable approach.

size_t minimalFillup,
size_t maximalFillup,
unsigned int iterationsLimit,
double tolerance) const
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a lot of parameters. Have you considered putting at least some of them into a struct like GaClassifierOptions or something similar?

double tolerance) const
{
std::unique_ptr<IClassifier> classifier;
if (name == "svm")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sooo... in every other case an empty pointer to IClassifier is passed to the GaClassifier constructor?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants