From 103c17b8bedf6436afa7d96844cff86bd38ec020 Mon Sep 17 00:00:00 2001 From: ZhouTimeMachine <99057383+ZhouTimeMachine@users.noreply.github.com> Date: Mon, 8 Jan 2024 20:05:05 +0800 Subject: [PATCH] release hw5 --- docs/csv/test.csv | 159 ++++-- docs/csv/train.csv | 1367 +++++++++++++++++++++----------------------- docs/hw5.md | 24 +- 3 files changed, 779 insertions(+), 771 deletions(-) diff --git a/docs/csv/test.csv b/docs/csv/test.csv index bf8c1ea..a6b5abd 100644 --- a/docs/csv/test.csv +++ b/docs/csv/test.csv @@ -1,41 +1,122 @@ -munna -espurr -espeon -xerneas -shinx -camerupt -wormadam-plant -gigalith -aerodactyl -raticate -volcanion -bellsprout -oricorio-baile -hariyama -pikipek -ducklett -galvantula -tyranitar -serperior -graveler -maractus -blacephalon -kecleon -sandygast -golduck -masquerain -phione +meowstic-male +crabominable +gligar +ribombee +sharpedo +starmie +virizion +milotic +seadra +delphox +seviper +tangrowth +luxray +salazzle +chansey +butterfree +heatmor +morelull +nidorino +kricketot +spheal +blastoise +togedemaru +golisopod +bouffalant +stunky +magneton +pheromosa +darumaka +joltik +eevee +abomasnow +ampharos +solrock +ponyta +alakazam +nosepass +bulbasaur +qwilfish +slugma +regirock +lombre +zebstrika +lurantis +mienfoo pansear -huntail -scizor -cacnea -clauncher -reshiram -passimian -snorlax -swirlix -skiddo -rhydon -stoutland +infernape +chinchou +furret +ursaring +froslass +barbaracle +slowpoke +arcanine +sandslash +phione +omastar +politoed +tyrunt +pangoro +scatterbug +blacephalon +flygon +wobbuffet +grotle +salandit +shieldon +luxio +dedenne +ditto +mawile +articuno +beartic +zekrom +swadloon +klink +elgyem +bastiodon +jellicent +trumbeak +poliwhirl +kabutops +simipour +yamask +ferrothorn +uxie +cherubi +gurdurr slowking -electivire +porygon2 +carvanha +chingling +makuhita +braviary +seel +talonflame +melmetal +genesect +nidoking +shiinotic +celesteela +braixen +goldeen +latias +buneary +kommo-o +jumpluff +tepig +claydol +clefable +krokorok +nihilego +trevenant +aipom +bronzor +dhelmise +dragonite +pachirisu +rufflet +cosmoem +tapu-bulu +tornadus-incarnate diff --git a/docs/csv/train.csv b/docs/csv/train.csv index 19b01a4..62c68a1 100644 --- a/docs/csv/train.csv +++ b/docs/csv/train.csv @@ -1,768 +1,687 @@ -chimecho -brionne -taillow -entei -snubbull -tentacool -sawk -ninjask -comfey -sunkern -wigglytuff -wishiwashi-solo -sharpedo -quagsire -hitmonchan -manaphy -slowbro -diglett -turtonator -seadra -chespin -rayquaza -pupitar -charmander -kyurem -budew -squirtle -jolteon -skiploom -tapu-koko -starly -shieldon -krabby -zygarde-50 -spoink -tranquill -reuniclus +corphish +grovyle pancham -goomy -marill -dewott -cottonee -kirlia -mantyke -slugma -morelull -regirock +samurott +dustox +deerling +rayquaza +clamperl +sewaddle +tentacool +pinsir +blaziken +surskit natu -larvitar -arcanine -rapidash -steenee -throh -duosion -pikachu +stoutland +poipole +golduck +staravia +frogadier +poliwag +piloswine +salamence +numel +zweilous +lairon +vigoroth +paras +hitmonlee +latios +gastly +krabby +sawk linoone -shellos -solgaleo -whismur -togepi -manectric -staryu -tepig +exeggcute +pawniard +pansage +giratina-altered +jirachi +flabebe +hippopotas +mantyke +snivy +raichu mudsdale -toxapex -boldore -vanilluxe -landorus-incarnate -ampharos -tapu-fini -incineroar -bewear -shroomish -croagunk -charizard -excadrill -pidgey -tynamo -crustle -regigigas -groudon -sliggoo -drilbur -mawile -shedinja -dodrio -oshawott -illumise -hoopa-confined -lombre -rotom -sawsbuck -spritzee -larvesta -swellow -meltan -togetic -skuntank -mienshao -noivern -timburr -stunky -pumpkaboo-average -snover -dragalge -petilil -bidoof -mimikyu -furfrou -vespiquen -avalugg -deoxys-normal -grubbin -floette -cubchoo -yanmega -vaporeon -gastly -watchog +panpour +skitty ledian -solosis -golurk -glalie -dedenne -simipour -medicham +victreebel +zorua +probopass +hypno +wormadam-plant +phantump +vibrava +carracosta +spoink +magmortar +nidoran-m +horsea +tynamo +growlithe +jigglypuff +haunter +tropius +durant +tyrantrum +swirlix +grumpig +regice +fletchinder +golett +porygon +shroomish +audino +kricketune +poochyena +venipede +delibird +whismur +tirtouga +dragonair empoleon -geodude -volcarona +wailmer +munna +shelmet +diggersby +palpitoad +landorus-incarnate +zapdos cascoon -fraxure -spearow +bruxish komala -rowlet -pidove -scrafty -musharna -poochyena -swampert -forretress -lugia -talonflame -swanna -amoonguss -weezing -pelipper -nihilego -poliwrath -meloetta-aria -altaria -cleffa -kyogre -phantump -dhelmise -grotle -qwilfish -feebas -furret -ribombee -araquanid -lickitung -electrike -claydol -nidorino -mantine -drifblim -quilava -tsareena -shellder -meowstic-male -numel -finneon -bonsly -yungoos -purrloin -abomasnow +gastrodon ariados -miltank +araquanid +minccino baltoy -ditto -buneary -bellossom -clefable -krookodile -gengar -snivy -beldum -drowzee -burmy -flabebe -duskull -leavanny -cosmoem -treecko -spinarak -blastoise -combusken -sandshrew -azurill -jellicent -sealeo -kabuto -genesect -celesteela -cubone -braviary -silcoon -wurmple -arbok -naganadel -alomomola -clamperl -zorua -castform -plusle -hypno -shelgon -skrelp -decidueye -persian -dugtrio -abra -golisopod -servine -weavile -onix -drampa -carnivine -aipom -sewaddle -dusclops -blaziken -kingler -relicanth -liepard -cloyster -chinchou -emboar -sableye -parasect -popplio -fennekin -murkrow -dartrix -dusknoir -magmar -elgyem -yanma -garbodor -hitmontop -rattata -corphish -gardevoir -sandile -necrozma -type-null -banette -lickilicky -roggenrola -bayleef -meowth -foongus -voltorb +rapidash +marowak +geodude +archen +azumarill noctowl -carbink -victreebel -cresselia -chikorita -magmortar -pangoro -cinccino -melmetal -sunflora -grumpig -trevenant -swalot -pawniard -roselia -cyndaquil +toxicroak +meltan +hippowdon +rotom +ludicolo +zygarde-50 +vaporeon +koffing +nidoqueen +goodra +flareon +floatzel +larvitar +delcatty +ivysaur +mankey +incineroar +togetic +quilladin dewgong -omastar -vivillon -greninja -lanturn +vullaby +kirlia glameow -raikou -shuppet -poipole -krokorok -metang -spewpa -nidoran-f -salamence -buzzwole -shiinotic -beedrill -granbull -kakuna -uxie -kricketune -amaura -salazzle -shiftry -zubat -ekans -yveltal -xurkitree +snover +crabrawler +chikorita +mismagius +chandelure +sableye +smoochum lucario -kangaskhan -probopass -gothorita -trubbish -hakamo-o -skitty -whiscash -umbreon -malamar -ursaring -wynaut -toxicroak -dratini -monferno -pignite -scyther -thundurus-incarnate -mareep -latias -stakataka -magby -lopunny -zebstrika -heracross -kingdra -luvdisc -honedge -flareon -machamp -sigilyph -gogoat -glaceon -stufful -marshtomp -venomoth -gorebyss +lunatone +celebi +barboach +oddish +weedle +kadabra +mandibuzz +gloom +amoonguss +crawdaunt +purugly zeraora -cobalion -woobat -rufflet -cryogonal -magearna -swadloon +kingler +espurr +garchomp +riolu +drifloon breloom -cherrim -doublade -tapu-lele -aromatisse -florges -tyrogue -eelektross -machop -zapdos -croconaw -lampent -clawitzer -golem -simisage +unown tangela -nuzleaf -haxorus -happiny -anorith -dwebble +leafeon +grimer +goomy +kartana +machop +bibarel +zoroark +budew +karrablast +rhydon +cloyster +lopunny +servine +hitmonchan +sylveon +torracat +spewpa +oshawott +unfezant +treecko +buizel +furfrou +weepinbell +rhyhorn +chimecho +vulpix +zangoose +snubbull +lugia +misdreavus +ambipom +duskull +honedge +lycanroc-midday +gourgeist-average +arbok +togepi +scolipede +kakuna +larvesta +huntail +gyarados +jynx +persian shaymin-land -slurpuff -munchlax -snorunt -venonat -swoobat -solrock -rockruff -azelf -torterra +slakoth +skuntank +sunkern +mienshao +amaura +metapod +jolteon +roggenrola +hitmontop +beheeyem +feebas +pidgeotto +hawlucha +lunala archeops +magmar +charmander +igglybuff +wingull +fletchling +golbat +charjabug +mimikyu +duosion +aerodactyl +tympole +forretress volbeat -noibat -zigzagoon -gible -delphox -diggersby -swinub -rhyhorn -magnezone -giratina-altered -remoraid -prinplup -octillery -lapras -crawdaunt -meganium -seedot -seel -elekid -zangoose -butterfree -tyrunt -togekiss +groudon +dugtrio +regigigas +pichu +volcarona +wurmple +bellsprout +cubone +ledyba +rattata +dusclops +skiddo +yanmega +guzzlord +toxapex +trubbish +quilava +inkay +lotad +croagunk +liepard +escavalier caterpie -suicune -cradily -typhlosion -heatmor -exeggcute -lilligant -porygon2 -wailmer -flygon -raichu +croconaw +brionne +doduo +loudred +cinccino +swinub +scraggy +tranquill +clawitzer +abra +cacturne mr-mime -klefki -makuhita -unfezant -primeape -heatran -delcatty -steelix +comfey +starly +vanillish +wailord +mesprit +staraptor +ekans +cradily +nidorina +sunflora +castform +tyrogue +purrloin +florges +heliolisk +cobalion +sliggoo +aron +carbink +solosis +spiritomb +bewear +kabuto +swampert +totodile metagross -chesnaught -wooper -cacturne +frillish +simisage +slowbro +typhlosion +cosmog +swoobat +drampa +espeon +shelgon +pidgey +grubbin combee -terrakion -bounsweet -politoed -palkia -vullaby -litleo -trumbeak -panpour -wartortle -gallade -meditite -braixen -ninetales -weedle -chandelure -cranidos -phanpy -gulpin -dragonair -delibird -aurorus +druddigon +mantine +gigalith +happiny magnemite -carvanha -quilladin -bagon -klinklang -corsola -silvally -trapinch -nidoqueen -crabrawler -jumpluff +skarmory +skorupi +plusle +kangaskhan +pikipek +moltres +reshiram +greninja +lillipup +cresselia +taillow +electabuzz +chespin +bonsly +ferroseed +poliwrath +mightyena +dewott +gothorita +burmy +palossand +gulpin +weavile +anorith +clauncher +litwick +garbodor stantler -smeargle -metapod -hoothoot -deerling -mothim -loudred +eelektrik +wimpod +rowlet +hariyama +voltorb +naganadel +squirtle +basculin-red-striped +aromatisse +stufful +accelgor +heracross +wigglytuff +yungoos +registeel +spinarak +vanilluxe +kyurem +oranguru +wooper +haxorus +seismitoad +vespiquen +ducklett +petilil +scyther +ho-oh +umbreon gothita -vulpix -skorupi -jynx -archen -drifloon pyroar -magikarp -turtwig -absol -igglybuff -staravia -scolipede -patrat -bastiodon -kartana -armaldo -beartic -eevee -porygon-z -teddiursa -exploud +pikachu +darmanitan-standard +floette +watchog +exeggutor +torchic +jangmo-o +crustle +masquerain +graveler +dialga +deoxys-normal +minior-meteor +type-null bergmite -drapion -chingling -dewpider -goodra -bisharp -ivysaur -doduo -hawlucha -celebi -unown -sylveon -basculin-red-striped -cherubi -minccino -marowak -vibrava -lumineon -vigoroth +walrein donphan -escavalier -chansey -gligar -mamoswine -pinsir -pheromosa -venusaur -stunfisk -mankey -wailord -nincada -accelgor -ledyba -druddigon -garchomp -ferrothorn -conkeldurr -pyukumuku -milotic -gurdurr -spiritomb -mismagius -seviper -binacle +alomomola +spritzee +xerneas +ninjask +phanpy +drowzee +excadrill +miltank +zubat +bayleef +psyduck +corsola +eelektross +raikou +heatran +yveltal +slaking +slurpuff +smeargle +emolga +armaldo +sealeo +diancie +mime-jr +lumineon +xatu +lileep +mew +remoraid +turtonator +noivern +magnezone +glaceon +tauros +pignite +exploud +clefairy +shellos beautifly -sudowoodo -virizion -guzzlord -klink +luvdisc +shuppet +shiftry +terrakion +reuniclus +hoopa-confined +nincada +onix +dwebble +banette +snorunt +sigilyph +absol +pelipper +doublade +bunnelby +seedot +tyranitar +electrode +keldeo-ordinary +tapu-fini +xurkitree +kingdra +togekiss +solgaleo +chatot +wynaut +medicham +whimsicott +monferno +vivillon +thundurus-incarnate +hoppip +hakamo-o +cubchoo +lilligant +vileplume +meditite +magearna +roselia +manectric +silcoon +sawsbuck +cleffa +metang +simisear +torterra +houndour +galvantula +decidueye +machoke chimchar -gumshoos -gastrodon -piloswine -smoochum -emolga -minun -poliwag -infernape -kricketot -fearow -karrablast -darumaka +froakie +oricorio-baile rampardos -cosmog -gyarados -scraggy -seismitoad -porygon -venipede -electrode -inkay +snorlax +turtwig +dartrix +wartortle +magcargo +passimian +munchlax +sandshrew +helioptile +granbull +manaphy +sudowoodo +bisharp +swellow +shedinja +venomoth +pumpkaboo-average +pupitar +dodrio +binacle +muk +camerupt +tsareena +machamp +flaaffy +steelix +cofagrigus +combusken +illumise +octillery +shuckle +aegislash-blade +cutiefly +gabite +hoothoot +maractus +wishiwashi-solo +conkeldurr +pidove +mudkip +swalot +leavanny +cranidos +omanyte +sceptile +noibat +nuzleaf +gorebyss +seaking +golurk +torkoal +bellossom +weezing +elekid +tapu-lele +throh +ninetales +vikavolt +dewpider +azelf +foongus +raticate +litleo +mewtwo +krookodile +primeape +steenee +lanturn +parasect +porygon-z +lickilicky +nidoran-f +herdier +chesnaught +blissey +altaria +magikarp +diglett +cacnea +silvally +tapu-koko +buzzwole +bounsweet +farfetchd +sneasel +rockruff +blitzle +scrafty +drilbur +serperior +arceus +shinx +fennekin +meowth +bronzong +mudbray +gardevoir +staryu +meganium +hydreigon +patrat +yanma +axew +tentacruel +meloetta-aria +dusknoir +kecleon +sandile +entei +drifblim +klinklang gliscor -mareanie -buizel -mightyena -bronzong -luxray +quagsire +trapinch +marshtomp +beedrill +crobat +piplup +necrozma +stakataka +fraxure +mothim +magby +victini whirlipede -beheeyem +woobat +houndoom +charizard +emboar +sandygast spinda -mime-jr -dialga -charmeleon -azumarill -houndour -barbaracle -jangmo-o -grovyle -darmanitan-standard -wingull -tropius -zekrom +honchkrow +venusaur +ralts darkrai -tirtouga -sceptile -ambipom -pachirisu -totodile -tyrantrum -xatu -piplup -slakoth -swablu -torracat -palpitoad -deino -surskit -lunala -jigglypuff -weepinbell +marill +venonat +girafarig +aurorus +popplio +fearow +primarina +mamoswine +swanna +electrike +kyogre +gothitelle +cyndaquil litten -mudbray -slaking -wimpod -audino -grimer -houndoom -bruxish -koffing -articuno -pansage -ferroseed -hydreigon -fletchinder +dratini +mareep +gible +feraligatr klang -jirachi -alakazam -oranguru -zweilous -barboach -whimsicott -nidoran-m -litwick -shuckle -magcargo -aggron -mesprit -vanillite -electabuzz -lunatone -fletchling -sentret -mudkip -psyduck -kadabra -minior-meteor +bidoof +lapras +scizor +marshadow +zigzagoon +drapion +swablu +fomantis +suicune +klefki +musharna +avalugg pidgeot -torkoal -keldeo-ordinary +boldore +skiploom +cottonee +relicanth +glalie +prinplup +volcanion +mareanie +spearow +gumshoos +gallade +cherrim dunsparce -froslass -vikavolt -bouffalant -palossand -golett -samurott -marshadow -lillipup -exeggutor -hoppip -durant -gabite -gourgeist-average -eelektrik -machoke -slowpoke -misdreavus -spheal -primarina -floatzel -yamask -oddish -feraligatr -pidgeotto -mew -clefairy -flaaffy -helioptile -joltik -starmie -lycanroc-midday -bulbasaur -hippowdon -registeel -wobbuffet -dragonite -haunter -scatterbug -ho-oh -hitmonlee -regice -charjabug -vanillish -axew -mienfoo -pineco -luxio -honchkrow -diancie -arceus -crobat -lairon -cutiefly -poliwhirl +pyukumuku +teddiursa +gengar +charmeleon +aggron +carnivine +timburr +stunfisk +dragalge +deino roserade -lotad -gloom -hippopotas -shelmet -torchic -chatot -gothitelle -walrein -nidoking -aegislash-blade -crabominable -simisear +finneon +palkia +pineco +vanillite +whiscash toucannon -tornadus-incarnate -muk -bibarel -paras -ralts -frogadier -fomantis -goldeen -nidorina -horsea -skarmory -tapu-bulu -dustox -togedemaru -tentacruel -carracosta -magneton -sneasel -staraptor -seaking -salandit -tympole -nosepass -blitzle -riolu -golbat -lurantis -heliolisk -tangrowth -purugly -froakie -victini -ludicolo -girafarig -kabutops -bunnelby -frillish -mandibuzz +lickitung +golem +minun +azurill +shellder +skrelp +electivire +murkrow +cryogonal +bagon rhyperior -ponyta -vileplume -tauros -bronzor -lileep -leafeon -cofagrigus -pichu -omanyte -latios -herdier -sandslash -mewtwo -aron -blissey -growlithe -zoroark -farfetchd -kommo-o -moltres +gogoat +malamar +beldum +sentret +lampent diff --git a/docs/hw5.md b/docs/hw5.md index 6044a1c..0e31b68 100644 --- a/docs/hw5.md +++ b/docs/hw5.md @@ -2,8 +2,6 @@ # HW5: Learning CNN++ -!!! warning "该实验尚未正式发布,实验内容随时可能变化" - ## 实验简介 - [Kaggle](https://zh.wikipedia.org/wiki/Kaggle):谷歌旗下的数据科学竞赛平台,有开放的比赛、数据集、模型、讨论等,用户可以参与比赛打榜、获取数据集练习、分享自己模型与经验 @@ -53,10 +51,18 @@ ### 训练集-测试集划分 -对于训练集和测试集划分,使用统一的 [train.csv](csv/train.csv) 和 [test.csv](csv/test.csv),分别包含 768 只和 41 只宝可梦。 +对于训练集和测试集划分,使用统一的 [train.csv](csv/train.csv) 和 [test.csv](csv/test.csv),分别包含 687 只和 122 只宝可梦。 不允许使用别的训练集、测试集设置,不必引入交叉验证集。 +### 测试集泄露 + +- 要求的训练集含 687 只宝可梦,测试集含 122 只宝可梦 +- 测试集泄露指使用训练集和测试集全部数据(共 809 只宝可梦)进行训练 +- 而正确的操作是不应该泄露测试集,只根据训练集 687 只宝可梦进行训练 + +如果测试集泄露,理论上可以让模型“记住”测试集的数据,从而达到神乎其神的 100% 测试准确率,而这显然是不对的。 + ## 实验任务与要求 !!! warning "不允许直接使用各种深度学习开发工具已训练好的网络结构与参数" @@ -66,22 +72,24 @@ ### 实验要求 -基本要求包括: +**基本要求**包括: 1. 使用 PyTorch 自己设计 CNN,**自己训练**完成 [Pokemon Image Dataset](https://www.kaggle.com/datasets/vishalsubbiah/pokemon-images-and-types/data) 上的精灵宝可梦类型预测任务 > 可以自己设计 CNN,可以参考案例中的 CNN,也可以修改 LeNet 等结构,但是不允许使用预训练参数,必须从头训练 -1. 应用**数据增广**方法 -2. **调整超参数**进行对比实验,对测试集上的准确率等实验结果进行**比较分析** -3. 要求给出使用当前训练集、测试集划分配置(768 + 41)在测试集上的准确率,并给出将全部数据进行训练(测试集泄露)后在测试集上的准确率,进行对比分析 +2. 应用**数据增广**方法 +3. **调整超参数**进行对比实验,对测试集上的准确率等实验结果进行**比较分析** +4. 要求在测试集泄露和不泄露两种情况下进行训练,在测试集上进行测试对比 > 点击下载要求的训练集、测试集划分配置:[train.csv](csv/train.csv) 和 [test.csv](csv/test.csv) -扩展要求为尝试采用不同的网络结构应用于该任务,进行实验与比较。实验基础知识部分提供了一些可以参考的思路。 +**扩展要求**为尝试修改网络结构甚至采用新的架构应用于该任务,进行实验与比较。实验基础知识部分提供了一些可以参考的思路。 ### 提交要求 **截止时间:2024 年 1 月 24 日上午**,详见[学在浙大](https://courses.zju.edu.cn) +!!! warning "大家特别注意:ddl 之后马上要批改并提交总成绩,所以若 ddl 前没能提交该作业将按零分计算" + 你需要提交: 1. 全部代码