HNHacker News
TopNewBestAskShowJobs

ricsca

349 karma · joined March 31, 2014

Theoretical Physicist, PhD, now freelancer in data science and data Visualization.

http://riccardoscalco.github.io/

submissionscomments
ricsca··on Show HN: Textures.js, SVG Patterns for Data Visualization
It should be

    var t = texture().lines().stroke('red')
    if(this.button.on) t.heavier()
ricsca··on Show HN: Textures.js, SVG Patterns for Data Visualization
Wow! Thanks.
ricsca··on Show HN: Textures.js, SVG Patterns for Data Visualization
Interesting point of view. Choices of style apart, there are situations where textures are useful. Like for example the case faced by swayvil (see the comment), or when you need b/w printable images. Another good reference is "Semiology of Graphics" of Jacques Bertin, he has a good opinion about textures.
ricsca··on Show HN: Textures.js, SVG Patterns for Data Visualization
:D thanks! Very good point.
ricsca··on Show HN: Textures.js, SVG Patterns for Data Visualization
Interesting point. I simply relied o this post of Mike Bostock http://bost.ocks.org/mike/chart/.
ricsca··on Show HN: Textures.js, SVG Patterns for Data Visualization
Many thanks for the good words! I am happy you like it.
ricsca··on Show HN: Textures.js, SVG Patterns for Data Visualization
I did it with d3.js and topojson, then I used the resulting svg image on the website. You can find the code here https://github.com/riccardoscalco/textures/blob/gh-pages/map...
ricsca··on Show HN: Textures.js, SVG Patterns for Data Visualization
Textures and colors can be combined, for example if you need to select according two different group of categories/variables.
ricsca··on Show HN: Pykov – a tiny Python module on finite regular Markov chains
Pykov implements the computation of some of the most common quantities related to discrete-time finite regular Markov Chains, namely: steady state, mean first passage times and absorbing times. The calculation are performed by means of the analytic formulas described on Kemeny&Snell, and the steady state is derived with the inverse iteration method. If you are interested on random walkers, pykov offers a handy way to generate them and evaluate their probability. Sorry, I do not know PyMC well enough to say if the above quantities can be calculated also with it.
ricsca··on Show HN: Pykov – a tiny Python module on finite regular Markov chains
I coded this library during my PhD, where I applied Markov Chains to the study of protein folding dynamics. I am quite confident with it, but as far as I know few others used it. At that time, I used pykov with networks of around 100k nodes and 500k links. Only recently I replaced pysparse with scipy sparse solvers. Entire methods are comment out because they are heuristics that do not belong to the standard Markov Theory, and they can be removed.
ricsca··on Show HN: Pykov – a tiny Python module on finite regular Markov chains
Agree. Naming is difficult and here maybe I did a wrong choice. Anyway, pykov.Vector class inherit from dict, which is not ordered, so mutating in place cannot be done. The sort() method returns a list, which makes the name "sort" even more problematic. What do you suggest? (OrderedDict?)
ricsca··on Show HN: Pykov – a tiny Python module on finite regular Markov chains
All good points, thanks for pointing them out. I'll consider each one carefully.