Better HN
topnewbestaskshowjobs
Log inSign up

PartiallyTyped

2,940 karma · joined Oct 16, 2020 (6y ago) · 2,890 submissions

me [at] [$handle].dev

----------------------------------------------------

Submissions

comment 5y ago · link · parent

> I haven't tried numba but I've heard good things about it! Nice linked tutorial. If I understand correctly, you pass in jitted functions (using numba, and jax) into iminuit which does the optimisation?

Yes, you can just pass the function and it runs the optimization, in severe cases, you can start by doing a grid `.scan` or `.simplex` (Nelder-Mead simplex method), then `migrad` to minimize, and `.hesse` for 1 sigma bound.

You can also provide a gradient function that, well computes the gradient instead of computing it numerically.

> I imagine you can also do this in numba

Yes! It compiles to native code.

> Another big speedup in Jax is due to vmap/pmap, which allow to vectorise/parallelise computation.

It's possible to compile some vmapped functions with numba too, if the link is any indication, you may see even greater speedup than just jax.grad

However, I do concur that jax's vmap is absolutely fantastic and I found it very useful on many occasions.

comment 5y ago · link · parent

I still have some issues in nojit mode, but jit is most of the time fine. It's still a bit iffy with lists, but most of the time I can use numpy arrays.

TBF I am mainly using it for mostly pure path functions.

comment 5y ago · link · parent

Have you tried numba+numpy? In my experience, it is much faster than Jax and can compile to cuda. It's not caveat free, but it also removes the hustle of labeling arrays as donated in Jax.

You may find this interesting https://github.com/scikit-hep/iminuit/blob/develop/tutorial/...

comment 5y ago · link · parent

The culprit here is `a_list: Vec<Vec<f64>>`, which means the list of lists is copied as a whole, hence why the rust version is slower.

In general, rust is at least as fast as C or C++, but this seems to be a special case.

comment 5y ago · link · parent

1.5% https://www.coindesk.com/coinbase-ceo-sold-291-8m-in-shares-...

comment 5y ago · link · parent

> Although I don't know any diet that would be "clean" compared with a water fast...

Vegan perhaps?

comment 5y ago · link · parent

I am a grad student in a top european university in CS, and tough love has been my experience as well. We have access to the grade distributions and they are steep but not multimodal, with many students failing the first mandatory and notorious courses.

The usually grade depends on a single test, often oral which puts additional burden, plus, to even qualify for the test, students need to achieve well above 50% average on homework assignments.

comment 5y ago · link · parent

As long as Cyprus is a member, Turkey will never be. Member countries have veto power.

comment 5y ago · link · parent

Cynical take: your comment's votes keep fluctuating because those who upvote agree, and those who downvote do it because the comment doesn't add anything to the discussion.

comment 5y ago · link · parent

The moment encryption becomes illegal is the moment political dissidents, whistleblowers, reporters and every person in between are criminals.

We forfeit our freedom to express any idea or thought that deviates from the current list of acceptable thought patterns.

Suddenly you and all your thoughts or actions are subject to tracking by any government, any government official, any corporation and any malevolect actor.

The government already has a monopoly on violence, what's next?

comment 5y ago · link · parent

Speaking of, this is a blog post that I really liked on factorio from a functional programming perspective.

https://bartoszmilewski.com/2021/02/16/functorio/

comment 5y ago · link · parent

I'd say, it depends? It definitely takes less time to screenshot something from the notes and import it in LaTeX, or even plot it with python and matplotlib or seaborn.

comment 5y ago · link · parent

Also, mass tracking through mobile devices. Even if said devices are in faraday cages, it doesn't take a genius to see that something exists in some area when there are many devices going dark and then coming back up again after some hours. It only takes access to cellphone towers and data.

comment 5y ago · link · parent

Denmark has a fixed exchange policy with euro so it shouldn't count.

comment 5y ago · link · parent

I find a lot more things that I like in rust over Cxx; I like the trait system over Cxx's whole virtual functions and interfaces. I like algebraic types and forced enumeration of cases, I like immutable by default without the need to write const everywhere, and I certainly prefer cargo over anything I have seen in Cxx ecosystem.

comment 5y ago · link · parent

They certainly expect lower demand on their current chips as they run hot(er) and with fewer cores. They have bought a percentage of TSMC's production but TSMC is not very hot about them either as they are building new fabs for their 7nm chips.

comment 5y ago · link · parent

Neither. Probably recycling/repurposing of older fabs. Afaik car manufacturers are not looking for cutting edge chips found in memory, cpus and gpus, so older fabrication lines can be repurposed for that role and provide an alternative revenue stream for intel until they manage to sort their CPU fab line out.

comment 5y ago · link · parent

I too found bigSur to be really sluggish. I downgraded my 2018 MBP15 to Mojave and it was a night and day difference.

comment 5y ago · link · parent

Certain kinds of attacks really are just that, unexpected, even if they are cyber attacks. See for example the recent attack against the US. The media was quick to praise the attack as unprecedented and sophisticated, when in reality, it wasn't anywhere close to something like stuxnet.

comment 5y ago · link · parent

It makes one seem mighty, and it makes the other not seem as incompetent. If the attack was 'unprecedented', or 'unexpected' or 'sophisticated' then the people responsible from the victim's team are absolved of their failures and mistakes while the other side gets to look good and mighty.

comment 5y ago · link · parent

isn't stuxnet speculated to originate from the US and Israel ?

comment 5y ago · link · parent

He is also the most subscribed youtuber at 109M subscribers IIRC.

comment 5y ago · link · parent

Across countries in the EU, there exists a gap in the available shows.

comment 5y ago · link · parent

This issue however, exists in more than just commercial software. Personal example, OSes feel bloated, I switched from BigSur to Mojave in my 2018MBPro and I saw significant improvements in responsiveness with virtually no change in usage behavior. Even software whose supposed features are stability and speed feel bloated, e.g. weird bugs in Unity, photoshop is sluggish without any significant increase in the visible features.

comment 5y ago · link · parent

Let's for a second assume that we bound the weights within [-1,1], considering that we are using floats to represent them which are a subset of real numbers, by increasing the number of hidden neurons, you increase the class of models that you can select from, any single bit change in the weights means a different model. By increasing the class of models in your search space, you increase the number of models that perform good on training, but perform worse on test, i.e. underestimate true loss.

Exactly because you select a single model and you have more models that underestimate the true (read test) error, you *may* be more likely to get models with worse performance on the test set compared to using a smaller network exactly because in the smaller network you are searching within a smaller distribution.

comment 5y ago · link · parent

It solves memory problems and certainly doesn't shoot your foot with destructors, weird moves and so on like C++, it lacks a garbage collector which imho is a big plus (though, as C# and Java show it is not necessarily a big problem), and I prefer the trait system over than Cxx's virtual classes/interfaces. I also like that the compiler is very helpful, it introduces some friction while writing, but I suppose that is my lack of expertise.

comment 5y ago · link · parent

Robots need to be faster, lighter, more agile and with longer battery.
1
848586
97