add best model information during scoring

This commit is contained in:
Eqbal Zaffar 2017-06-22 13:39:48 -07:00
Родитель d743ca9ae0
Коммит eae256ddef
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -219,8 +219,8 @@ function ScoreData
Write-Host -ForeGroundColor 'magenta'(" Done creating batch scoring stored proc...")
#score on the data
$best_model = ExecuteSQLQuery "select top 1 model from $modelTable where f1score in (select max(f1score) from $modelTable)"
Write-Host -ForeGroundColor 'Cyan' ("Scoring based on best performing model $($modelNames.Get_Item($best_model.model)) score table = $scoreTable, prediction table = $predictionTable...")
$best_model = ExecuteSQLQuery "select top 1 model_name from $modelTable where f1score in (select max(f1score) from $modelTable)"
Write-Host -ForeGroundColor 'Cyan' ("Scoring based on best performing model '$($modelNames.Get_Item($best_model.model_name))' score table = $scoreTable, prediction table = $predictionTable...")
$scoring_query = "EXEC predict_chargeoff $scoreTable, $predictionTable, $modelTable"
$scoringStart = Get-Date
ExecuteSQLQuery $scoring_query