This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
從 Confusion Matrix 計算 F1 Score 分類評量值 | |
''' | |
def get_f1_score(confusion_matrix, i): | |
TP = 0 | |
FP = 0 | |
TN = 0 | |
FN = 0 | |
for j in range(len(confusion_matrix)): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import snappy | |
from snappy import GPF | |
from snappy import ProductIO | |
from snappy import HashMap | |
from snappy import jpy | |
import subprocess | |
from time import * | |
# documentation: http://step.esa.int/docs/v2.0/apidoc/engine/overview-summary.html |