torchvision by Ciro Santilli 35 Updated +Created
Contains several computer vision models, e.g. ResNet, all of them including pre-trained versions on some dataset, which is quite sweet.
HHL algorithm by Ciro Santilli 35 Updated +Created
QMUL research group by Ciro Santilli 35 Updated +Created
ResNet v1 vs v1.5 by Ciro Santilli 35 Updated +Created
catalog.ngc.nvidia.com/orgs/nvidia/resources/resnet_50_v1_5_for_pytorch explains:
The difference between v1 and v1.5 is that, in the bottleneck blocks which requires downsampling, v1 has stride = 2 in the first 1x1 convolution, whereas v1.5 has stride = 2 in the 3x3 convolution.
This difference makes ResNet50 v1.5 slightly more accurate (~0.5% top1) than v1, but comes with a smallperformance drawback (~5% imgs/sec).
Integer factorization algorithms better than Shor's algorithm by Ciro Santilli 35 Updated +Created
A group of Chinese researchers have just published a paper claiming that they can—although they have not yet done so—break 2048-bit RSA. This is something to take seriously. It might not be correct, but it’s not obviously wrong.
We have long known from Shor’s algorithm that factoring with a quantum computer is easy. But it takes a big quantum computer, on the orders of millions of qbits, to factor anything resembling the key sizes we use today. What the researchers have done is combine classical lattice reduction factoring techniques with a quantum approximate optimization algorithm. This means that they only need a quantum computer with 372 qbits, which is well within what’s possible today. (The IBM Osprey is a 433-qbit quantum computer, for example. Others are on their way as well.)
@cirosantilli/_file/python/python/sphinx by Ciro Santilli 35 Updated +Created
To run each example and see the output run:
./build.sh
xdg-open out/index.html
@cirosantilli/_file/python/sphinx/python/sphinx/hello by Ciro Santilli 35 Updated +Created
Minimal example. Gives a hint at how boilerplate heavy Sphinx can be!
@cirosantilli/_file/python/sphinx/python/sphinx/class by Ciro Santilli 35 Updated +Created
Basic class example.
SQL histogram by Ciro Santilli 35 Updated +Created
OK, there's a billion questions:
Let's try it on SQLite 3.40.1, Ubuntu 23.04. Data setup:
sqlite3 tmp.sqlite 'create table t(x integer)'
sqlite3 tmp.sqlite <<EOF
insert into t values (
  0,
  2,
  2,
  3,

  5,
  6,
  6,
  8,
  9,

  17,
)
EOF
sqlite3 tmp.sqlite 'create index tx on t(x)'
For a bin size of 5 ignoring empty ranges we can:
sqlite3 tmp.sqlite <<EOF
select floor(x/5)*5 as x,
       count(*) as cnt
from t
group by 1
order by 1
EOF
which produces the desired:
0|4
5|5
15|1
And to consider empty ranges we can use SQL genenerate_series + as per stackoverflow.com/questions/72367652/populating-empty-bins-in-a-histogram-generated-using-sql:
sqlite3 tmp.sqlite <<EOF
select x, sum(cnt) from (
  select floor(x/5)*5 as x,
         count(*) as cnt
    from t
    group by 1
  union
  select *, 0 as cnt from generate_series(0, 15, 5)
)
group by x
EOF
which outputs the desired:
0|4
5|5
10|0
15|1
SQL spatial index by Ciro Santilli 35 Updated +Created
SQL subquery by Ciro Santilli 35 Updated +Created
Window function (SQL) by Ciro Santilli 35 Updated +Created
DELETE (SQL) by Ciro Santilli 35 Updated +Created
SQL stored procedure by Ciro Santilli 35 Updated +Created

Unlisted articles are being shown, click here to show only listed articles.