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

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

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

時(shí)間:2025-03-22  來源:合肥網(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

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

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

    合肥圖文信息
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業(yè)CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務(wù) 管路流場仿真外包
    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)營技巧,多多開團(tuán)助手,多多出評軟件徽y1698861
    超全面的拼多多電商運(yùn)營技巧,多多開團(tuán)助手
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服務(wù)平臺
    CAE有限元仿真分析團(tuán)隊(duì),2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內(nèi)
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗(yàn)證碼 豆包網(wǎng)頁版入口 破天一劍 目錄網(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號-3 公安備 42010502001045

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    国产免费观看久久黄| 久久精品国产精品亚洲色婷婷| 国产精华一区| 国产精品成人av在线| 日本一区高清不卡| 91精品天堂| 亚洲人成无码www久久久| 国产欧美自拍视频| 国产精品二区二区三区| 国模私拍一区二区三区| 国产精品网站免费| 欧美精品久久久久久久久久久 | 欧美影视一区二区| 久久国产午夜精品理论片最新版本| 亚洲日本一区二区三区在线不卡| 分分操这里只有精品| 免费91麻豆精品国产自产在线观看| 精品一区久久| 久久亚洲一区二区三区四区五区高| 加勒比海盗1在线观看免费国语版 加勒比在线一区二区三区观看 | 伊甸园精品99久久久久久| 国产日韩精品综合网站| 精品免费国产| 国产伦精品一区二区三区视频孕妇 | 91精品一区二区| 五月天综合网| 久久久99爱| 日韩精品久久久毛片一区二区| 国产成人自拍视频在线观看| 欧美一级视频免费看| 久草在在线视频| 欧美午夜小视频| 久久激情视频久久| 免费不卡亚洲欧美| 欧美激情久久久久| 91九色视频在线| 日韩午夜视频在线观看| 国产精品视频一区二区三区四| 欧美激情国产精品日韩| 国产精品美女在线播放| 国产欧美日韩中文字幕在线| 一级做a爰片久久| 久久久女女女女999久久| 日本不卡一区二区三区四区| 国产精品手机视频| 国产精品一区av| 视频一区国产精品| 久草精品在线播放| 蜜桃av久久久亚洲精品| 一本色道久久99精品综合| 91av在线精品| 男人天堂av片| 亚洲综合在线做性| 日韩亚洲国产中文字幕| 国产日韩在线精品av| 亚洲一区二区三区欧美| 久久精品国产精品亚洲| 国产精自产拍久久久久久蜜| 日韩av在线一区二区三区| 国产精品三级美女白浆呻吟| 草莓视频一区| 欧在线一二三四区| 国产精品福利在线| 国产精品av在线播放| 亚洲va韩国va欧美va精四季| 久久精品91久久香蕉加勒比| 粉嫩av四季av绯色av第一区| 日韩精品国内| 久久99亚洲热视| 久久久久久久久久av| 国产免费一区二区三区香蕉精| 日韩xxxx视频| 中文字幕欧美日韩一区二区| 精品国偷自产在线| 91精品国产91久久久久久久久| 欧美黄网在线观看| 视频一区国产精品| 久久成人一区二区| 久久这里只有精品23| 国产日韩在线看片| 欧美综合在线观看| 亚洲一区二区精品在线观看| 国产精品流白浆视频| 国产不卡av在线| 超碰97人人人人人蜜桃| 国内精品**久久毛片app| 日韩在线视频在线观看| 欧美激情亚洲另类| 国产精品欧美一区二区| 久久精品五月婷婷| 97欧美精品一区二区三区| 狠狠久久综合婷婷不卡| 性色av一区二区三区| 欧美成人第一页| 久久久成人av| 久久久久久久久久久久久国产精品| 浮妇高潮喷白浆视频| 免费观看精品视频| 欧在线一二三四区| 日韩**中文字幕毛片| 亚洲欧洲精品一区二区 | 久久精品这里热有精品| 久久久日本电影| 北条麻妃av高潮尖叫在线观看| 精品少妇人妻av免费久久洗澡| 日本在线观看天堂男亚洲| 在线亚洲美日韩| 九九综合九九综合| 国产精品国产精品国产专区不卡| 色妞在线综合亚洲欧美| 国产高清在线一区二区| 久久综合色一本| 91免费精品视频| 97精品伊人久久久大香线蕉| 成人羞羞国产免费网站| 国产美女精彩久久| 国产午夜福利100集发布| 欧美不卡福利| 欧美日韩一区二区视频在线观看 | 美女久久久久久久久久久| 久久不射热爱视频精品| 欧美成人精品一区二区三区| 国产精品丝袜视频| 国产精品毛片a∨一区二区三区|国| 久久久国产一区| 国产精品嫩草在线观看| 国产精品久久久久久久久久新婚 | 亚洲精品一区二区三区av| 一区二区视频在线播放| 中文字幕欧美日韩一区二区三区| 国产999精品视频| 国产99在线|中文| 在线观看污视频| 亚洲一区久久久| 亚洲精品国产suv一区88| 无码日韩人妻精品久久蜜桃| 日本一区二区在线视频| 欧美视频免费看欧美视频| 激情小说网站亚洲综合网| 国产综合福利在线| 国产欧美一区二区三区四区| 国产精品亚洲精品| 91精品成人久久| 国产a一区二区| 久久精品最新地址| 久久成年人免费电影| 亚洲一区二区三区四区视频| 日韩av高清在线看片| 欧美中日韩免费视频| 精品少妇人妻av一区二区| 国产精品专区在线| 国产精品18久久久久久麻辣| 九一免费在线观看| 国产精品高潮呻吟视频| 一区精品在线| 日韩精品视频一区二区在线观看| 欧美精品一区在线发布| 国产又黄又猛视频| av一区二区三区免费| 国产二级片在线观看| 国产精品欧美日韩久久| 一本二本三本亚洲码| 日本午夜激情视频| 免费不卡av在线| 91精品国产乱码久久久久久久久| 久久久久久久久一区| 不卡毛片在线看| 欧美一区二区三区四区在线 | 久久久久久久久久婷婷| 久久成人一区二区| 亚洲国产欧美日韩| 欧美大香线蕉线伊人久久国产精品| 国产美女主播一区| 久久99精品久久久久久久青青日本| 国产精品久久久对白| 午夜精品久久久久久久久久久久| 欧美 日韩 国产 在线观看| 高清亚洲成在人网站天堂| 久久久久久亚洲精品不卡4k岛国| 久久亚洲一区二区三区四区五区高| 亚洲二区自拍| 国产一区二区视频在线观看| 99视频免费观看| 国产精品久久久久av福利动漫 | 久精品免费视频| 欧美影院在线播放| 99久热在线精品视频| 久久久精品久久| 亚洲成人第一| 国产视频一视频二| www高清在线视频日韩欧美| 亚洲日本无吗高清不卡| 欧美成人第一区| 国产精品9999久久久久仙踪林| 国产精品精品软件视频| 日本999视频| 99久久精品无码一区二区毛片| 国产精品久久久久91| 五码日韩精品一区二区三区视频 | 日韩在线中文字|