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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify scan metadata #1772

Merged
merged 4 commits into from
Feb 5, 2024
Merged

Simplify scan metadata #1772

merged 4 commits into from
Feb 5, 2024

Conversation

luca-rossi
Copy link
Contributor

No description provided.


# Need at least a split, otherwise return now.
if dt.tree_.node_count < 2:
logger.debug("No split found, stopping now.")
return []

# track analytics with a 10% probability
if np.random.rand() < 0.1:

Check notice

Code scanning / SonarCloud

numpy.random.Generator should be preferred to numpy.random.RandomState Low

Use a "numpy.random.Generator" here instead of this legacy function. See more on SonarCloud
Copy link
Member

@mattbit mattbit left a comment

Choose a reason for hiding this comment

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

All good but please remove extraneous changes

giskard/slicing/tree_slicer.py Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Feb 5, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@mattbit mattbit merged commit 68092cc into main Feb 5, 2024
16 checks passed
@mattbit mattbit deleted the simplify-scan-metadata branch February 5, 2024 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants