Karen on Python mocks: threading.Timer
840 karma · joined January 15, 2020
Karen on Python mocks: threading.Timer
And here's a super simple implementation of GPT by Andrej Karpathy. [link](https://github.com/karpathy/minGPT/blob/master/mingpt/model....)
Yeah I was trying to do something that didn't quite fit with the spacy-transformers API at the time. I did get a bit of a headache trying to use thinc at the time, which was just when you guys did the redesign I think, so the docs were different from what I was seeing. I might not have searched enough though.
I didn't try it yet, but it seems that transformers got added to spacy v3 with first class support.
I did gain something from rummaging though spacy source though! NN layers were composed into module-like pieces, then added to this REGISTRY variable though a decorator. That way some things could be defined at runtime. It was super elegant.
I nicked the concept of that for my data preprocessing pipeline. Saved me a lot of time when trying new things.
Spacy v3 seems to have integrated the package functionality, so I'd go for the nightly release instead of this.
It should be very similar to normal spacy usage, just instead of downloading "en_core_web_sm" etc, it's "en_trf_foo_bar"
I don't think the FBI would ever say that without cracking encryption they'd catch no criminals. Only that many who don't get caught today _would_ be.
But I also think it's obvious that I shouldn't trust you to make the decision of who needs to shut up. And definitely not the government.
Might be good to check that out!
I think politicians really care about these things. But these big sweeping laws and changes are because of hubris (but then again, the job selects for that).
Society is damn complicated, everything affects everything. Making a change in one small part propagates quickly and unpredictably. But politicians don't internalise that (of course, if they did they would never get elected on the platform of "stuff is complicated, I don't know if this will help!").
So they see a problem. Our information is being used maliciously! We need to stop that! Protect the people! So some massive law gets passed with tons of unintended side-effects and it's captured by big corporations at the speed of light.
In some sense, this is an argument in favour of bitcoin.
I wasn't really trying to make a point there, just wanted to be (arguably) funny.
Now even if this catches on, then yeah OK I'll start naming my branches as main unless I want to make a political statement, which would just add to confusion when developing.
Meanwhile these people will pat each other on the back, yell "yeah! We sure made a difference." while black people keep getting fucked by the system and their lives don't get improved one iota.
just... why?
This got me thinking: What if we get the police radio transcripts, and extract every mention of an address. Then have a central hub of drones that get dispatched automatically to any address of "interest" filming.
It's a bit crazy, most likely illegal. But definitely would be cool to see! Arguably truly unbiased "reporting". If you want to know the situation, just plug in to the feeds and get a decent overview of how it looks.
But Netflix's value is not from competing against cable on price, it's competing against piracy on convenience.
Content providers will never again see the same profits, because the de-facto price of content is zero. It's too easy to pirate, and morally grey enough that people are willing to do it.
Netflix got so big because it captured the market of people who were willing to pay for the convenience. If this gets too high they will just go back to pirating.
A lot of the criticism I saw was because the core routines did not need to be packaged up. There were a lot of common data structures reimplemented, etc.
I don't think the model had many novel routines. It could be built just using industry standard and tested tools in python, R, Julia (if you really want speed) etc. But it reinvented the whole ecosystem in one big ball of C.
tbh, this should have been built on STAN or similar. There's so many variables and assumptions that the output is completely dominated by the parameters chosen. Seeing the distribution of outcomes instead of a point estimate would be actually useful.
The reason it seemed they were doing nothing are these passages:
ii. Minimise the potential impact of a pandemic on society and the economy by:
• Supporting the continuity of essential services, including the supply of medicines, and protecting critical national infrastructure as far as possible.
• Supporting the continuation of everyday activities as far as practicable.
• Upholding the rule of law and the democratic process.
• Preparing to cope with the possibility of significant numbers of additional deaths.
• Promoting a return to normality and the restoration of disrupted services at the earliest opportunity.
There's way more, but I've honestly not read it all. But there was a plan, drafted before this epidemic.
Public opinion was turning against the government, but it actually kept course for some time. Something I was honestly impressed with. What made it drop the plan was Neil Ferguson's study.
There are many reasons for criticising the plan. This article is pretty good. https://www.theguardian.com/politics/2020/mar/29/uk-strategy...
What really gets me is that if the lockdown was the correct decision, we arrived there for the wrong reasons.
This paper had such an outsized impact that it should be held to a higher standard. And it's scary (but not really unexpected) that the government is making decisions of this magnitude based on such a shaky foundation.
Not all academic research depends on writing software.
If academics are writing predictive modelling software, I ask that they are qualified to do so.
Go back and re-read it please. I'm saying you need to be capable of using the tools for your job.
If I was working as a software engineer, I'd not be asked to perform heart surgery. A more realistic example would be a software engineer being tasked to develop software in the medical industry, where I would expect them to understand the subject matter enough to ascertain their software is not crap.
From what I understand the UK was planning on beating COVID by creating herd immunity, similarly to Sweden. Then this model came out and everyone started yelling that Boris wanted to kill your grandma.
The problem is that it's impossible to have an intelligent discussion over this. This pandemic became a partisan issue. We're not discussing whether one of the most impactful decisions made by a government this generation should be based over absolute trash code. You're either uncritical of the lockdown or "anti-science".
C++ is a tool, not an end product. If you're not qualified to use a tool correctly it's not the manufacturer's fault, it's yours.
Why do so many people believe that good software development is not part of their job? If you write code then you're a developer, no matter your job title. If you write shit software, saying you're a researcher is not an excuse.
I think that a good thing. Formatting discussions are important (arguably), but it should be decoupled from a specific project.