国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

46-886 Machine Learning Fundamentals
46-886 Machine Learning Fundamentals

時(shí)間:2025-03-22  來(lái)源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



46-886 Machine Learning Fundamentals HW 1
Homework 1
Due: Sunday, March 23, 11:59pm
• Upload your assignment to Canvas (only one person per team needs to submit)
• Include a writeup containing your answers to the questions below (and your team
composition), and a Python notebook with your code. Your code should run without
error when we test it.
• Please note that this assignment has two parts: A & B.
• Cite all sources used (beyond course materials)
• Finally, let’s review the instructions for using Google Colab, and submitting the final
writeup and Python notebook on Canvas.
1. Visit colab.research.google.com, and log in using your CMU ID.
2. Create a new notebook. Save it. Optionally, share it with your partner.
3. Upload1 climate change.csv to Colab after downloading it from Canvas.
4. Complete the assignment. Remember to save the notebook when exiting Colab.
5. File → Download → Download .ipynb downloads the notebook.
6. Submit this notebook and a write up to Canvas.
7. Remember to indicate if you had a partner at this stage.
1You may need to do this on every fresh run, i.e., when Colab reinitializes your interpreter. If read csv
complains that climate change.csv is non-existent, that’s certainly a sign.
1
46-886 Machine Learning Fundamentals HW 1
Part A: Climate Change
A.1 In this problem, we will attempt to study the relationship between average global tempera ture and several other environmental factors that affect the climate. The file (available on
Canvas) climate change.csv contains monthly climate data from May 1983 to December
2008. You can (and should) familiarize yourself with the data in Excel. A brief description
of all the variables can be found below.
Variable Description
Year Observation year
Month Observation month, given as a numerical value (1 = January, 2 =
February, 3 = March, etc.)
Temp Difference in degrees Celsius between the average global temperature
in that period, and a reference value
CO2, N2O, CH4,
CFC-11, CFC-12
Atmospheric concentrations of carbon dioxide (CO2), nitrous ox ide (N2O), methane (CH4), trichlorofluoromethane (CFC-11) and
dichlorodifluoromethane (CFC-12), respectively. CO2, N2O and CH4
are expressed in ppmv (parts per million by volume). CFC-11 and
CFC-12 are expressed in ppbv (parts per billion by volume).
Aerosols Mean stratospheric aerosol optical depth at 550 nm. This variable is
linked to volcanoes, as volcanic eruptions result in new particles being
added to the atmosphere, which affect how much of the sun’s energy is
reflected back into space.
TSI Total Solar Irradiance (TSI) in W/m2
(the rate at which the sun’s
energy is deposited per unit area). Due to sunspots and other solar
phenomena, the amount of energy that is given off by the sun varies
substantially with time.
MEI Multivariate El Nino Southern Oscillation index (MEI) – a measure of
the strength of the El Nino/La Nina-Southern Oscillation (a weather
effect in the Pacific Ocean that affects global temperatures).
We are interested in studying whether and how changes in environmental factors predict
future temperatures. To do this, first read the dataset climate change.csv into Python
(do not forget to place this file in the same folder, usually /current, on Colab as your
Python notebook). Then split the data into a training set, consisting of all the observations
up to and including 2002, and a test set consisting of the remaining years.
(a) Build a linear regression model to predict the dependent variable Temp, using CO2,
CH4, N2O, CFC-11, CFC-12, Aerosols, TSI and MEI as features (Year and Month
should NOT be used as features in the model). As always, use only the training set to
train your model. What are the in-sample and out-of-sample R2
, MSE, and MAE?
(b) Build another linear regression model, this time with only N2O, Aerosols, TSI, and
2
46-886 Machine Learning Fundamentals HW 1
MEI as features. What are the in-sample and out-of-sample R2
, MSE, and MAE?
(c) Between the two models built in parts (a) and (b), which performs better in-sample?
Which performs better out-of-sample?
(d) For each of the two models built in parts (a) and (b), what was the regression coefficient
for the N2O feature, and how should this coefficient be interpreted?
(e) Given your responses to parts (c) and (d), which of the two models should you prefer
to use moving forward?
Hint: The current scientific opinion is that N2O is a greenhouse gas – a higher con centration traps more heat from the sun, and thus contributes to the heating of the
Earth.
3
46-886 Machine Learning Fundamentals HW 1
Part B: Baseball Analytics (No knowledge of baseball is needed to complete this problem)
Sport Analytics started with – and was popularized by – the data-driven approach to player
assessment and team formation of the Oakland Athletics. In the 1990s, the “A’s” were
one of the financially-poorest teams in Major League Baseball (MLB). Player selection was
primarily done through scouting: baseball experts would watch high school and college games
to identify future talent. Under the leadership of Billy Beane and Paul DePodesta, the A’s
started to use data to identify undervalued players. Quickly, they met success on the field,
reaching the playoffs in 2002 and 2003 despite a much lower payroll than their competitors.
This started a revolution in sports: analytics is now a central component of every team’s
strategy.2
In this problem, you will predict the salary of baseball players. The dataset in the included
baseball.csv file contains information on 263 players. Each row represents a single player.
The first column reports the players’ annual salaries (in $1,000s), which we aim to predict.
The other columns contain four sets of variables: offensive statistics during the last season,
offensive statistics over each player’s career, defensive statistics during the last season, and
team information. These are described in the table below.
Read the baseball.csv file into Python. Note that three of the features are categorical
(League, Division, and NewLeague) and thus need to be one-hot encoded. Do that before
proceeding to the questions below.
B.1 Before building any machine learning models, explore the dataset: try plotting Salary
against some features, one at a time. When you have identified a feature that you feel may
be useful for predicting Salary, include that plot in your writeup, and comment on what
you have observed in the plot (one sentence will suffice).
B.2 Split the data into a training set (70%) and test set (30%). Train an “ordinary” linear
regression model (i.e. no regularization), and report the following:
(a) The in-sample and out-of-sample R2
(b) The value of the coefficient for the feature you identified in question A.1, and an
interpretation of that value.
(c) The effect on salary that your model predicts for a player that switches divisions from
East to West.
(d) The effect on salary that your model predicts for a player that switches divisions from
West to Central.
(e) The effect on salary that your model predicts for a player that switches divisions from
Central to East.
B.3 Train a model using ridge regression with 10-fold cross-validation to select the tuning pa rameter. The choice of which tuning parameters to try is up to you (this does not mean
there is not a wrong answer). Report the following:
2For more details, see the Moneyball: The Art of Winning an Unfair Game book by Michael Lewis and
the Moneyball film.
4
46-886 Machine Learning Fundamentals HW 1
Variable Description
Salary The player’s annual salary (in $1,000s)
AtBats Number of at bats this season
Hits Number of hits this season
HmRuns Number of home runs this season
Runs Number of runs this season
RBIs Number of runs batted in this season
Walks Number of walks this season
Years Number of years in MLB
CareerAtBats Number of at bats over career
CareerHits Number of hits over career
CareerHmRuns Number of home runs over career
CareerRuns Number of runs over career
CareerRBIs Number of runs batted in over career
CareerWalks Number of walks over career
PutOuts Number of putouts this season
Assists Number of assists this season
Errors Number of errors this season
League League in which player plays (N=National, A=American)
Division Division in which player plays (E=East, C=Central, W=West)
NewLeague League in which player plays next year (N=National, A=American)
(a) The in-sample and out-of-sample R2
(b) The final value of the tuning parameter (i.e. after cross-validation)
(c) The value of the coefficient for the feature you identified in question 1, and an interpre tation of that value. Compared to your model from question 2, has this feature become
more or less “important”?
(d) Of the two models so far, which one should be used moving forward?
B.4 Train a model using LASSO with 10-fold cross-validation to select the tuning parameter.
The choice of which tuning parameters to try is up to you (this does not mean there is not
a wrong answer). Report the following:
(a) The in-sample and out-of-sample R2
(b) The final value of the tuning parameter (i.e. after cross-validation)
5
46-886 Machine Learning Fundamentals HW 1
(c) The number of features with non-zero coefficients (Hint: there should be at least one
feature with coefficient equal to 0)
(d) Of the three models so far, which one should be used moving forward?
6

