- Documents only
- Limited to 5 documents
user system total real
jbuilder: 1.501785 0.083033 1.584818 ( 3.968501)
as_json: 0.993441 0.054661 1.048102 ( 3.359240)
| def gen_align(align, size): | |
| texto = "" | |
| for i in range(0,size): | |
| texto += align | |
| return texto | |
| def gen_header(size): | |
| header = " " | |
| for i in range(0, size): | |
| header += "& " + str(i) + " " |
| """ | |
| Code to parse sklearn classification_report | |
| Original: https://gist.github.com/julienr/6b9b9a03bd8224db7b4f | |
| Modified to work with Python 3 and classification report averages | |
| """ | |
| import sys | |
| import collections |
| var Connection = require("tedious").Connection; | |
| var Request = require("tedious").Request; | |
| var ConnectionPool = require("tedious-connection-pool"); | |
| // Avoiding concurrent SQL SERVER calls | |
| var poolConfig = { | |
| min: 1, | |
| max: 1, | |
| log: true | |
| }; |