One of my favorite Python 3 builtins is functools.lru_cache(): with a simple decorator, repeated function calls become O(1) table lookups. https://t.co/ORphGWvkCz pic.twitter.com/NmYVIxO9mE
— Jake VanderPlas (@jakevdp) August 8, 2018
One of my favorite Python 3 builtins is functools.lru_cache(): with a simple decorator, repeated function calls become O(1) table lookups. https://t.co/ORphGWvkCz pic.twitter.com/NmYVIxO9mE
— Jake VanderPlas (@jakevdp) August 8, 2018
Funny things happen in Python when you operate on strings with emoji. Here's an illustration :) Also, grapheme is a cool library. pic.twitter.com/ocX7IAYhdA
— Delip Rao (@deliprao) August 6, 2018
TIL — You can add tabs in your RMarkdown document by adding `{.tabset}` in your header. All sub-headers will then appear in a tab instead of alone 😎#RStats #RMarkdown pic.twitter.com/4xPEHPph6h
— Colin Fay 🤘 (@_ColinFay) August 1, 2018
Tip #8: Want to speed up your code? First, identify the bottleneck. Profiler is your friend. In #Python, use cProfile (https://t.co/cSnFEnDiWx). pic.twitter.com/UPIV6zjWvH
— Jeong-Yoon Lee (@jeongyoonlee) July 14, 2018
#rstats tip of the day:
— Emily Robinson (@robinson_es) July 3, 2018
Do you often find yourself typing something like `paste0(round(number * 100, 1), "%")` to change your decimals to display as percents? Try `percent(number)` from the scales package instead! pic.twitter.com/S8nrUgszOD
Nice list! Our ML lab wrote up a few practical tips for debugging neural networks: https://t.co/BIURqZGnAi
— Matt Holt (@mholt6) July 1, 2018
Reproducibility tip of the day: If you're sharing code and data for people to reproduce your work, please release them both under a license that allows reuse. (I'm personally partial to Apache 2.0 and CC-BY-SA.) Unlicensed code + data is protected by copyright & not reusable. 😢
— Rachael Tatman (@rctatman) June 21, 2018
In #Python3, the print function has options
— Daily Python Tip (@python_tip) June 18, 2018
* 'sep' to separate the arguments
* 'end' to be printed after the last argumenthttps://t.co/Jm8LgiGnAJ pic.twitter.com/V56ARBc7ku
#rstats ggplot2 tip: I use low alpha so I can draw hundreds of overlapping lines to display uncertainty. But it breaks the color guide (left). Adding `guides(color = guide_legend(override.aes = list(alpha = 1)))` to plot overrides the transparency in the guide (right) pic.twitter.com/dh3WiO6O36
— tj mahr 🍕🍍 (@tjmahr) June 14, 2018
Training with large minibatches is bad for your health.
— Yann LeCun (@ylecun) April 26, 2018
More importantly, it's bad for your test error.
Friends dont let friends use minibatches larger than 32. https://t.co/hxx2rGhIG1
Favorite recent jupyter notebook discovery - the %debug magic:
— Radek Osmulski (@radekosmulski) December 26, 2017
1. Get an exception.
2. Insert a new cell, type %debug and run it.
An interactive debugger will open bringing you to where the exception occurred and allowing you to look around! pic.twitter.com/9DSnSbpu15
🔥 slides and guide for 😊👩💻 & 📖: "Writing Readable Code with Pipes" by @hrbrmstr https://t.co/fy5rT3xOZz #rstats pic.twitter.com/30YVf8CYHw
— Mara Averick (@dataandme) August 28, 2017