請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

掃一掃在手機(jī)打開(kāi)當(dāng)前頁(yè)
  • 上一篇:CSC1002代做、Python程序設(shè)計(jì)代寫(xiě)
  • 下一篇:CSC3050代做、Java/Python編程代寫(xiě)
  • 無(wú)相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢(qián)_專業(yè)CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢(qián)_專業(yè)CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路流場(chǎng)仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真技術(shù)服務(wù)
    流體CFD仿真分析_代做咨詢服務(wù)_Fluent 仿真
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲勞振動(dòng)
    結(jié)構(gòu)仿真分析服務(wù)_CAE代做咨詢外包_剛強(qiáng)度疲
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)40個(gè)行業(yè)
    流體cfd仿真分析服務(wù) 7類仿真分析代做服務(wù)4
    超全面的拼多多電商運(yùn)營(yíng)技巧,多多開(kāi)團(tuán)助手,多多出評(píng)軟件徽y1698861
    超全面的拼多多電商運(yùn)營(yíng)技巧,多多開(kāi)團(tuán)助手
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服務(wù)平臺(tái)
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗(yàn)證碼 寵物飼養(yǎng) 十大衛(wèi)浴品牌排行 suno 豆包網(wǎng)頁(yè)版入口 wps 目錄網(wǎng) 排行網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    91麻豆桃色免费看| 国产精品十八以下禁看| 国产精品网红福利| 激情小视频网站| 国产精品久久久久久久久借妻| 欧美日韩一区二区三区在线视频| 国产精品视频成人| 狠狠色狠狠色综合人人| 久久亚洲精品国产亚洲老地址| 国产日韩欧美中文| 亚洲永久免费观看| 国产精品96久久久久久| 午夜精品久久久久久久白皮肤| 久久天天狠狠| 欧美精品免费观看二区| 久久成人综合视频| 久久久精品欧美| 精品免费日产一区一区三区免费| 免费特级黄色片| 国产精品欧美久久| 久久婷婷五月综合色国产香蕉| 色阁综合av| 国产精品福利在线观看网址| 超碰免费在线公开| 欧美亚洲另类激情另类| 欧美精品video| 久草热视频在线观看| 激情小说综合区| 亚洲乱码中文字幕久久孕妇黑人| 久久久国产一区| 成人国产精品色哟哟| 日本福利视频导航| 欧美精品在线免费播放| 久久av免费一区| 国产九区一区在线| 欧日韩不卡在线视频| 中文字幕成人一区| 久久精品福利视频| av无码精品一区二区三区| 青草视频在线观看视频| 制服诱惑一区| 久久久精品影院| 99视频在线免费播放| 欧美精品中文字幕一区二区| 一本久久a久久精品vr综合| 日韩中文字幕在线看| 国产精品自产拍在线观| 欧美日韩亚洲一| 日韩av电影在线免费播放| 精品国产乱码久久久久久108| 久久精品ww人人做人人爽| 国产精品稀缺呦系列在线| 欧美精品自拍视频| 午夜免费电影一区在线观看| 久久这里有精品| 色妞色视频一区二区三区四区| www插插插无码免费视频网站| 狠狠爱一区二区三区| 少妇人妻在线视频| 一区二区精品在线观看| 国产精品久久久久77777| 久久国产精品免费观看| 97国产精品久久| 精品一区二区久久久久久久网站| 日本欧美黄网站| 亚洲一区二区久久久久久| 久久亚洲私人国产精品va| 久久国产精品99久久久久久丝袜| 成人亚洲综合色就1024| 国产亚洲精品自在久久| 黑人中文字幕一区二区三区| 日本欧美精品久久久| 性一交一乱一伧国产女士spa| 九色成人免费视频| 国产精品美女主播在线观看纯欲| 久久久久久久久久久免费精品 | 亚洲在线不卡| 久久综合色影院| 国产精品情侣自拍| 久久精品国产久精国产思思| 日韩在线免费视频| 久久精品aaaaaa毛片| 91精品国产自产在线老师啪| 国产欧美日韩中文| 国产中文日韩欧美| 国内精品一区二区三区| 精品欧美一区二区在线观看视频| 热re99久久精品国99热蜜月| 日韩欧美亚洲日产国| 日本www在线播放| 日韩欧美亚洲日产国产| 日本精品福利视频| 青青久久av北条麻妃黑人| 欧美做受777cos| 欧美日韩国产高清视频 | 色偷偷888欧美精品久久久 | 电影午夜精品一区二区三区| 亚洲国产一区二区三区在线播| 亚洲欧美日韩精品综合在线观看 | 日本黄网站免费| 日韩免费av在线| 欧美日韩不卡在线视频| 激情小视频网站| 蜜桃日韩视频| 国产一区二区在线观看免费播放| 国产四区在线观看| 成人精品视频一区二区| 久色视频在线播放| 日韩在线免费av| 国产精品久久久久久久久久久久| 久久夜色精品国产欧美乱| 欧美激情视频在线观看| 一区二区免费电影| 欧美一区二区大胆人体摄影专业网站| 色阁综合av| 日韩国产一区久久| 黄色特一级视频| 国产美女精品视频免费观看| 91av免费看| 久久精品男人天堂| 久久黄色片视频| 国产精品美腿一区在线看| 欧美激情va永久在线播放| 亚洲国产精品综合| 欧洲熟妇精品视频| 国产欧美日韩一区二区三区| 久久久久99精品成人片| www.国产一区| 国产又黄又猛视频| www日韩在线观看| 九色自拍视频在线观看| 美女久久久久久久| 欧美一级黄色网| 黄频视频在线观看| 日韩在线观看免费高清| 精品免费日产一区一区三区免费| 亚洲精品高清视频| 欧美在线播放一区二区| 国产性生交xxxxx免费| 久久久综合av| 欧美乱大交xxxxx| 日本不卡一二三区| 国产精品直播网红| 日韩在线资源网| 国产精品对白刺激久久久| 亚洲天堂av免费在线观看| 欧美亚洲在线视频| 91九色在线视频| 国产精品久久成人免费观看| 性高湖久久久久久久久aaaaa| 精品一区二区三区无码视频| 91国产丝袜在线放| 国产精品久久久久99| 日本在线播放一区| 国产欧美在线一区| 久久精品久久久久久国产 免费| 亚洲一二区在线| 免费国产在线精品一区二区三区| 国产精彩精品视频| 久久亚洲精品一区| 日本一区二区三区四区在线观看| 国产欧美久久久久| 国产成人精品视频在线观看| 亚洲国产日韩欧美| 国产午夜精品在线| www.久久久久| 天堂а√在线中文在线| 国产久一道中文一区| 国产精品色视频| 日本国产中文字幕| 99久久99久久精品| 欧美激情一区二区三区久久久| 性欧美长视频免费观看不卡| 免费一级特黄毛片| 91精品在线一区| 国产精品久久久久久久av电影| 亚洲国产一区二区三区在线| 欧美在线一区二区三区四区| 成人一区二区在线| 久久久91精品国产| www.九色.com| 国产成人短视频| 亚洲精品在线视频观看| 国产欧美一区二区三区视频| 国产精品偷伦一区二区| 日韩欧美精品在线不卡| 91成人精品网站| 亚洲欧洲国产精品久久| 国产精品一区二区三区久久| 国产精品-区区久久久狼| 青青在线视频免费观看| 久久精品五月婷婷| 日韩av大全| 久久久最新网址| 欧美一级在线看| 91精品国产高清久久久久久91| 亚洲午夜精品久久久中文影院av| 国产精品一区视频| 欧美精品激情在线观看| 国产亚洲第一区|