Skip to content
C

Problem 4: Calculate F1-Score Manually

Easypython

Problem Description

Write a Python program that manually calculates the F1-Score given Precision and Recall values (without using any built-in F1 function).

Input

Precision and Recall values.

Output

The calculated F1-Score.

Constraints

  • Both values are between 0 and 1.

Example Input

text
precision=0.8, recall=0.6

Example Output

text
F1-Score: 0.686

Concepts Covered

Manual F1 formula, arithmetic.

Input (stdin)

Output

Run your code to see output here...