Chit Chat Thread

Typically configurations are stored in yaml files and passed into the scripts. Passing in kwargs is kind of ugly cause of two things

  1. Non intuitive to the programmer writing the code to know what to expect in kwargs.

  2. Validation. The key and value might not conform to programmers expectation and error checking has to be built into every method.

1 Like

Ok, but I don’t want my inner subroutine to have to parse a yaml file just know whether to set a particular flag.

So the same question still remains: how best to propagate the information “all the way in” to subroutine from either the command line or a yaml file?

I ask this because I’m doing lots of runs trying different ideas, and so far just editing the source code directly hasn’t been a good practice as far as keeping a record of which runs have which settings.

Use Google Fire and add the params to your function signature. To have stuff propogate everywhere, you can use a singleton like we do in fastai (ours is called fastai.defaults) and dump config stuff there.

2 Likes

You can have a single config class loading the yaml file and the config instance can be a global instance, much like environment variables. I think however the solution depends on what you are actually trying to implement.

1 Like

I heard of google fire for the first time in yesterday’s class :-).
It sounds like a very neat way of adding command line args. The current args(parse args …etc ) lack the application context.

1 Like

I am in South Bay too and very interested in study group/Kaggle. My email is tanya.roosta@gmail.com

Hey @maxim.pechyonkin I remember you’re name from your blog, awesome series on Capsule Networks! Did you ever use a capsule based network or have seen one in the wild so far?

Anyone from Argentina?

I just realised this is worthy a share here too:

I’ve been spending much time getting better at Python.

I highly recommend following James Powell twitter: @dontusethiscode and watching any (yes, literally any-they are that good!) of his talks on YouTube for some great Python insights.

Do you know of any other great people to follow for getting better at Python?

2 Likes

Just came across this, shared by Ian Goodfellow on social media. Really cool!

“Semantic Image Synthesis with Spatially-Adaptive Normalization”

https://nvlabs.github.io/SPADE/?fbclid=IwAR3zbsP1ETOQSVjMI2c48GmP-uLpDvkcNKOAJQRmzzZ6GbOLs7AZrVn4vSo

Please fix your twitter URL, which currently links to Hortonhearsawho!

I realize now that I didn’t answer part of rkingery’s question: I’m a remote participant. I’m in the Denver area. A remote study group would be great for me.

Hi everybody, I’m following the course from France, @tomsthom on twitter.
Is there anyone following from France?

I find the development process in Jupyter notebook to be very interesting!
I also feel very productive in Jupyter but didn’t think it was possible to develop “real” software using it!
Very happy to learn how to do it with the techniques used for fastai development.

Hi, thanks for pointing that out.
It has a capital letter F in the beginning.
The correct is @Fmelobr on Twitter.
Thanks.

I agree James Powell is wonderful ! I even made a blog post about how decorators work in Python based on one of his talk :slight_smile:

4 Likes

Thanks, Fernando. You have (at least) one new twitter follower;-)

HI folks i would like to hear from you how do you manage your time studying for this course.
How many hours do you put in , how do you manage etc, perhaps this could be topic for another thread.
I have a demanding full time job i only find time to read or watch videos during weekdays commute. Any actual coding i need to wait for weekend and its kind of challenge. I would like some inspiration or advice form others if i can get.

Don’t know how many of you have seen this yet, but they’re $99 and I just ordered two of them:Jetson Nano by Nvidia.

It runs python and pytorch according to their post. Has 4 USB ports, Gig Ethernet, 128 CUDA cores, 4GB DDR 4 RAM

Hi Chandan,

I think you will find this thread very helpful:

Many Fastai veterans have posted their own study system, goals and experiences. This reply by Theodore might be something close to what you are looking for:

Happy learning!

2 Likes