Skip to content

Add string features factory - #4345

Merged
karlnapf merged 1 commit into
shogun-toolbox:developfrom
vinx13:feature/string_features_factory
Jul 3, 2018
Merged

karlnapf merged 1 commit into
shogun-toolbox:developfrom
vinx13:feature/string_features_factory

Conversation

@vinx13

@vinx13 vinx13 commented Jun 25, 2018

Copy link
Copy Markdown
Member

No description provided.

Comment thread src/shogun/util/factory.h
switch (primitive_type)
{
case PT_CHAR:
result = new CStringFeatures<char>(file, alpha);

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

karlnapf commented Jul 3, 2018

Copy link
Copy Markdown
Member

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.

3 participants