I hope I am building the legacy of a strong writer/poet and performer. So, we wanted to encourage conversations on the topic of legacy and you’ll find highlights from our conversation from some wonderful members of the business and creative community below. Psylocke (played by actress Mei Melancon), a mutant who possesses psionic powers, from “X-Men: The Last Stand” (2006).When we go on short trips we often know exactly what we expect at the end, but when it comes to our lives and careers we’ve seen far too often we shy away from really thinking through where we expect to be at the end and what we hope our legacy will be. Michelle (played by actress Bai Ling), an assasin with a heart of gold, from “The Gene Generation” (2007). Yukio (played by actress Shiori Kutsuna), a female ninja, from “Deadpool 2” (2018). From left to right: Two fabricants (clones) from “Cloud Atlas” (2012). In science fiction movies, a colored hair swish is usually associated with a character that is ambiguous in some way. The swish() activation function is named for its shape. There are significant new developments, such as the use of the swish() activation function, being discovered all the time. The field of machine learning is very excting. So, swish() worked fine, and I beleive the research claims that swish() is superior to relu() and tanh() for very deep NNs. But when I used a learning rate of 0.02 with swish(), I got essentially the same results. Compared to the NN with tanh() and a learning rate of 0.01, the swish() version learned a bit slower. I took an existing 6-(10-10)-3 classifier I had, which used tanh() on the two hidden layers, and replaced tanh() with swish(). The demo run on the right uses swish() activation with a LR = 0.02. The demo run on the left uses tanh() activation with a LR = 0.01. So, adding what are essentially unnecessary functios to PyTorch can have a minor upside. But if swish() had been in PyTorch I would have discovered it earlier. Adding such a trivial function just bloats a large library even further. The fact that PyTorch doesn’t have a built-in swish() function is interesting. Update: I just discovered that PyTorch 1.7 does have a built-in swish() function. Z = self.oupt(z) # no softmax for multi-class # z = T.tanh(self.hid1(x)) # replace tanh() w/ swish() However, it’s trivial to implement inside a PyTorch neural network class, for example: At the time I’m writing this bog post, Keras and TensorFlow have a built-in swish() function (released about 10 weeks ago), but the PyTorch library does not have a swish() function. The Wikipedia entry on swish() points out that swish() is sometimes called sil() or silu() which stands for sigmoid-weighted linear unit. The three related activation functions are: It’s sort of a cross between logistic sigmoid() and relu(). I made this graph of sigmoid(), swish(), and relu() using Excel. The swish() function was devised in 2017. ![]() Many variations of relu() followed but none were consistently better so relu() has been used as a de facto default since about 2015. Then relu() was found to work better for deep neural networks. In the early days of NNs, logistic sigmoid() was the most common activation function. I don’t know Thorsten personally, but he seems like a very bright and creative guy. My thanks to fellow ML enthusiast Thorsten Kleppe for pointing swish() out to me when he mentioned the similarity between swish() and gelu() in a Comment to an earlier post. I was recently alerted to the new swish() activation function for neural networks. It’s very difficult, but fun, to keep up with all the new ideas in machine learning.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |