Commit 142245fd authored by npedot's avatar npedot
Browse files

adds fix hospital 100

parent c555f9d2
1,t0,A0_ProviderNumber,A0_HospitalName,A0_Address1
1,t1,A1_ProviderNumber,A1_HospitalName,A1_Address1
1,t2,A2_ProviderNumber,A1_HospitalName,A1_Address1
1,t3,A3_ProviderNumber,A2_HospitalName,A2_Address1
1,t4,A3_ProviderNumber,A2_HospitalName,A2_Address1
1,t5,A4_ProviderNumber,A3_HospitalName,A3_Address1
1,t6,A4_ProviderNumber,A3_HospitalName,A3_Address1
1,t7,A4_ProviderNumber,A3_HospitalName,A3_Address1
1,t8,A4_ProviderNumber,A3_HospitalName,A3_Address1
1,t9,A5_ProviderNumber,A4_HospitalName,A4_Address1
1,t10,A6_ProviderNumber,A5_HospitalName,A5_Address1
1,t11,A6_ProviderNumber,A5_HospitalName,A5_Address1
1,t12,A7_ProviderNumber,A6_HospitalName,A6_Address1
1,t13,A8_ProviderNumber,A7_HospitalName,A7_Address1
1,t14,A9_ProviderNumber,A8_HospitalName,A8_Address1
1,t15,A9_ProviderNumber,A8_HospitalName,A8_Address1
1,t16,A9_ProviderNumber,A8_HospitalName,A8_Address1
1,t17,A9_ProviderNumber,A8_HospitalName,A8_Address1
1,t18,A9_ProviderNumber,A8_HospitalName,A8_Address1
1,t19,A10_ProviderNumber,A9_HospitalName,A9_Address1
1,t20,A10_ProviderNumber,A9_HospitalName,A9_Address1
1,t21,A10_ProviderNumber,A9_HospitalName,A9_Address1
1,t22,A10_ProviderNumber,A9_HospitalName,A10_Address1
1,t23,A11_ProviderNumber,A10_HospitalName,A11_Address1
1,t24,A11_ProviderNumber,A10_HospitalName,A11_Address1
1,t25,A11_ProviderNumber,A10_HospitalName,A11_Address1
1,t26,A11_ProviderNumber,A10_HospitalName,A11_Address1
1,t27,A0_ProviderNumber,A0_HospitalName,A0_Address1
1,t28,A12_ProviderNumber,A11_HospitalName,A12_Address1
1,t29,A12_ProviderNumber,A11_HospitalName,A13_Address1
1,t30,A13_ProviderNumber,A12_HospitalName,A14_Address1
1,t31,A14_ProviderNumber,A13_HospitalName,A15_Address1
1,t32,A14_ProviderNumber,A13_HospitalName,A16_Address1
1,t33,A14_ProviderNumber,A13_HospitalName,A16_Address1
1,t34,A14_ProviderNumber,A13_HospitalName,A16_Address1
1,t35,A15_ProviderNumber,A14_HospitalName,A17_Address1
1,t36,A15_ProviderNumber,A14_HospitalName,A17_Address1
1,t37,A16_ProviderNumber,A15_HospitalName,A18_Address1
1,t38,A16_ProviderNumber,A15_HospitalName,A18_Address1
1,t39,A16_ProviderNumber,A15_HospitalName,A18_Address1
1,t40,A2_ProviderNumber,A1_HospitalName,A1_Address1
1,t41,A2_ProviderNumber,A1_HospitalName,A1_Address1
1,t42,A2_ProviderNumber,A1_HospitalName,A1_Address1
1,t43,A17_ProviderNumber,A16_HospitalName,A19_Address1
1,t44,A18_ProviderNumber,A17_HospitalName,A20_Address1
1,t45,A18_ProviderNumber,A17_HospitalName,A20_Address1
1,t46,A19_ProviderNumber,A18_HospitalName,A21_Address1
1,t47,A19_ProviderNumber,A18_HospitalName,A21_Address1
1,t48,A19_ProviderNumber,A18_HospitalName,A21_Address1
1,t49,A19_ProviderNumber,A18_HospitalName,A21_Address1
1,t50,A19_ProviderNumber,A18_HospitalName,A21_Address1
1,t51,A20_ProviderNumber,A19_HospitalName,A22_Address1
1,t52,A20_ProviderNumber,A19_HospitalName,A22_Address1
1,t53,A20_ProviderNumber,A19_HospitalName,A22_Address1
1,t54,A21_ProviderNumber,A20_HospitalName,A23_Address1
1,t55,A21_ProviderNumber,A20_HospitalName,A23_Address1
1,t56,A22_ProviderNumber,A21_HospitalName,A24_Address1
1,t57,A22_ProviderNumber,A21_HospitalName,A24_Address1
1,t58,A23_ProviderNumber,A21_HospitalName,A24_Address1
1,t59,A24_ProviderNumber,A22_HospitalName,A25_Address1
1,t60,A24_ProviderNumber,A22_HospitalName,A25_Address1
1,t61,A24_ProviderNumber,A22_HospitalName,A25_Address1
1,t62,A24_ProviderNumber,A22_HospitalName,A25_Address1
1,t63,A25_ProviderNumber,A23_HospitalName,A26_Address1
1,t64,A26_ProviderNumber,A24_HospitalName,A27_Address1
1,t65,A26_ProviderNumber,A24_HospitalName,A27_Address1
1,t66,A27_ProviderNumber,A25_HospitalName,A28_Address1
1,t67,A27_ProviderNumber,A25_HospitalName,A28_Address1
1,t68,A27_ProviderNumber,A25_HospitalName,A28_Address1
1,t69,A28_ProviderNumber,A26_HospitalName,A29_Address1
1,t70,A28_ProviderNumber,A26_HospitalName,A29_Address1
1,t71,A28_ProviderNumber,A26_HospitalName,A29_Address1
1,t72,A28_ProviderNumber,A26_HospitalName,A29_Address1
1,t73,A28_ProviderNumber,A26_HospitalName,A29_Address1
1,t74,A12_ProviderNumber,A11_HospitalName,A13_Address1
1,t75,A12_ProviderNumber,A11_HospitalName,A13_Address1
1,t76,A29_ProviderNumber,A27_HospitalName,A30_Address1
1,t77,A29_ProviderNumber,A27_HospitalName,A30_Address1
1,t78,A29_ProviderNumber,A27_HospitalName,A30_Address1
1,t79,A29_ProviderNumber,A27_HospitalName,A30_Address1
1,t80,A30_ProviderNumber,A28_HospitalName,A31_Address1
1,t81,A30_ProviderNumber,A28_HospitalName,A31_Address1
1,t82,A30_ProviderNumber,A28_HospitalName,A31_Address1
1,t83,A31_ProviderNumber,A29_HospitalName,A32_Address1
1,t84,A32_ProviderNumber,A30_HospitalName,A33_Address1
1,t85,A32_ProviderNumber,A30_HospitalName,A33_Address1
1,t86,A32_ProviderNumber,A30_HospitalName,A33_Address1
1,t87,A33_ProviderNumber,A31_HospitalName,A34_Address1
1,t88,A33_ProviderNumber,A31_HospitalName,A34_Address1
1,t89,A33_ProviderNumber,A31_HospitalName,A34_Address1
1,t90,A34_ProviderNumber,A31_HospitalName,A34_Address1
1,t91,A33_ProviderNumber,A31_HospitalName,A34_Address1
1,t92,A35_ProviderNumber,A32_HospitalName,A35_Address1
1,t93,A35_ProviderNumber,A32_HospitalName,A35_Address1
1,t94,A36_ProviderNumber,A33_HospitalName,A36_Address1
1,t95,A37_ProviderNumber,A34_HospitalName,A37_Address1
1,t96,A37_ProviderNumber,A35_HospitalName,A37_Address1
1,t97,A37_ProviderNumber,A35_HospitalName,A37_Address1
1,t98,A37_ProviderNumber,A35_HospitalName,A37_Address1
1,t99,A37_ProviderNumber,A35_HospitalName,A37_Address1
A0_ProviderNumber,t0_1
A0_HospitalName,t0_1
A0_Address1,t0_1
A1_HospitalName,t1_1
A1_Address1,t1_1
A2_ProviderNumber,t2_1
A1_HospitalName,t2_1
A1_Address1,t2_1
A3_ProviderNumber,t3_1
A2_HospitalName,t3_1
A2_Address1,t3_1
A3_ProviderNumber,t4_1
A2_HospitalName,t4_1
A2_Address1,t4_1
A4_ProviderNumber,t5_1
A3_HospitalName,t5_1
A3_Address1,t5_1
A4_ProviderNumber,t6_1
A3_HospitalName,t6_1
A3_Address1,t6_1
A4_ProviderNumber,t7_1
A3_HospitalName,t7_1
A3_Address1,t7_1
A4_ProviderNumber,t8_1
A3_HospitalName,t8_1
A3_Address1,t8_1
A5_ProviderNumber,t9_1
A4_HospitalName,t9_1
A4_Address1,t9_1
A6_ProviderNumber,t10_1
A5_HospitalName,t10_1
A5_Address1,t10_1
A6_ProviderNumber,t11_1
A5_HospitalName,t11_1
A5_Address1,t11_1
A7_ProviderNumber,t12_1
A6_HospitalName,t12_1
A6_Address1,t12_1
A8_ProviderNumber,t13_1
A7_HospitalName,t13_1
A7_Address1,t13_1
A9_ProviderNumber,t14_1
A8_HospitalName,t14_1
A8_Address1,t14_1
A9_ProviderNumber,t15_1
A8_HospitalName,t15_1
A8_Address1,t15_1
A9_ProviderNumber,t16_1
A8_HospitalName,t16_1
A8_Address1,t16_1
A9_ProviderNumber,t17_1
A8_HospitalName,t17_1
A8_Address1,t17_1
A9_ProviderNumber,t18_1
A8_HospitalName,t18_1
A8_Address1,t18_1
A10_ProviderNumber,t19_1
A9_HospitalName,t19_1
A9_Address1,t19_1
A10_ProviderNumber,t20_1
A9_HospitalName,t20_1
A9_Address1,t20_1
A10_ProviderNumber,t21_1
A9_HospitalName,t21_1
A9_Address1,t21_1
A10_ProviderNumber,t22_1
A9_HospitalName,t22_1
A10_Address1,t22_1
A11_ProviderNumber,t23_1
A10_HospitalName,t23_1
A11_Address1,t23_1
A11_ProviderNumber,t24_1
A10_HospitalName,t24_1
A11_Address1,t24_1
A11_ProviderNumber,t25_1
A10_HospitalName,t25_1
A11_Address1,t25_1
A11_ProviderNumber,t26_1
A10_HospitalName,t26_1
A11_Address1,t26_1
A0_ProviderNumber,t27_1
A0_HospitalName,t27_1
A0_Address1,t27_1
A12_ProviderNumber,t28_1
A11_HospitalName,t28_1
A12_Address1,t28_1
A12_ProviderNumber,t29_1
A11_HospitalName,t29_1
A13_Address1,t29_1
A13_ProviderNumber,t30_1
A12_HospitalName,t30_1
A14_Address1,t30_1
A14_ProviderNumber,t31_1
A13_HospitalName,t31_1
A15_Address1,t31_1
A14_ProviderNumber,t32_1
A13_HospitalName,t32_1
A16_Address1,t32_1
A14_ProviderNumber,t33_1
A13_HospitalName,t33_1
A16_Address1,t33_1
A14_ProviderNumber,t34_1
A13_HospitalName,t34_1
A16_Address1,t34_1
A15_ProviderNumber,t35_1
A14_HospitalName,t35_1
A17_Address1,t35_1
A15_ProviderNumber,t36_1
A14_HospitalName,t36_1
A17_Address1,t36_1
A16_ProviderNumber,t37_1
A15_HospitalName,t37_1
A18_Address1,t37_1
A16_ProviderNumber,t38_1
A15_HospitalName,t38_1
A18_Address1,t38_1
A16_ProviderNumber,t39_1
A15_HospitalName,t39_1
A18_Address1,t39_1
A2_ProviderNumber,t40_1
A1_HospitalName,t40_1
A1_Address1,t40_1
A2_ProviderNumber,t41_1
A1_HospitalName,t41_1
A1_Address1,t41_1
A2_ProviderNumber,t42_1
A1_HospitalName,t42_1
A1_Address1,t42_1
A17_ProviderNumber,t43_1
A16_HospitalName,t43_1
A19_Address1,t43_1
A18_ProviderNumber,t44_1
A17_HospitalName,t44_1
A20_Address1,t44_1
A18_ProviderNumber,t45_1
A17_HospitalName,t45_1
A20_Address1,t45_1
A19_ProviderNumber,t46_1
A18_HospitalName,t46_1
A21_Address1,t46_1
A19_ProviderNumber,t47_1
A18_HospitalName,t47_1
A21_Address1,t47_1
A19_ProviderNumber,t48_1
A18_HospitalName,t48_1
A21_Address1,t48_1
A19_ProviderNumber,t49_1
A18_HospitalName,t49_1
A21_Address1,t49_1
A19_ProviderNumber,t50_1
A18_HospitalName,t50_1
A21_Address1,t50_1
A20_ProviderNumber,t51_1
A19_HospitalName,t51_1
A22_Address1,t51_1
A20_ProviderNumber,t52_1
A19_HospitalName,t52_1
A22_Address1,t52_1
A20_ProviderNumber,t53_1
A19_HospitalName,t53_1
A22_Address1,t53_1
A21_ProviderNumber,t54_1
A20_HospitalName,t54_1
A23_Address1,t54_1
A21_ProviderNumber,t55_1
A20_HospitalName,t55_1
A23_Address1,t55_1
A22_ProviderNumber,t56_1
A21_HospitalName,t56_1
A24_Address1,t56_1
A22_ProviderNumber,t57_1
A21_HospitalName,t57_1
A24_Address1,t57_1
A23_ProviderNumber,t58_1
A21_HospitalName,t58_1
A24_Address1,t58_1
A24_ProviderNumber,t59_1
A22_HospitalName,t59_1
A25_Address1,t59_1
A24_ProviderNumber,t60_1
A22_HospitalName,t60_1
A25_Address1,t60_1
A24_ProviderNumber,t61_1
A22_HospitalName,t61_1
A25_Address1,t61_1
A24_ProviderNumber,t62_1
A22_HospitalName,t62_1
A25_Address1,t62_1
A25_ProviderNumber,t63_1
A23_HospitalName,t63_1
A26_Address1,t63_1
A26_ProviderNumber,t64_1
A24_HospitalName,t64_1
A27_Address1,t64_1
A26_ProviderNumber,t65_1
A24_HospitalName,t65_1
A27_Address1,t65_1
A27_ProviderNumber,t66_1
A25_HospitalName,t66_1
A28_Address1,t66_1
A27_ProviderNumber,t67_1
A25_HospitalName,t67_1
A28_Address1,t67_1
A27_ProviderNumber,t68_1
A25_HospitalName,t68_1
A28_Address1,t68_1
A28_ProviderNumber,t69_1
A26_HospitalName,t69_1
A29_Address1,t69_1
A28_ProviderNumber,t70_1
A26_HospitalName,t70_1
A29_Address1,t70_1
A28_ProviderNumber,t71_1
A26_HospitalName,t71_1
A29_Address1,t71_1
A28_ProviderNumber,t72_1
A26_HospitalName,t72_1
A29_Address1,t72_1
A28_ProviderNumber,t73_1
A26_HospitalName,t73_1
A29_Address1,t73_1
A12_ProviderNumber,t74_1
A11_HospitalName,t74_1
A13_Address1,t74_1
A12_ProviderNumber,t75_1
A11_HospitalName,t75_1
A13_Address1,t75_1
A29_ProviderNumber,t76_1
A27_HospitalName,t76_1
A30_Address1,t76_1
A29_ProviderNumber,t77_1
A27_HospitalName,t77_1
A30_Address1,t77_1
A29_ProviderNumber,t78_1
A27_HospitalName,t78_1
A30_Address1,t78_1
A29_ProviderNumber,t79_1
A27_HospitalName,t79_1
A30_Address1,t79_1
A30_ProviderNumber,t80_1
A28_HospitalName,t80_1
A31_Address1,t80_1
A30_ProviderNumber,t81_1
A28_HospitalName,t81_1
A31_Address1,t81_1
A30_ProviderNumber,t82_1
A28_HospitalName,t82_1
A31_Address1,t82_1
A31_ProviderNumber,t83_1
A29_HospitalName,t83_1
A32_Address1,t83_1
A32_ProviderNumber,t84_1
A30_HospitalName,t84_1
A33_Address1,t84_1
A32_ProviderNumber,t85_1
A30_HospitalName,t85_1
A33_Address1,t85_1
A32_ProviderNumber,t86_1
A30_HospitalName,t86_1
A33_Address1,t86_1
A33_ProviderNumber,t87_1
A31_HospitalName,t87_1
A34_Address1,t87_1
A33_ProviderNumber,t88_1
A31_HospitalName,t88_1
A34_Address1,t88_1
A33_ProviderNumber,t89_1
A31_HospitalName,t89_1
A34_Address1,t89_1
A34_ProviderNumber,t90_1
A31_HospitalName,t90_1
A34_Address1,t90_1
A33_ProviderNumber,t91_1
A31_HospitalName,t91_1
A34_Address1,t91_1
A35_ProviderNumber,t92_1
A32_HospitalName,t92_1
A35_Address1,t92_1
A35_ProviderNumber,t93_1
A32_HospitalName,t93_1
A35_Address1,t93_1
A36_ProviderNumber,t94_1
A33_HospitalName,t94_1
A36_Address1,t94_1
A37_ProviderNumber,t95_1
A34_HospitalName,t95_1
A37_Address1,t95_1
A37_ProviderNumber,t96_1
A35_HospitalName,t96_1
A37_Address1,t96_1
A37_ProviderNumber,t97_1
A35_HospitalName,t97_1
A37_Address1,t97_1
A37_ProviderNumber,t98_1
A35_HospitalName,t98_1
A37_Address1,t98_1
A37_ProviderNumber,t99_1
A35_HospitalName,t99_1
A37_Address1,t99_1
This diff is collapsed.
A1_ProviderNumber
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
ProviderNumber,HospitalName,Address1
10018,CallahanEyeFoundationHospital,1720UniversityBlvd
10018,CallahanEyeFoundationHospital,1720UniversityBlvd
10018,CallahanEyeFoundationHospital,1720UniversityBlvd
10018,CallahanEyeFoundationHospital,1720UniversityBlvd
10018,CallahanEyeFoundationHospital,1720UniversityBlvd
10018,CallahanEyeFoundationHospital,1720UniversityBlvd
10018,CallahanEyeFoundationHospital,1720UniversityBlvd
10018,CallahanEyeFoundationHospital,1720UniversityBlvd
10019,HelenKellerMemorialHospital,1300SouthMontgomeryAvenue
10019,HelenKellerMemorialHospital,1300SouthMontgomeryAvenue
10019,HelenKellerMemorialHospital,1300SouthMontgomeryAvenue
10019,HelenKellerMemorialHospital,1300SouthMontgomeryAvenue
10019,HelenKellerMemorialHospital,1300SouthMontgomeryAvenue
1xx19,HelenKellerMemorialHospital,1300SouthMontgomeryAvenue
10019,HelenKellerMemorialHospital,1300SouthMontgomeryAvenue
10019,HelenKellerMemorialHospital,1300SouthMontgomeryAvenue
10019,HelenKellerMemorialHospital,1300SouthMontgomeryAvenue
10019,HelenKellerMemorialHospital,1300SouthMontgomeryAvenue
10019,HelenKellerMemorialHospital,1300SouthMontgomeryAvenue
\ No newline at end of file
A1_ProviderNumber
\ No newline at end of file
......@@ -115,7 +115,7 @@ def fix_csv(filepath, filename, working_columns, cells_to_fix,
# report_fix out_file
# [tid,attribute,correct_val]
# TO DO
ldb.ask_atoms_for('t1_1')
ldb.ask_atoms_for(target_tuple)
......@@ -146,6 +146,30 @@ def try_guess_movies_rate():
fix_csv(filepath, filename, working_columns, cells_to_fix,
"A1_Vote", "t1_1")
def try_fix_hospital_100():
# filepath, is absolute path to logic database
filepath = 'db/hospital100/'
# filename, is the file name with extension
filename = 'hospital_100.csv'
# list of columns to care about in training
working_columns = ['ProviderNumber', 'HospitalName', 'Address1']
# list of couples (row,col) of cells to fix
cells_to_fix = [[1, 1], [1, 3]]
fix_csv(filepath, filename, working_columns, cells_to_fix,
"A1_ProviderNumber", "t1_1")
def try_fix_hospital_1000():
# filepath, is absolute path to logic database
filepath = 'db/hospital1000/'
# filename, is the file name with extension
filename = 'hospital-1000-refined.csv'
# list of columns to care about in training
working_columns = ['ProviderNumber', 'HospitalName', 'Address1']
# list of couples (row,col) of cells to fix
cells_to_fix = [[1, 1], [1, 3]]
fix_csv(filepath, filename, working_columns, cells_to_fix,
"A1_ProviderNumber", "t13_1")
try_fix_hospital_10()
# try_guess_movies_rate()
try_fix_hospital_100()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment