Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Remove baskets without features in _create_dataset.#471

Merged
brandenchan merged 1 commit intodeepset-ai:masterfrom
ftesser:issue_457_3
Jul 22, 2020
Merged

Remove baskets without features in _create_dataset.#471
brandenchan merged 1 commit intodeepset-ai:masterfrom
ftesser:issue_457_3

Conversation

@ftesser
Copy link
Copy Markdown
Contributor

@ftesser ftesser commented Jul 22, 2020

This PR is a new PR in substitution of #461 and it is about #457.

In this new PR, I created a static method to check if all samples in a basket have features.
In this way we stop to iterate in the samples of basket when the first sample has features None (we save some cycles in this way).

If this method returns True we can add all samples to features_flat, otherwise, later the basket is removed from self.baskets.

@brandenchan brandenchan self-requested a review July 22, 2020 12:26
Copy link
Copy Markdown
Contributor

@brandenchan brandenchan left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Copy link
Copy Markdown
Contributor

@brandenchan brandenchan left a comment

Choose a reason for hiding this comment

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

Looks good to me!

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