-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
93 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from src.pipeline_evaluation import PipelineEvaluation | ||
from deepforest import main | ||
|
||
def test_pipeline_evaluation(config): | ||
m = main.deepforest() | ||
pipeline_evaluation = PipelineEvaluation(model=m, **config.pipeline_evaluation) | ||
performance = pipeline_evaluation.evaluate() | ||
|
||
def test_check_success(config): | ||
m = main.deepforest() | ||
pipeline_evaluation = PipelineEvaluation(model=m, **config.pipeline_evaluation) | ||
assert pipeline_evaluation.check_success() is False | ||
|
||
def test_evaluate_detection(config): | ||
m = main.deepforest() | ||
pipeline_evaluation = PipelineEvaluation(model=m, **config.pipeline_evaluation) | ||
detection_results = pipeline_evaluation.evaluate_detection() | ||
assert detection_results["mAP"] is not None | ||
|
||
def test_confident_classification_accuracy(config): | ||
m = main.deepforest() | ||
pipeline_evaluation = PipelineEvaluation(model=m, **config.pipeline_evaluation) | ||
confident_classification_accuracy = pipeline_evaluation.confident_classification_accuracy() | ||
assert confident_classification_accuracy is not None | ||
|
||
|
||
|