`MaybeApply` high order abstraction
See original GitHub issueWe should consider an implementation for a MaybeApply
layer:
maybe_solarize = MaybeApply(Solarization(), rate=0.5)
# maybe_solarize solarizes half of the images passed to it
Notes:
- we can rely on this in RandomAugmentationPipeline
- this must be element-wise, not batch wise!
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Higher-order abstract syntax - Wikipedia
In computer science, higher-order abstract syntax (abbreviated HOAS) is a technique for the representation of abstract syntax trees for languages with ...
Read more >Higher-Level versus Higher-Order Abstraction
Calculus is a higher-order abstraction that algebra. In fact, abstractions similar to the ones built with calculus are what I mean when I...
Read more >Untitled
High -level API to access Play global features. Source: Play.scala ... def maybeApplication: Option[Application]. Optionally returns the current running ...
Read more >Higher‐Order Abstraction Principles - Mount - 2015 - Thought
Cook demonstrated that the satisfiability of certain higher-order analogues of Hume's Principle is independent of ZFC. I show that similar ...
Read more >Sendmail X: Functional Specification - Sendmail Open Source
This chapter describes the external functionality as well as the internal interfaces of sendmail X as much as required, i.e., for an implementation...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It seems to me this is such a common pattern that we should include it.
I’ve seen:
many times in my life, and this is actually incorrect if you are performing batched augmentation. By providing a proper implementation that does this on an element-wise basis, we are providing some value. I’m fairly sure we want this, let me confirm one more time tomorrow, but I am 90% sure this is an abstraction we want.
FYI @sebastian-sz I’ve tagged this contribution welcome.
These high order components that take other components are a nice pattern.