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

Allow naming additional parameters and display them in the results #110

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lehors
Copy link
Contributor

@lehors lehors commented Apr 8, 2022

This extends the command line syntax to support naming additional parameters:
[<name>:]<value>:<weight>:<max_threshold>

And it displays additional parameters in the results:

$ python3 -m criticality_score.run --repo repo --params p1:10:1:12 12:1:2 p3:1:2:3
...
p1: 10.0
Unnamed param # 1: 12.0
p3: 1.0
criticality_score: 0.44264

This also changes additional parameters from int to float.

This addresses issue #109.

Signed-off-by: Arnaud J Le Hors lehors@us.ibm.com

This extends the command line syntax to support naming additional parameters:
[<name>:]<value>:<weight>:<max_threshold>

And it displays additional parameters in the results:

$ python3 -m criticality_score.run --repo repo --params p1:10:1:12 12:1:2 p3:1:2:3
...
p1: 10.0
Unnamed param ossf#1: 12.0
p3: 1.0
criticality_score: 0.44264

This also changes additional parameters from int to float.

Signed-off-by: Arnaud J Le Hors <lehors@us.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant