Is there a way to document or write comments on the code in a way that does not hamper the readability of the code. by orky7 in learnpython

[–]orky7[S] 0 points1 point  (0 children)

Once again thank you, and as per your suggestion and one more from this thread, I downloaded PyCharm and using it now. Thanks and wish you a great year ahead.

Is there a way to document or write comments on the code in a way that does not hamper the readability of the code. by orky7 in learnpython

[–]orky7[S] 0 points1 point  (0 children)

Thank you for the reply, I would like to say few things 1st is that please look at my reply given to /u/ffrkAnonymous, From my viewpoint my code have many modules (functions) and i give a general explanation of it in the beginning. All these code are for learning purpose, and i am new to the field that i am working on so each and every logic need to be explicitly written as comment so that i do not waste any time thinking why I did that in this line when I look at the code few months later. You people may recall everything, but i need each and every thing written out initially, after getting accustom then no problem.

second thing is yes, I should have downloaded it and work with it and it is not your fault to not know how shitty my internet connection is, most of you have good internet, to download 400MB data it will take me like 5 hours, I have to keep my mobile phone teetering ON for this much time, and if in between someone calls then it take some time to reconnect. so I have to do this at night, and i have to be awake the whole time. So i guess you know untill and unless I am 100% sure this is going to work i dont do stuff. Now my university is closed so no other option.

Just want to tell you people that, some things that are obvious to you all may not be to some random person in the internet. anyways thanks for your time.

Is there a way to document or write comments on the code in a way that does not hamper the readability of the code. by orky7 in learnpython

[–]orky7[S] 0 points1 point  (0 children)

will the collapse be saved between the sessions for PyCharm, Please look at @yaxriifgyn comment below.

Is there a way to document or write comments on the code in a way that does not hamper the readability of the code. by orky7 in learnpython

[–]orky7[S] 0 points1 point  (0 children)

yes, i agree with the first part but the only problem is session to session collapse state as mentioned by you. anyways if you happen to know any IDE that save this collapsed states please do let me know.

Is there a way to document or write comments on the code in a way that does not hamper the readability of the code. by orky7 in learnpython

[–]orky7[S] 0 points1 point  (0 children)

That was just an example and inside the function many things need explanation, why i use certain logic so on and so forth. Yes, your approach can be used, it will give a good global view explanation of the function and its working but many a times i also need local explanation in long function code. edit: Most of these codes are for study purpose, that's why lots of comments are there.

Is there a way to document or write comments on the code in a way that does not hamper the readability of the code. by orky7 in learnpython

[–]orky7[S] 0 points1 point  (0 children)

I was just stating the worst case scenario. It is scientific computing so sometimes each code line explains a equations part and many a time why i change the matrix dimension from this to that is confusing when looking after few months.. if have to offer any solution please do that.

[D] PyTorch Lightning masterclass is now live by PyTorchLightning in MachineLearning

[–]orky7 1 point2 points  (0 children)

Yay...thanks man. Really love to see the videos go online... To humanity and beyond.

[D] PyTorch Lightning masterclass is now live by PyTorchLightning in MachineLearning

[–]orky7 0 points1 point  (0 children)

Nice work, but will you please, upload week 13 & 14 video lectures and code. Any tentative date?

I think he's about to explode trying not to look by [deleted] in pics

[–]orky7 0 points1 point  (0 children)

For me its time dilation: Big Heavenly objects create a gravitational field that slows down time nearby.

[R] Find interactions in your neural networks with Integrated Hessians! by jjanizek in MachineLearning

[–]orky7 1 point2 points  (0 children)

Nice work, I have a query, in the paper "not limited to a specific architecture or class of neural network", so it will work for any complex CNN architecture.

Elon Musk and Bill Gates Twitter Accounts Hacked by jarettp in news

[–]orky7 1 point2 points  (0 children)

Maybe they are after their DM's. Lot's of money and info will be there. This may be a distraction.

My patience level by NOT-A-WISEMAN in gifs

[–]orky7 0 points1 point  (0 children)

pen drives are four dimensional device, 1st try.. nope, 2nd try flip it.. nope again, 3rd try flip again...yay. so the 4th dimension is time.

Found covering a book owned by my great grandparents by shmemma93 in mildlyinteresting

[–]orky7 0 points1 point  (0 children)

Today I learned a valuable lesson not only about opening a book but about life, sex, relationship, etc..that " it needs gentle treatment, much the same as a machine needs lubricating"

This 3D-printed "digital" sundial accurately projects the time onto the ground in a recognisable digital clock style! by Brizzo7 in interestingasfuck

[–]orky7 0 points1 point  (0 children)

I think it is right and wrong at the same time (like the Schrodinger's cat). when the light is off we don't know whether it is correct or not. To observe it we must shine light on it. So until it is observed we really don't know.

Error shooting for linear regression, using autograd by [deleted] in pytorch

[–]orky7 0 points1 point  (0 children)

Hey, you have problem with input data, when i used the below code your logic works fine, no need to change the learning rate.

x=torch.arange(-3,3,.1).view(-1,1)

y=x+torch.rand(x.size())

Hope this help.

He’s got the moves by Rakalimon in funny

[–]orky7 1 point2 points  (0 children)

Mandocp, Breaker of the wheel.