代做41040 Introduction to Artificial Intelligence - Spring 2025 Lab 4代写留学生R程序

Lab 4. Learning Algorithms for Solving Classification and Regression Problems

Aims: This lab provides an opportunity for you to exercise five selected learning algorithms, i.e., decision tree learning, random forest learning, support vector machine learning, linear regression/logistic regression and k-nearest neighbours learning, to solve a simple classification problem and a simple regression problem.

Tasks:

Task 0. Download the Lab 4 solution template package and unpack the files to your lab 4 folder. Pay attention to the two datasets used:

Dataset 1: Dataset for a classification problem

For the classification problem, the dataset is from the Iris Plants Database at https://gist.github.com/curran/a08a1080b88344b0c8a7

Note: You can go to the page from the given link, find iris.csv and download the csv file from “Raw”.

Relevant Information about this dataset: --- This is perhaps the best-known database to be found in the pattern recognition literature. The data set contains 3 classes of 50 instances each, where each class refers to a type of iris plant. One class is linearly separable from the other 2; the latter are NOT linearly separable from each other.

--- Predicted attribute: class of iris plant.

--- This is an exceedingly simple domain.

--- Number of Instances: 150 (50 in each of three classes)

--- Number of Attributes: 4 numeric, predictive attributes and the class

--- Attribute Information:

• sepal length in cm

• sepal width in cm

• petal length in cm

• petal width in cm

• class: Iris Setosa, Iris Versicolour and Iris Virginica

Dataset 2: Dataset for a regression problem

For the regression problem, a HousePrice dataset is used, which can be found from https://gist.github.com/grantbrown/5853625

Note: You can go to the page from the given link, find HousingData.csv and download the csv file from “Raw”.

Information about this dataset: This dataset contains 429 items, where each item refers to a house. It has three columns as listed below:

1. HouseAge in year

2. HouseSize in m^2

3. HousePrice in $

The input features are `HouseAge` and `HouseSize` and the attribute to be predicted or target attribute/variable is `HousePrice`.

Task 1. Apply the five algorithms to solve the classification problem

Step 1.1 Open the classifier solution template file “Lab4_classifier_tasks_student_task.ipynb”

Step 1.2 Learn how to load a data csv file from the Demo given by the tutor.

Step 1.3 Fill up the blanks with "Add your code here" in the Section 1 in the classifier solution template notebook:

Step 1.4 Learn how to define the train, validation and test datasets and how to separate two samples from the test dataset as the future samples from the Demo given by the tutor.

Step 1.5 Fill up the blanks with "Add your code here" in the Section 2 in the classifier solution template notebook.

Step 1.6 Learn how to explore a dataset in Section 3 from the Demo given by the tutor.

Step 1.7 Learn how to define a learning model from the Demo given by the tutor.

Step 1.8 Fill up the blanks with "Add your code here" in Section 4 in the classifier template notebook

Step 1.9 Learn how to train a learning model using the train dataset, how to tune hyperparameters using a validation dataset in Section 4 from the Demo given by the tutor.

Step 1.10 Learn how to evaluate a learning model using unseen test dataset from the Demo given by the tutor.

Step 1.11 Fill up the blanks with "Add your code here" in Section 5 in the template notebook

Step 1.12 Learn how to apply a learning model to predict the output of given new data samples from the Demo given by the tutor.

Step 1.13 Fill up the blanks with "Add your code here" in Section 6 in the template notebook

Task 2. Apply the five algorithms to solve the regression problem

Step 2.1 Open the regressor solution template file “Lab4_Regressor_tasks_student_task.ipynb”

Step 2.2 Learn how to load a data csv file from the Demo given by the tutor.

Step 2.3 Fill up the blanks with "Add your code here" in the Section 1 in the classifier solution template notebook:

Step 2.4 Learn how to define the train and test datasets and how to separate two samples from the test dataset as the future samples from the Demo given by the tutor.

Step 2.5 Fill up the blanks with "Add your code here" in the Section 2 in the classifier solution template notebook.

Step 2.6 Learn how to explore a dataset from the Demo given by the tutor.

Step 2.7 Learn how to train a learning model from the Demo given by the tutor.

Step 2.8 Fill up the blanks with "Add your code here" in Section 4 in the classifier template notebook

Step 2.9 Learn how to evaluate a learning model from the Demo given by the tutor.

Step 2.10 Fill up the blanks with "Add your code here" in Section 5 in the template notebook

Step 2.11 Learn how to apply a learning model to predict the output of given new data samples from the Demo given by the tutor.

Step 2.12 Fill up the blanks with "Add your code here" in Section 6 in the template notebook





热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图