Module 1. Getting started with PyTorch Fundamentals: Building a Simple Neural Network

Hi. I am D. Smith, I’m new to ( AI In general ) PyTorch & would love to acquire some Assistance on simply getting the ball rolling for this assignment.

I’ve gotten further than this & have played with this but for the most part, this Prompt

<torch._C.Generator at 0x7b8508084af0>

Can’t seem to get passed this point. I just need some assistance & how to plug everything in.

It looks like your notebook has been truncated somehow. One thing to try is the “Get a Fresh Copy” procedure. You have tagged this thread with “Coursera-platform”, so here are the appropriate instructions for that platform. They are different if you are using the DLAI learning platform.

Please try that and let us know whether that changes things or not.

1 Like

I’m using the DLAI platform and here’s what that section of the notebook looks like for me:

Notice that it is different than what you show. There is no seed setting logic and the import of helper_utils is in a separate code cell, but those may be legitimate differences between the two versions of the course. I do not have access to the Coursera version.

1 Like

Paul I think the screenshot learner has shared is created by her, read her second part of description, she was practicing the c1m1 lab1 by writing codes in new notebook which she has probably named it as c1 m1 assignment. I might be wrong too

1 Like

Hi @DSmitty_711,

I’m not exactly sure what your intent is, but from the looks of it, it seems like you are trying to run the assignment lab in the workspace of the ungraded lab, or vice versa.

While this is completely possible, it is not ideal I’d say. Again, I’m not sure what the your intent is, but you can face challenges to get things going.

  • For one, labs often use a utility file we name as helper_utils.py. More often than not, each lab has its own specific helper_utils.py. So when you try to run a lab in the workspace of another lab without properly making the changes, for example, running C1M1_Assignment.ipynb in the workspace of the ungraded lab 1, while the line import helper_utils will execute perfectly, it is not the helper_utils.py file designed for the assignment. Similarly, you may or may not need other files.
  • You cannot submit an assignment for grading from the workspace of an ungraded lab. Also, you’ll get submission errors if you are not careful about the lab you are working in.

I’d recommend to always take labs in their respective workspaces, especially when you are new. If you want to reference a lab for another lab, just open them in different tabs of your browser. You’ll have to go back and forth between windows, but it’s the safest and most reliable option.

Once again, we all are not exactly sure of your intent or what you are trying to do, so I may have misinterpreted what’s going on in your screenshot. If I’m off track, please give more details from your end so that we can help you better.

Best,
Mubsi

1 Like

There are no lab differences, or differences of any kind in other items (videos, quizzes etc) in the PyTorch courses. It is exactly the same in every aspect on both platforms.

2 Likes

Thanks to everyone that has spoken up & assisting me. Apologies for not being descriptive about my needs. however All I require is At this point, I’m mainly unsure about where exactly each piece of code is supposed to go in order to complete the model correctly and get full credit. I understand what the functions do, but I’m not totally sure how to structure it all in the right places.

Could someone point me in the right direction on how to properly connect the components in this assignment?

Thanks in advance — any guidance is appreciated! also I’m A Guy lol!

There is no need to rearrange or reorder anything here. They give you the templates for the functions and all you need to do is fill in code in place of the various None tokens. In most cases, those are just placeholders showing you were to write code. They also give very detailed instructions.

Given that wasn’t clear from the outset, then the next question is how much programming experience you have and is this your first time using python? If so, please realize that these courses assume you are already a reasonably experienced python programmer.

Ohh I See ok much obliged Paul. I have the wrong course & to answer said question this is my first course on Prompting or Coding in general(so no experience as of yet). I should look into A Coding for beginners course & then come back to this?

Also note that in the title it sounds like you are referring to the first “Code Example” titled “Building a Simple Neural Network”. In the Code Examples they give you here, you literally don’t need to write or change anything: just step through the notebook, read all the descriptions, read the code that they are giving you and run it and watch what happens.

But in the screen shot, it looks like you are actually working on the first assignment, which is C1M1_Assignment.ipynb. There you do have to write code, but you don’t need to change the structure of anything: they just lay that out for you and you fill in the required code.

Oh, sorry, our messages “crossed in mid-air”. :grinning_face:

Yes, the PyTorch for Deep Learning Specialization is an intermediate course, not the first course you would take if you are new to the field. It assumes you are already a fairly proficient python programmer and have taken some of the real ML courses here like MLS or DLS already.

If you are just getting started, take a look at the introductory or beginning courses in the list. There are a number of new ones in last year or so that I’m not that familiar with, so I’m not really the right person to advise on that.

But it would help if you could say more about what your goals are here and then maybe Mubsi or Deepti or one of the other people listening can give you better guidance about where to start. E.g. are you trying to learn to apply ML techniques to some particular field or do you really want to become an ML engineer?

3 Likes

Also — I truly appreciate all of the support. I’m transitioning into a career as a Research Engineer (I’m aiming for OpenAI specifically). I’m a complete beginner in the field right now; the only course I’ve completed so far is “Generative AI for Everyone”.

Is that course a good start for this goal? Which other courses should I take next to be competitive for a Research Engineer role at OpenAI? I know nothing strictly “guarantees” a job, but I want a clear, high-leverage roadmap that gets me as close as possible. Where should I Begin?

hi @DSmitty_711

If you are new to coding, then you can start with AI for Python Beginners course from dlai learning platform, that will brush up many of the basic coding understanding.

then further course roadmap depends on what your learning focus is, as I can see already some part of it paul has explained to you.

Here is another roadmap discussion thread which might help you, but make sure first to align with what is your goal otherwise there are tonnes of courses and we are bound to get lost :backhand_index_pointing_down:t2:

Roadmap

also sorry about the mix about his/her, i usually check the learners name, but Smitty felt like female, so replied as she.

Keep Learning, Good luck!!!

Regards

DP

3 Likes