Select employees with highest salary in each departmentIn our table we have two departments IT and HR , Third employee has…
Continue Readingfunctions
Hash function menagerie
Here’s an oversimplified survey of cryptographic hash functions: Everyone used to use MD5, now they use some variation on SHA.…
Continue ReadingCleaner R Code with Functional Programming
What’s a data analyst to do?The solution is to use applies (also called maps). Maps take a collection of things,…
Continue ReadingGeneralizing functions with Profunctors
Generalizing functions with ProfunctorsOscar PonceBlockedUnblockFollowFollowingFeb 8Nowadays functional programming has been gaining some deserved hype, and we read here and there…
Continue ReadingCreating Magic Functions in IPython — Part 1
You can run %debug right after the exception happened and IPython will start an interactive debugger for that exception. It’s…
Continue ReadingRoom ???? Coroutines
CoroutinesAdd some suspense to your databaseFlorina MuntenescuBlockedUnblockFollowFollowingFeb 6Room 2. 1 (currently in alpha) adds support for Kotlin coroutines. DAO methods can…
Continue ReadingFast Virtual Functions: Hacking the VTable for Fun and Profit
Until later!Only the overridden functions were called!When are virtual functions slow and how slow are they?We’ve seen how you can call…
Continue ReadingAdvanced Keras — Constructing Complex Custom Losses and Metrics
Advanced Keras — Constructing Complex Custom Losses and MetricsEyal ZakkayBlockedUnblockFollowFollowingJan 10Photo Credit: Eyal ZakkayTL;DR — In this tutorial I cover a simple trick that will allow…
Continue ReadingSwitching from OOP to Functional Programming
I often have some data and functions that change that data in one class. For that we have Algebraic Data…
Continue ReadingFrom Java to JavaScript — Functions and Scopes
From Java to JavaScript — Functions and ScopesMarius ReimerBlockedUnblockFollowFollowingJan 5Photo by Joshua Brown on UnsplashIn my last post I wrote about data type differences…
Continue ReadingHow would we find a better activation function than ReLU?
Then it adds a bias, b, to that sum to arrive at a final value — that’s what that Σ symbol means.…
Continue ReadingCustom TensorFlow Loss Functions for Advanced Machine Learning
Custom TensorFlow Loss Functions for Advanced Machine LearningAnd few-shot transfer learning exampleHaihan LanBlockedUnblockFollowFollowingJan 2In this article, we’ll look at:The use of custom…
Continue ReadingInverse Reinforcement Learning
Once we have the right reward function, the problem is reduced to finding the right policy, and can be solved…
Continue ReadingTop 100 most used R functions on GitHub
There are 2 ways – find functions directly in the GitHub files or find them somewhere else and check their…
Continue ReadingHex – Creating Intelligent Adversaries (Part 2: Heuristics & Dijkstra’s Algorithm)
In a way, it can be considered a shortcut.tl;dr A heuristic is an approximation of the exact solution.To get a…
Continue Reading