Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add string features factory #4345

Merged

Conversation

vinx13
Copy link
Member

@vinx13 vinx13 commented Jun 25, 2018

No description provided.

switch (primitive_type)
{
case PT_CHAR:
result = new CStringFeatures<char>(file, alpha);
Copy link
Member

Choose a reason for hiding this comment

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

wasnt the idea that we dont want a string_features factory, buy instead somehow deal with this inside the features factory?

Copy link
Member Author

Choose a reason for hiding this comment

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

i tried features(file) to load a string features into a dense one, no error happens until you actually use the features in some algorithms.

Copy link
Member

Choose a reason for hiding this comment

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

this is something that could be done in the factory, or? (taling a sneak preview)

@karlnapf karlnapf merged commit 31ed13b into shogun-toolbox:develop Jul 3, 2018
@karlnapf
Copy link
Member

karlnapf commented Jul 3, 2018

Merging, as this allows us to continue adding more examples, and the string_features factory can very easily be grep replaced later once there is an appropriate factory.

ktiefe pushed a commit to ktiefe/shogun that referenced this pull request Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants