1 00:00:00,220 --> 00:00:05,310 So in the last video we saw this little chart here and the steps to take in a new project. 2 00:00:05,310 --> 00:00:10,380 If we've been through this if we've got our computer We've downloaded installed many Condor that we 3 00:00:10,380 --> 00:00:12,780 did a few sessions ago. 4 00:00:12,780 --> 00:00:13,350 Now we're up to here. 5 00:00:13,350 --> 00:00:14,670 We want to start a new project. 6 00:00:14,700 --> 00:00:16,980 So how exactly would we do that. 7 00:00:17,310 --> 00:00:19,010 Well that's what we're going to cover in this video. 8 00:00:19,010 --> 00:00:22,710 We're going to work through here starting a project create a project folder. 9 00:00:22,750 --> 00:00:23,020 Yep. 10 00:00:23,040 --> 00:00:23,670 We'll do that. 11 00:00:23,670 --> 00:00:26,900 We'll get our data ready for the project that we're working on. 12 00:00:27,000 --> 00:00:32,160 We'll make an environment we'll probably want to create an environment that uses much similar tools 13 00:00:32,180 --> 00:00:34,740 that what we've been using in our past environment. 14 00:00:34,860 --> 00:00:37,920 We'll make sure that environment works by starting up a Jupiter notebook. 15 00:00:38,310 --> 00:00:43,420 So if we come back to the desktop I'm going to start up a terminal here. 16 00:00:43,530 --> 00:00:46,010 So how would we go about it. 17 00:00:46,170 --> 00:00:47,490 If I've been working in. 18 00:00:47,490 --> 00:00:50,100 You might be working somewhere different but for me. 19 00:00:50,370 --> 00:00:56,270 I've been working so right now I'm going to change directory onto my desktop into my MLK course folder. 20 00:00:56,270 --> 00:01:00,620 And if I check in here I've got a few different things going on. 21 00:01:00,630 --> 00:01:05,700 So a few different folders but we've been working out of the sample project folder or at least we have 22 00:01:05,700 --> 00:01:13,260 in the last few videos if I go on a sample project and if I LSA there which stands for list I list all 23 00:01:13,260 --> 00:01:19,420 the things that are in here so we can see there the introduction to map pop lib num pi pandas psychic 24 00:01:19,510 --> 00:01:26,070 learn and the thing is about this folder is that we've got an end folder in there and now in this end 25 00:01:26,160 --> 00:01:33,780 folder it's hard to say actually EMV and short for environment in this environment folder contains all 26 00:01:33,780 --> 00:01:40,140 of our tools and if you remember way back when If not that's okay we created that environment using 27 00:01:40,270 --> 00:01:46,170 conduct so create an environment collection of tools using condo and so what we might want to do for 28 00:01:46,170 --> 00:01:54,240 this new project is if we go back up to where we were in the email cause folder if I wanted to start 29 00:01:54,240 --> 00:02:01,580 a new project we I want to create a project folder that way if we're in a new project say for example 30 00:02:01,580 --> 00:02:06,590 the one we're going to work on now which is working on classifying whether a patient has heart disease 31 00:02:06,590 --> 00:02:12,710 or not we won't want to create a project specific folder for that and then within that folder has all 32 00:02:12,710 --> 00:02:18,260 of these these little tidbits here so that if we needed to share our work we could share this folder 33 00:02:18,650 --> 00:02:24,440 by itself and then hopefully someone on our team or someone else could replicate what we were working 34 00:02:24,440 --> 00:02:27,770 on because it's all contained in one folder so let's do that. 35 00:02:28,580 --> 00:02:38,160 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 36 00:02:38,160 --> 00:02:46,940 disease project and in sticking to our nomenclature we might use our hyphens instead of underscores. 37 00:02:46,940 --> 00:02:51,470 So we'll do that make sense of make directory heart disease project. 38 00:02:51,470 --> 00:02:55,940 Now if we go to Ellis we've got a folder heart disease project. 39 00:02:56,150 --> 00:03:04,970 So if we see data into that so change directory heart disease or project we unless there's nothing in 40 00:03:04,970 --> 00:03:11,960 there but we want to create an environment folder like we've got up here in here and how then would 41 00:03:11,960 --> 00:03:21,020 we replicate if we went back to our sample project folder and we LSA how would we replicate this environment 42 00:03:21,020 --> 00:03:26,210 because we know this one works because we've been working through these notebooks and what I mean by 43 00:03:26,210 --> 00:03:33,110 replicate environment is that we want to use the same tools in our heart disease project as we have 44 00:03:33,440 --> 00:03:39,170 working through all of these introductory notebooks so I'll show you one way that you could do it. 45 00:03:39,470 --> 00:03:47,930 So we first have to activate so we go conduct and list we first have to activate our sample project 46 00:03:48,170 --> 00:03:49,980 folder or environment. 47 00:03:50,120 --> 00:03:50,910 So let's do that. 48 00:03:50,930 --> 00:03:58,870 We've seen this before calendar activate we'll copy this path or we could just type it out uses double 49 00:03:58,940 --> 00:04:07,430 slash Daniel slash desktop slash AML course slash sample project. 50 00:04:07,430 --> 00:04:08,160 Wonderful. 51 00:04:09,350 --> 00:04:15,620 So now that environment is activated we can tell that because base has changed to this and now what 52 00:04:15,620 --> 00:04:19,250 we want to do is we want to create a new environment based on this one. 53 00:04:19,640 --> 00:04:28,030 So one way to do it is to export everything that's in this end folder as a Yammer file and what a yellow 54 00:04:28,040 --> 00:04:36,090 file is is basically a text file of instructions of how to create a new environment based off this one. 55 00:04:36,140 --> 00:04:37,430 So let's see it in action. 56 00:04:37,520 --> 00:04:44,630 We can do that by running the code conduct and export and then this little symbol this arrow this greater 57 00:04:44,630 --> 00:04:48,200 than or I never get these these correct greater than a lesson. 58 00:04:48,200 --> 00:04:53,120 So this is the way I think about it is this is greater than what's on this side doesn't matter. 59 00:04:53,150 --> 00:04:59,990 This is like an arrow in this case so it's Conda and export like an arrow pointing to the file you want 60 00:04:59,990 --> 00:05:01,550 to export it to. 61 00:05:01,640 --> 00:05:08,720 So in our case we're gonna call it environment dot Jamel or Y AML which stands for the AML the actual 62 00:05:08,720 --> 00:05:16,820 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 63 00:05:16,820 --> 00:05:23,390 that beautiful we get a whole bunch of different outputs here lots of warnings. 64 00:05:23,390 --> 00:05:32,910 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 65 00:05:33,000 --> 00:05:35,080 dot Jamel. 66 00:05:35,250 --> 00:05:42,270 So this is showing us what's in our yellow folder these are all different dependencies so condo packages 67 00:05:42,330 --> 00:05:45,580 that our previous environment is built upon. 68 00:05:45,630 --> 00:05:49,920 So see there cyclone Eagles version zero point to two wonderful. 69 00:05:49,980 --> 00:05:54,170 We got seaborne wonderful we got python. 70 00:05:54,170 --> 00:05:56,310 We've got a fair few things here now to exit them. 71 00:05:56,310 --> 00:06:03,270 We compress escape and then colon see how it appears down here and cue Excellent now to create a new 72 00:06:03,270 --> 00:06:12,080 environment we can deactivate the current one so to deactivate so we can see now we're in the base. 73 00:06:12,080 --> 00:06:19,150 We're back to base and to create an environment from a demo folder we're going to change back into our 74 00:06:19,150 --> 00:06:23,500 new heart disease project folder. 75 00:06:23,890 --> 00:06:25,870 See here there's nothing in it. 76 00:06:25,900 --> 00:06:33,040 Now we're going to run the command Conda and create see how we're in the heart disease project folder 77 00:06:33,880 --> 00:06:45,160 run this command in this folder so come back and create prefix dot slash e and V for M and then hyphen 78 00:06:45,280 --> 00:06:52,360 f for file and then now we're going to posit the path to our yellow folder that file that we just created 79 00:06:52,460 --> 00:07:01,030 so dot dot it's in the directory Bob environment don't y NL beautiful and now running this is going 80 00:07:01,030 --> 00:07:06,670 to create an M folder within the heart disease project file. 81 00:07:06,880 --> 00:07:14,590 Now doing it this way ensures that we get the exact same tools as in our sample project and the other 82 00:07:14,590 --> 00:07:20,530 way we could do this is what would the one we've seen before is by just going Conda and create prefix 83 00:07:20,830 --> 00:07:25,100 dot slash end and then passing it the tools we want. 84 00:07:25,180 --> 00:07:36,310 So I get learn pandas num PI that plot lib Jupiter we could do it that way but in this case we want 85 00:07:36,310 --> 00:07:41,080 to make sure we have the exact same tool set for this project that we've been working on. 86 00:07:41,380 --> 00:07:51,800 So that's why we run the command contact and create prefix dot slash EMV hyphen F and then we're gonna 87 00:07:51,820 --> 00:08:01,190 pass it the path to our environment dot y email file and we'll hit enter now this is going to tell Condit 88 00:08:01,190 --> 00:08:07,130 to go to the Internet and download all of those tools that we need such as pandas psychic learn map 89 00:08:07,130 --> 00:08:13,810 plot lib all the specific versions that we've been working with in our introduction series. 90 00:08:13,820 --> 00:08:18,050 So while this runs through they might speed up the video and I'll see you when it's done. 91 00:08:20,630 --> 00:08:21,660 Beautiful. 92 00:08:21,680 --> 00:08:22,760 That's what I'm talking about. 93 00:08:23,360 --> 00:08:24,380 So we've been through that. 94 00:08:24,380 --> 00:08:28,700 So basically Condit's just gone to the Internet grabbed all those tools that we need. 95 00:08:28,730 --> 00:08:34,310 We've got a success measures this and that all these execution and transactions are done to activate 96 00:08:34,310 --> 00:08:35,610 the environment we just created. 97 00:08:35,630 --> 00:08:36,640 We can use this. 98 00:08:36,710 --> 00:08:42,200 But what we might do is just go Condit and list to see what environments we have. 99 00:08:42,650 --> 00:08:51,710 So now we can say here and uses Daniel desktop e-mail course in our heart disease project file we now 100 00:08:51,710 --> 00:08:59,440 have an m file and to activate it we can run make sure you've got no other environment activated. 101 00:08:59,470 --> 00:09:01,250 So we're on base here. 102 00:09:01,240 --> 00:09:02,680 So we go contact activate. 103 00:09:02,680 --> 00:09:12,360 We're just going to run this code here then it's told us uses slash Daniel slash desktop slash e-mail 104 00:09:12,360 --> 00:09:13,450 course. 105 00:09:13,480 --> 00:09:15,640 Now again of course your path might be different. 106 00:09:15,640 --> 00:09:20,080 I'm just showing you an example of what mine looks like for this heart disease project that we're going 107 00:09:20,080 --> 00:09:22,440 to work on if we hit enter. 108 00:09:22,540 --> 00:09:28,300 We notice that base changes to this path named so we've activated the environment and now we're in the 109 00:09:28,300 --> 00:09:29,650 heart disease project file. 110 00:09:30,220 --> 00:09:38,120 So to test it out we can go Jew but no notebook and this should bring up a Jupiter notebook in our browser. 111 00:09:38,180 --> 00:09:39,060 Beautiful. 112 00:09:39,300 --> 00:09:43,500 If we look here we've got the M folder so in there we've got a whole bunch of different stuff that Condor 113 00:09:43,500 --> 00:09:45,420 has created for us. 114 00:09:45,420 --> 00:09:48,460 And so if we go back to our keynote what have we done now. 115 00:09:48,490 --> 00:09:49,940 We've started a new project. 116 00:09:49,950 --> 00:09:50,370 Yes. 117 00:09:50,370 --> 00:09:51,000 Tick. 118 00:09:51,000 --> 00:09:53,260 We've created a project folder tick. 119 00:09:53,280 --> 00:09:58,820 We've created an environment a collection of tools and we have access to Jupiter. 120 00:09:58,830 --> 00:10:00,110 So we have our workspace. 121 00:10:00,120 --> 00:10:04,790 What we're missing now is a data folder so we can get that. 122 00:10:05,100 --> 00:10:10,620 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 123 00:10:10,620 --> 00:10:10,780 is. 124 00:10:10,780 --> 00:10:16,440 So if we go here M.L. cause this heart disease dot CSI and we've worked with this far before we've worked 125 00:10:16,440 --> 00:10:23,830 with this comma separated value file so I'm going to move that into my heart disease project. 126 00:10:24,020 --> 00:10:25,760 And if you don't have this fall that's okay. 127 00:10:25,760 --> 00:10:28,760 There'll be a link in the resources section where you can download it. 128 00:10:28,880 --> 00:10:31,960 And so now we're almost ready to go. 129 00:10:32,120 --> 00:10:33,120 We come back. 130 00:10:33,260 --> 00:10:34,880 We've got a project folder. 131 00:10:34,880 --> 00:10:40,040 We've got some data in the form of a CSB it may be in a different style for depending on what project 132 00:10:40,040 --> 00:10:45,420 you're working on but now case we're using CSB we've got an environment to work with and we go to Jupiter 133 00:10:45,430 --> 00:10:46,450 notebook. 134 00:10:46,840 --> 00:10:48,160 Beautiful. 135 00:10:48,190 --> 00:10:54,490 Now it's time to get our hands on create a notebook and start performing some data analysis manipulation 136 00:10:54,970 --> 00:10:57,570 and then some machine learning with the tools we use so far.