Mark Elliott

62 Followers
52 Following
59 Posts
Applied Linguistics, Assessment, Maths, Edu AI. Mostly other stuff, though. All views my own – free typo with every tooot.
Hi, @thatmarkelliott.bsky.social
Hi, @thatmarkelliott.bsky.social
Because we all need some wholesome content sometimes, meet Benji.

What I learned today: you can't use if-conditionals in a Keras custom loss function. I managed to come with a solution...

All the operations in the custom loss function need to be vectorised, so an if-conditional breaks it and throws an exception. The solution is to create Boolean vectors corresponding to each condition, turn their types into float (must be float), multiply each Boolean by the corresponding loss function and sum.

Example:

A reference to a discussion and debunking of Rees-Mogg's claims, for those who are not familiar with that particular grubby episode (which, for the avoidance of doubt, I am not suggesting was the actions of Nazis, but rather another example of an attempt to whitewash history by minimising atrocities):

http://gladstonediaries.blogspot.com/2019/02/british-concentration-camps-response-to.html

British Concentration Camps: A Response to Jacob Rees-Mogg

On BBC  Question Time this week, Jacob Rees-Mogg decided to lecture his fellow panellists on the British concentration camps during the ...

This is a fascinating and illuminating read, with implications well beyond Wikipedia – think of all the careful narrative framing and dubious claims that you see on social media and hear from politicians – even supposedly mainstream politicians, such as Jacob Rees-Mogg, who attempted to minimise the British use of concentration camps during the Boer War by falsely claiming that the death rate in those camps was the same as the death rate in Glasgow at the time.

https://getpocket.com/explore/item/one-woman-s-mission-to-rewrite-nazi-history-on-wikipedia?utm_source=pocket-newtab-global-en-GB

One Woman’s Mission to Rewrite Nazi History on Wikipedia

Ksenia Coffman’s fellow editors have called her a vandal and a McCarthyist. She just wants them to stop glorifying fascists—and start citing better sources.

Pocket

If you need to be delighted by something this morning, I present the tree goats of Morocco.

I was driving near Essaouira the first time I saw this and literally slammed on my brakes because I thought I was suddenly hallucinating. But then you learn how common it is and after a day or two it's, oh, yeah, more goats in trees.

Academics! Science people! 🎓 👩‍🔬 👨‍🔬

There are some curated lists of academics and scientists to follow on Mastodon here:

➡️ https://github.com/nathanlesage/academics-on-mastodon

(Originally shared by @kcarruthers but reposted so that I can pin the link on my account)

(Just to be clear, I did not write this list, I am just passing on the link!)

GitHub - nathanlesage/academics-on-mastodon: A list of various lists consisting of academics on Mastodon

A list of various lists consisting of academics on Mastodon - nathanlesage/academics-on-mastodon

GitHub
... and here's an exciting teaser for some of the details – further explanation in the Post thread, full details in the paper.