Fork me on GitHub
#off-topic
<
2018-06-26
>
sveri10:06:49

I am missing keras, actually. I will be looking into dl4j now with clojure. But yea, the amount of tutorials on machine learning is much larger with python than with java, let alone clojure.

jjttjj14:06:54

if you had to guess, what would you say the global average number of children an html element has in the wild?

jjttjj15:06:38

seems like the number is closer to 1 on most sites! For JS console:

var all = document.body.getElementsByTagName("*");
var n = 0
for (var i=0, max=all.length; i < max; i++) {
	n += all[i].children.length
}
n / all.length

polymeris16:06:27

It would be interesting to see how much it varies per tag. I'd guess divs tend to have 1 or 2 children, stuff like p or b tends to have 0, which tag has the most?

bherrmann15:06:43

Yea, It seems most tags are leafs

justinlee16:06:55

and even non-leaf nodes comprise a huge number of container divs that just wrap another element for some reason usually related to css madness