<commit_before>from Evaluator.Evaluator import evaluator
import sys

#folder_path = '/home/ekmek/Vitek/Mgr project/MGR-Project-Code/Data/ModelFiles/'
folder_path = '/home/ekmek/Vitek/MGR-Project-Code/Data/ModelFiles/'
# IMG
IMG_model_file = folder_path + 'SelectedModels/1769353.arien-pro.ics.muni.cz_TypesOfModels_monoTest_IMG_kfold_d3/models/imagemodel_resnet50.h5_top.h5'
IMG_settings_file = 'Settings/set3/type_of_model_img_kfold_d3.py'

# MIX
MIX_model_file = folder_path + 'SelectedModels/1761335.arien-pro.ics.muni.cz_TypesOfModels_monoTest_MIX_kfold_d3/models/mixmodel_resnet50.h5_top.h5'
MIX_settings_file = 'Settings/set3/type_of_model_mix_kfold_d3.py'

# OSM
OSM_model_file = folder_path + 'SelectedModels/1761336.arien-pro.ics.muni.cz_TypesOfModels_monoTest_OSM_kfold_d3/models/osmmodel_resnet50.h5_osmtop.h5'
OSM_settings_file = 'Settings/set3/type_of_model_osm_kfold_d3.py'

if len(sys.argv) > 2:
    model_file = (sys.argv[1])  # var1
    settings_file = (sys.argv[2])  # var2

#img_mse, img_mae = evaluator(IMG_model_file, IMG_settings_file)
#mix_mse, mix_mae = evaluator(MIX_model_file, MIX_settings_file)
osm_mse, osm_mae = evaluator(OSM_model_file, OSM_settings_file)

'''
print "-------------------------------------"
print "IMG mse =", img_mse, "; mae = ", img_mae
print "MIX mse =", mix_mse, "; mae = ", mix_mae
'''
print "OSM mse =", osm_mse, "; mae = ", osm_mae

#from Evaluator.Evaluator import test_marking
#geojsonpath = '/home/ekmek/Vitek/____out_marked-json-files/marked_from_osm-set3type_of_model_osm_kfold_d3.geojson'
#test_marking(geojsonpath)<commit_msg>flagship model added<commit_after>from Evaluator.Evaluator import evaluator
import sys

#folder_path = '/home/ekmek/Vitek/Mgr project/MGR-Project-Code/Data/ModelFiles/'
folder_path = '/home/ekmek/Vitek/MGR-Project-Code/Data/ModelFiles/'
# IMG
IMG_model_file = folder_path + 'SelectedModels/1769353.arien-pro.ics.muni.cz_TypesOfModels_monoTest_IMG_kfold_d3/models/imagemodel_resnet50.h5_top.h5'
IMG_settings_file = 'Settings/set3/type_of_model_img_kfold_d3.py'

# MIX
MIX_model_file = folder_path + 'SelectedModels/1761335.arien-pro.ics.muni.cz_TypesOfModels_monoTest_MIX_kfold_d3/models/mixmodel_resnet50.h5_top.h5'
MIX_settings_file = 'Settings/set3/type_of_model_mix_kfold_d3.py'

# OSM
OSM_model_file = folder_path + 'SelectedModels/1761336.arien-pro.ics.muni.cz_TypesOfModels_monoTest_OSM_kfold_d3/models/osmmodel_resnet50.h5_osmtop.h5'
OSM_settings_file = 'Settings/set3/type_of_model_osm_kfold_d3.py'


# OSM Flagship Model !
OSM_model_file = folder_path + 'SelectedModels/1771032.arien-pro.ics.muni.cz_set5_w64_depth2_d1/models/osm_resnet50.h5_osmtop.h5'
OSM_settings_file = 'Settings/set5/set5_w64_depth2_d1.py'


if len(sys.argv) > 2:
    model_file = (sys.argv[1])  # var1
    settings_file = (sys.argv[2])  # var2

#img_mse, img_mae = evaluator(IMG_model_file, IMG_settings_file)
#mix_mse, mix_mae = evaluator(MIX_model_file, MIX_settings_file)
osm_mse, osm_mae = evaluator(OSM_model_file, OSM_settings_file)

'''
print "-------------------------------------"
print "IMG mse =", img_mse, "; mae = ", img_mae
print "MIX mse =", mix_mse, "; mae = ", mix_mae
'''
print "OSM mse =", osm_mse, "; mae = ", osm_mae

#from Evaluator.Evaluator import test_marking
#geojsonpath = '/home/ekmek/Vitek/____out_marked-json-files/marked_from_osm-set3type_of_model_osm_kfold_d3.geojson'
#test_marking(geojsonpath)
{'fraction_non_alphanumeric': 0.13726067746686305, 'fraction_numerical': 0.035346097201767304, 'mean_word_length': 5.658823529411765, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4464656', 'n_tokens_mistral': 1521, 'n_tokens_neox': 1458, 'n_words': 161}