generated from amosproj/amos202Xss0Y-projname
-
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.
Add test for EVP. Set training matrix to identity for equal results o…
…n each execution with dummy data. Signed-off-by: Felix Zailskas <[email protected]>
- Loading branch information
1 parent
f0cb2d5
commit 8928ed4
Showing
2 changed files
with
20 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# SPDX-License-Identifier: MIT | ||
# SPDX-FileCopyrightText: 2023 Felix Zailskas <[email protected]> | ||
|
||
import os | ||
import sys | ||
|
||
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "src"))) | ||
|
||
from database import get_database | ||
from database.models import LeadValue | ||
from evp.evp import EstimatedValuePredictor | ||
|
||
|
||
def test_estimate_value(): | ||
leads = get_database().get_all_leads() | ||
evp = EstimatedValuePredictor() | ||
for lead in leads: | ||
value = evp.estimate_value(lead.lead_id) | ||
assert type(value) == LeadValue |