Skip to content

Commit

Permalink
formating updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Tonks684 committed Aug 15, 2024
1 parent 2237ba2 commit 0b55827
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
# %% [markdown]
"""
<div class="alert alert-info">
## Training Results
Please note down your thoughts about the following questions...
<br><br>
Expand Down Expand Up @@ -298,7 +299,7 @@
- [Pearson Correlation Coefficient (PCC)](https://en.wikipedia.org/wiki/Pearson_correlation_coefficient).
Instance-level metrics via [Cellpose masks](https://cellpose.org/):
- [Accuracy](https://en.wikipedia.org/wiki/Accuracy_and_precision#In_binary_classification
- [Accuracy](https://en.wikipedia.org/wiki/Accuracy_and_precision#In_binary_classification)
- [Jaccard Index](https://en.wikipedia.org/wiki/Jaccard_index)
- [Dice Score](https://en.wikipedia.org/wiki/S%C3%B8rensen%E2%80%93Dice_coefficient)
- [Mean Average Precision](https://en.wikipedia.org/wiki/Evaluation_measures_(information_retrieval)#Mean_average_precision)
Expand Down Expand Up @@ -511,6 +512,7 @@ def visualise_results(phase_images, target_stains, virtual_stains, crop_size=Non
</div>
"""
# %%

# Define the function to perform minmax normalization which is required for the pixel-level metrics.
def min_max_scale(input):
return (input - np.min(input)) / (np.max(input) - np.min(input))
Expand Down Expand Up @@ -556,7 +558,7 @@ def min_max_scale(input):
rot=30,
)
test_pixel_metrics.head()
#%%[markdown]
# %% [markdown]
"""
- What do these metrics tells us about the performance of the model?
- How do the pixel-level metrics compare to the regression-based approach?
Expand Down

0 comments on commit 0b55827

Please sign in to comment.