-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvalidate.py
More file actions
19 lines (16 loc) · 784 Bytes
/
validate.py
File metadata and controls
19 lines (16 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
'''Validate the results of a disaggregation.'''
import rum
import rum.validate
argparser = rum.defaultArgumentParser(__doc__)
argparser.add_argument('true_table', help='table containing the true values')
argparser.add_argument('model_table', help='table containing the modeled/disaggregated values')
argparser.add_argument('-t', '--true-field', help='model value field', default='target')
argparser.add_argument('-m', '--model-field', help='model value field', default='value')
argparser.add_argument('-r', '--report', help='save HTML report to this path')
if __name__ == '__main__':
args = argparser.parse_args()
rum.validate.ModelValidator.fromArgs(args).run(
args.true_table, args.model_table,
args.true_field, args.model_field,
args.report
)