So in the last video we saw this little chart here and the steps to take in a new project.
If we've been through this if we've got our computer We've downloaded installed many Condor that we
did a few sessions ago.
Now we're up to here.
We want to start a new project.
So how exactly would we do that.
Well that's what we're going to cover in this video.
We're going to work through here starting a project create a project folder.
Yep.
We'll do that.
We'll get our data ready for the project that we're working on.
We'll make an environment we'll probably want to create an environment that uses much similar tools
that what we've been using in our past environment.
We'll make sure that environment works by starting up a Jupiter notebook.
So if we come back to the desktop I'm going to start up a terminal here.
So how would we go about it.
If I've been working in.
You might be working somewhere different but for me.
I've been working so right now I'm going to change directory onto my desktop into my MLK course folder.
And if I check in here I've got a few different things going on.
So a few different folders but we've been working out of the sample project folder or at least we have
in the last few videos if I go on a sample project and if I LSA there which stands for list I list all
the things that are in here so we can see there the introduction to map pop lib num pi pandas psychic
learn and the thing is about this folder is that we've got an end folder in there and now in this end
folder it's hard to say actually EMV and short for environment in this environment folder contains all
of our tools and if you remember way back when If not that's okay we created that environment using
conduct so create an environment collection of tools using condo and so what we might want to do for
this new project is if we go back up to where we were in the email cause folder if I wanted to start
a new project we I want to create a project folder that way if we're in a new project say for example
the one we're going to work on now which is working on classifying whether a patient has heart disease
or not we won't want to create a project specific folder for that and then within that folder has all
of these these little tidbits here so that if we needed to share our work we could share this folder
by itself and then hopefully someone on our team or someone else could replicate what we were working
on because it's all contained in one folder so let's do that.
So if we go here maybe we go make dir and we'll call it let's go project heart disease on a to heart
disease project and in sticking to our nomenclature we might use our hyphens instead of underscores.
So we'll do that make sense of make directory heart disease project.
Now if we go to Ellis we've got a folder heart disease project.
So if we see data into that so change directory heart disease or project we unless there's nothing in
there but we want to create an environment folder like we've got up here in here and how then would
we replicate if we went back to our sample project folder and we LSA how would we replicate this environment
because we know this one works because we've been working through these notebooks and what I mean by
replicate environment is that we want to use the same tools in our heart disease project as we have
working through all of these introductory notebooks so I'll show you one way that you could do it.
So we first have to activate so we go conduct and list we first have to activate our sample project
folder or environment.
So let's do that.
We've seen this before calendar activate we'll copy this path or we could just type it out uses double
slash Daniel slash desktop slash AML course slash sample project.
Wonderful.
So now that environment is activated we can tell that because base has changed to this and now what
we want to do is we want to create a new environment based on this one.
So one way to do it is to export everything that's in this end folder as a Yammer file and what a yellow
file is is basically a text file of instructions of how to create a new environment based off this one.
So let's see it in action.
We can do that by running the code conduct and export and then this little symbol this arrow this greater
than or I never get these these correct greater than a lesson.
So this is the way I think about it is this is greater than what's on this side doesn't matter.
This is like an arrow in this case so it's Conda and export like an arrow pointing to the file you want
to export it to.
So in our case we're gonna call it environment dot Jamel or Y AML which stands for the AML the actual
way to spell Jamil is y AML if you see there are these y AML slash y AML that the same thing if we do
that beautiful we get a whole bunch of different outputs here lots of warnings.
So if we go a less we should have an environment dot yellow file so if we look at that if we go VM environment
dot Jamel.
So this is showing us what's in our yellow folder these are all different dependencies so condo packages
that our previous environment is built upon.
So see there cyclone Eagles version zero point to two wonderful.
We got seaborne wonderful we got python.
We've got a fair few things here now to exit them.
We compress escape and then colon see how it appears down here and cue Excellent now to create a new
environment we can deactivate the current one so to deactivate so we can see now we're in the base.
We're back to base and to create an environment from a demo folder we're going to change back into our
new heart disease project folder.
See here there's nothing in it.
Now we're going to run the command Conda and create see how we're in the heart disease project folder
run this command in this folder so come back and create prefix dot slash e and V for M and then hyphen
f for file and then now we're going to posit the path to our yellow folder that file that we just created
so dot dot it's in the directory Bob environment don't y NL beautiful and now running this is going
to create an M folder within the heart disease project file.
Now doing it this way ensures that we get the exact same tools as in our sample project and the other
way we could do this is what would the one we've seen before is by just going Conda and create prefix
dot slash end and then passing it the tools we want.
So I get learn pandas num PI that plot lib Jupiter we could do it that way but in this case we want
to make sure we have the exact same tool set for this project that we've been working on.
So that's why we run the command contact and create prefix dot slash EMV hyphen F and then we're gonna
pass it the path to our environment dot y email file and we'll hit enter now this is going to tell Condit
to go to the Internet and download all of those tools that we need such as pandas psychic learn map
plot lib all the specific versions that we've been working with in our introduction series.
So while this runs through they might speed up the video and I'll see you when it's done.
Beautiful.
That's what I'm talking about.
So we've been through that.
So basically Condit's just gone to the Internet grabbed all those tools that we need.
We've got a success measures this and that all these execution and transactions are done to activate
the environment we just created.
We can use this.
But what we might do is just go Condit and list to see what environments we have.
So now we can say here and uses Daniel desktop e-mail course in our heart disease project file we now
have an m file and to activate it we can run make sure you've got no other environment activated.
So we're on base here.
So we go contact activate.
We're just going to run this code here then it's told us uses slash Daniel slash desktop slash e-mail
course.
Now again of course your path might be different.
I'm just showing you an example of what mine looks like for this heart disease project that we're going
to work on if we hit enter.
We notice that base changes to this path named so we've activated the environment and now we're in the
heart disease project file.
So to test it out we can go Jew but no notebook and this should bring up a Jupiter notebook in our browser.
Beautiful.
If we look here we've got the M folder so in there we've got a whole bunch of different stuff that Condor
has created for us.
And so if we go back to our keynote what have we done now.
We've started a new project.
Yes.
Tick.
We've created a project folder tick.
We've created an environment a collection of tools and we have access to Jupiter.
So we have our workspace.
What we're missing now is a data folder so we can get that.
What we're going to do is if we come back to find out I'll show you what mine looks like where the data
is.
So if we go here M.L. cause this heart disease dot CSI and we've worked with this far before we've worked
with this comma separated value file so I'm going to move that into my heart disease project.
And if you don't have this fall that's okay.
There'll be a link in the resources section where you can download it.
And so now we're almost ready to go.
We come back.
We've got a project folder.
We've got some data in the form of a CSB it may be in a different style for depending on what project
you're working on but now case we're using CSB we've got an environment to work with and we go to Jupiter
notebook.
Beautiful.
Now it's time to get our hands on create a notebook and start performing some data analysis manipulation
and then some machine learning with the tools we use so far.