Skip to content

Commit

Permalink
Merge pull request #65 from brunohjs/#63
Browse files Browse the repository at this point in the history
#63 - Change --precision default value to 2
  • Loading branch information
brunohjs authored Mar 24, 2023
2 parents d23aa8c + c645ab9 commit 765dc26
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rasa_model_report/controllers/json_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def save_overview(self) -> None:

@staticmethod
def weight_function(x: float) -> float:
return 1 - x**2
return 1 - x**3

def _calculate_overall(self) -> None:
"""
Expand Down
2 changes: 1 addition & 1 deletion rasa_model_report/helpers/constants.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
DISABLE_NLU = False
GRADE_PRECISION = 1
GRADE_PRECISION = 2
NO_IMAGES = False
OUTPUT_PATH = "./"
PROJECT_NAME = "My project"
Expand Down
4 changes: 2 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def test_change_scale():
assert change_scale(0.85, 100, None) == "85"
assert change_scale(123, 1, "2") == "123"
assert change_scale(59, 1, 0.5) == "59"
assert change_scale(1.8473, 1, 10) == "1.8"
assert change_scale(9.123123, 1, 6) == "9.1"
assert change_scale(1.8473, 1, 10) == "1.85"
assert change_scale(9.123123, 1, 6) == "9.12"


def test_get_color():
Expand Down

0 comments on commit 765dc26

Please sign in to comment.