Open in app
Home
Notifications
Lists
Stories

Write
Oliver K. Ernst, Ph.D.
Oliver K. Ernst, Ph.D.

Home
About

Published in Practical coding

·Pinned

You’ve probably missed one of the greatest ML packages out there

And no, it’s not in Python. Or C++. It might not even be in a language you already know, based on how relatively unpopular it is. But if you’ve studied math or physics at university you’ve probably at least heard of it. I’m talking about Mathematica. And since version 11…

Machine Learning

11 min read

You’ve probably missed one of the greatest ML packages out there
You’ve probably missed one of the greatest ML packages out there

Published in Practical coding

·6 days ago

2 quick lessons from a C# coding exercise

This simple problem reminded me not to overthink — unless you have to. I still like doing coding exercises, even after years of programming. I recently came across this neat exercise — a simplified Pythagorean triplet — that reminded me not to overthink problems until you really have to. Fair…

C Sharp Programming

5 min read

2 quick lessons from a C# coding exercise
2 quick lessons from a C# coding exercise

Published in Practical coding

·Apr 12

The missing manual to SwiftUI animations

Time to get those animations working. Ever since SwiftUI came out I’ve been a big fan. Finally no more storyboards, no more duplicate nonsense of half building in code and half in a GUI. But animations lately reminded me that there’s still a lot of less than obvious tricks you…

Swift

5 min read

The missing manual to SwiftUI animations
The missing manual to SwiftUI animations

Published in Practical coding

·Dec 27, 2021

Convolution calculator for neural networks

Easily choose parameters for convolution layers in neural networks. The goal is to help you design convolution layers, in case you are like me and can’t think about things without a pretty picture. Here you can find the calculator online: Convolution calculator for CNNs Easily design convolution layers for neural networks.www.oliver-ernst.com You can also embed it on your website — it’s…

Machine Learning

3 min read

Convolution calculator for neural networks
Convolution calculator for neural networks

Published in Practical coding

·Dec 16, 2021

Export Safari reading list using Python

Clean up your teeming reading list. Here is the GitHub repo. with the script. If you are like me, your reading list is overflowing. Mine is over 1000+ entries. I use it daily to quickly remind myself of useful websites I’ve found, but I never bother to clean it up…

Python

3 min read

Export Safari reading list using Python
Export Safari reading list using Python

Published in Practical coding

·Nov 12, 2021

Improve your Swift unit tests with async-like helpers

Take away the ugliness of expectations for dealing with completions using async-like helpers and lambda functions. I wish async were ready in Swift. OK, it’s ready as of Swift 5.5! But only for iOS 15 (at the time of writing), which doesn’t really help much for most app development, since…

Programming

3 min read

Improve your Swift unit tests with async-like helpers
Improve your Swift unit tests with async-like helpers

Published in Practical coding

·Nov 3, 2021

The magic of RawRepresentable in Swift

Extensions I keep coming back to. Enums are great. In many languages enums arise when we don’t have a binary (boolean) option, but rather one of many. In Swift they simplify even binary events by letting you make otherwise optional variables as non-optional. But one of the coolest parts about…

Swift

2 min read

The magic of RawRepresentable in Swift
The magic of RawRepresentable in Swift

Published in Practical coding

·Oct 19, 2021

Flash larger SD card image onto smaller card on Mac for your Raspberry Pi

Finally, something that works. Maybe it’s Raspberry Pi OS or maybe its Raspbian or maybe its NOOBS. You flashed it onto a 32GB SD card without thinking, and now you want to clone it onto another card. Only, your other card is only 16GB. This should work if your card…

Raspberry Pi

3 min read

Flash larger SD card image onto smaller card on Mac for your Raspberry Pi
Flash larger SD card image onto smaller card on Mac for your Raspberry Pi

Oct 2, 2021

Estimating constrained precision matrices with TensorFlow

Gaussian graphical models are defined by the structure of the precision matrix. From a fixed structure, how we estimate the values of the precision matrix? I will show you two slightly different problems using TensorFlow. You can see the GitHub repo for this project here. The corresponding package can also…

Machine Learning

6 min read

Estimating constrained precision matrices with TensorFlow
Estimating constrained precision matrices with TensorFlow

Published in Practical coding

·Sep 20, 2021

Swift documentation without long CI pipelines

The awesomeness of CI is that docs and tests run automatically. Requiring that tests pass on merges is probably the most critical CI feature to large projects. The pain of CI for Swift is that for simple things like generating documentation, we have to build the entire package/app, which usually…

Swift

3 min read

Swift documentation without long CI pipelines
Swift documentation without long CI pipelines
Oliver K. Ernst, Ph.D.

Oliver K. Ernst, Ph.D.

Coding, ML, AI — oliver-ernst.com

Following
  • Gunnar De Winter

    Gunnar De Winter

  • Nico Nobili

    Nico Nobili

  • Spencer

    Spencer

  • LucianoSphere

    LucianoSphere

  • Louis Bouchard

    Louis Bouchard

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable