Replies: 4 comments 9 replies
-
Hmm many people have many ways of doing the same problem. your way is quite different. |
Beta Was this translation helpful? Give feedback.
-
Shisir,
I appreciate your reply. I do not have a problem; I was only trying to get
confirmation of my observations on notebooks (Jupyter or Colab) and to
document it for others. Many (not all) topics of software can be
demonstrated easily so notebooks are good for a learning environment. But
if I want to make an application, I cannot do it in a notebook. I need to
make a python project somewhere (e.g. PyCharm) and include packages (e.g.
PyTorch). In that project environment, I need to manage objects (assigning
names for future reference) and cannot easily display certain objects just
by stating them (as done in a notebook) but by using print(). IMO students
first learning notebooks should be made aware of these differences.
…On Sun, Dec 17, 2023 at 2:02 AM shisirkha ***@***.***> wrote:
Also don't be afraid to talk with me like Iam your friend.
I am willing to help anyone. (if I know the answer of it).
—
Reply to this email directly, view it on GitHub
<#747 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACBPNCQUVEKAJ4SR7JHFVALYJ2KKBAVCNFSM6AAAAABAKMTRSOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TQNZVGE4DQ>
.
You are receiving this because you authored the thread.Message ID:
<mrdbourke/pytorch-deep-learning/repo-discussions/747/comments/7875188@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Shisir,
Thanks for your comments. If I have other questions, I’ll certainly
remember you. I appreciate the author setting up this separate place to ask
questions about his videos instead of using discord. Although I see a place
for discord (like notebooks) I’m not active there. Kind regards.
…On Mon, Dec 18, 2023 at 12:44 AM shisirkha ***@***.***> wrote:
Yeah, you're right that we cannot build fully deployed and optimized model
in jupyter notebooks or in colab(which is google's copy of jupyter notebook
THAT ONLY SUPPORTS PYTHON 😁). instead, we need to use the default python
scripts (aka .py files).
But still jupyter notebooks are great for many and many (Not all but quite
much) CS (computer science) work.
Also, jupyter notebooks are great for plotting data, using pandas
dataframe etc.
From my personal experience of python I can say that jupyter notebooks are
quite a big improvement for computer science and for not large ML projects.
But I still agree with you that using notebooks should be aware of these
non-default python behaviors.
@gstech99 <https://github.com/gstech99> Btw can I get your contact in
discord? we can be friends cause your question really impressed me. (If you
don't mind contact me on discord.
else no problem I would appreciate that.)
ID= shisirkhan
—
Reply to this email directly, view it on GitHub
<#747 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACBPNCS2JSW7LKHYPNK26D3YJ7J2TAVCNFSM6AAAAABAKMTRSOVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TQOBRHA4DE>
.
You are receiving this because you were mentioned.Message ID:
<mrdbourke/pytorch-deep-learning/repo-discussions/747/comments/7881882@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
This is a follow-up comment. Another complication of Colab is that it runs a Linux OS; nobody mentions that. I'm on a Windows machine and don't know Linux. This adds another [unexpected ] complexity to my learning curve when I need to work with files. One has to learn Files in Colab and Google Drive -- how are these related? How do I extract from a zip file? How do I save files to my C drive? Already know how to do these in Windows. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Chapter 0, part 17 Tensor datatypes.
You haven't mentioned objects and assignment operator yet.
I'm learning both PyTorch and Notebooks at the same time.
It seems odd not to assign the operation result to a new object.
float_16_tensor = float_32_tensor.type(torch.float16)
creates a new object. If that object is then typed by itself, the contents are displayed.
float_16_tensor * float_32_tensor
does not create a new object but displays the result.
In normal development, wouldn't I be assigning that result to a new object?
Does a Notebook cause bad habits of not keeping track of objects?
Perhaps the Notebook idea is, "No need to assign the result to a new object unless it will be referenced soon."
and "Keep the number of variable names to a minimum."
If someone is learning Pytorch but not in a Notebook, I assume they need to assign first then print(new object).
Notebooks are excellent for teaching, but aren't actual Pytorch applications developed with a "stand-alone" Pytorch?
Is that covered in a later chapter?
Beta Was this translation helpful? Give feedback.
All reactions