Skip to content
This repository was archived by the owner on Jul 21, 2021. It is now read-only.

Add categories to the feature extraction in order to split feature "b… #5

Merged
merged 2 commits into from
Dec 13, 2016

Conversation

BlackDark
Copy link
Collaborator

…undles"

def __init__(self, repo):
self.repo = repo
self.categories = self._get_categories()
self.weight = self._get_weight()
Copy link
Owner

Choose a reason for hiding this comment

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

Verstehe die zwei Zeilen nicht, wieso in Gettern?


def extract(self) -> [Feature]:
if self.categories:
return list(itertools.chain.from_iterable((category.extract() for category in self.categories)))
Copy link
Owner

Choose a reason for hiding this comment

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

das mit den genesteten Imports wuerde ich mit chain.from_iterable machen, ist kuerzer und sagt das gleiche

feature in FEATURE_ORDER]
def extract_features(self) -> [Feature]:
return list(
itertools.chain.from_iterable((category.extract() for category in self.extract_features_in_categories())))
Copy link
Owner

Choose a reason for hiding this comment

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

hier vllt auch

@BlackDark BlackDark merged commit 9c867cb into feature-pipeline-changes Dec 13, 2016
@linkvt linkvt deleted the feature-categorgies branch December 13, 2016 22:02
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