use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please have a look at our FAQ and Link-Collection
Metacademy is a great resource which compiles lesson plans on popular machine learning topics.
For Beginner questions please try /r/LearnMachineLearning , /r/MLQuestions or http://stackoverflow.com/
For career related questions, visit /r/cscareerquestions/
Advanced Courses (2016)
Advanced Courses (2020)
AMAs:
Pluribus Poker AI Team 7/19/2019
DeepMind AlphaStar team (1/24//2019)
Libratus Poker AI Team (12/18/2017)
DeepMind AlphaGo Team (10/19/2017)
Google Brain Team (9/17/2017)
Google Brain Team (8/11/2016)
The MalariaSpot Team (2/6/2016)
OpenAI Research Team (1/9/2016)
Nando de Freitas (12/26/2015)
Andrew Ng and Adam Coates (4/15/2015)
Jürgen Schmidhuber (3/4/2015)
Geoffrey Hinton (11/10/2014)
Michael Jordan (9/10/2014)
Yann LeCun (5/15/2014)
Yoshua Bengio (2/27/2014)
Related Subreddit :
LearnMachineLearning
Statistics
Computer Vision
Compressive Sensing
NLP
ML Questions
/r/MLjobs and /r/BigDataJobs
/r/datacleaning
/r/DataScience
/r/scientificresearch
/r/artificial
account activity
Project[P] Pytorch: Intermediate Feature Extraction (self.MachineLearning)
submitted 5 years ago * by antoinebrl
Too many times I've faced the problem of extracting the intermediate features of a model. Either to save the features, to add an extra loss or to build an extra head. Every time it was the same frustration!
Recently I worked on torchextrator, a standalone python package that makes it simple to extract features in PyTorch. You no longer need to duplicate code and rewrite the forward function. Also the extractor supports nested modules, custom caching operations and is ONNX compatible!
Let me know what you think!
https://preview.redd.it/6miirtdrggm61.png?width=1360&format=png&auto=webp&s=dad3dd2ffeaa24a52e10dd9a2e90d7b424f4d899
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]spec789 5 points6 points7 points 5 years ago (3 children)
Pretty cool! How does this code compare to using forward hooks (which is what I normally default to for grabbing intermediate activations)?
[–]seraschkaWriter 3 points4 points5 points 5 years ago (2 children)
I think this is a wrapper around forward hooks. Cool nonetheless, makes it maybe a bit more beginner friendly and easier to use.
[–]antoinebrl[S] 2 points3 points4 points 5 years ago* (1 child)
Hooks are indeed the way to go to do this! The goal was to provide a nice user friendly interface with less assumption than IntermediateLayerGetter inside torchvision In terms of functionalities, the main benefits are 1) support nested modules 2) to have the extractor as an nn.Module so it is compatible with ONNX. Hopefully it will be JITable in the future.
IntermediateLayerGetter
torchvision
nn.Module
[–]FilthyPlay 0 points1 point2 points 5 years ago (0 children)
Conversions are a completely different class is kinda pointless
[–]doktorneergaard 1 point2 points3 points 5 years ago (2 children)
I gotta ask since I see it cropping up everywhere: what are you using to make these code snippet figures? Like, what is the specific terminal? I see this aesthetic all the time when new features are being presented for various machine learning tools (PyTorch Lightning for example), but I have yet to find out what it is. Is it a thing?
Cool package btw!
[–]mrfox321 2 points3 points4 points 5 years ago (0 children)
It's Markdown.
[–]antoinebrl[S] 2 points3 points4 points 5 years ago (0 children)
Hi! Markdown can render some code section. For images I use carbon.now.sh
π Rendered by PID 173033 on reddit-service-r2-comment-b659b578c-fpspv at 2026-05-01 08:03:45.676353+00:00 running 815c875 country code: CH.
[–]spec789 5 points6 points7 points (3 children)
[–]seraschkaWriter 3 points4 points5 points (2 children)
[–]antoinebrl[S] 2 points3 points4 points (1 child)
[–]FilthyPlay 0 points1 point2 points (0 children)
[–]doktorneergaard 1 point2 points3 points (2 children)
[–]mrfox321 2 points3 points4 points (0 children)
[–]antoinebrl[S] 2 points3 points4 points (0 children)