Cov txheej txheem:

Kev Ntsuas Tus Kheej ntawm Cov Mob Ntshav Qab Zib Retinopathy Ntawm MATLAB: 33 Cov Kauj Ruam
Kev Ntsuas Tus Kheej ntawm Cov Mob Ntshav Qab Zib Retinopathy Ntawm MATLAB: 33 Cov Kauj Ruam

Video: Kev Ntsuas Tus Kheej ntawm Cov Mob Ntshav Qab Zib Retinopathy Ntawm MATLAB: 33 Cov Kauj Ruam

Video: Kev Ntsuas Tus Kheej ntawm Cov Mob Ntshav Qab Zib Retinopathy Ntawm MATLAB: 33 Cov Kauj Ruam
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim
Kev Ntsuas Tus Kheej ntawm Cov Mob Ntshav Qab Zib Retinopathy Ntawm MATLAB
Kev Ntsuas Tus Kheej ntawm Cov Mob Ntshav Qab Zib Retinopathy Ntawm MATLAB
Kev Ntsuas Tus Kheej ntawm Cov Mob Ntshav Qab Zib Retinopathy Ntawm MATLAB
Kev Ntsuas Tus Kheej ntawm Cov Mob Ntshav Qab Zib Retinopathy Ntawm MATLAB

(Saib cov qauv kab lus saum toj no)

Mob ntshav qab zib retinopathy yog mob ntshav qab zib ntsig txog qhov muag tshwm sim los ntawm cov ntshav qab zib ntau ntau. Cov ntshav qab zib ntau ntau ua rau cov hlab ntshav hauv cov retinas ua rau o, uas ua rau cov hlab ntsha loj tuaj thiab txawm tias lub nkoj xau, uas ua rau pom qhov tsaus ntuj hauv cov duab retinal. Nrog txoj cai no, peb lub hom phiaj siv cov tsos mob ntawm cov hlab ntshav tawm los ua qhov taw qhia ntawm keeb kwm yav dhau los ntawm kev mob ntshav qab zib retinopathy, txawm hais tias yuav tsum tau siv cov txheej txheem kuaj mob ntxiv hauv ntiaj teb tiag. Lub hom phiaj ntawm txoj cai no yog siv lub tshuab ua duab zoo thiab kuaj pom cov duab retinal los txheeb xyuas cov tsos mob ntawm tus mob ntshav qab zib retinopathy pom los ntawm qhov tsaus ntuj hauv cov duab retinal.

10 cov duab qub qub thiab 10 qhov kuaj pom cov duab retinal tau ua tiav los ntawm tus lej uas xub nyeem thiab lim cov duab thiab tom qab ntawd suav qhov tsaus ntuj los txiav txim siab yog tias muaj cov tsos mob ntshav qab zib retinopathy, tam sim no, raws li qhov pib muab. Cov txiaj ntsig tau luam tawm mus rau lub qhov rai hais kom ua rau cov neeg txhais lus.

Kauj ruam 1: Yam yuavtsum tau kawm uantej

Yam yuavtsum tau kawm uantej
Yam yuavtsum tau kawm uantej

1. Xyuas kom koj tau txais MATLAB program rub tawm hauv koj lub computer.

2. Rub cov ntawv txt pom hauv kab ntawv txuas. (Nias 'ctrl+s' kom txuag rau tib phau ntawv raws li MATLAB Code)

Kauj ruam 2: Yam yuavtsum tau kawm uantej (tsis tau)

Yam yuavtsum tau kawm uantej (kawm uantej)
Yam yuavtsum tau kawm uantej (kawm uantej)
Yam yuavtsum tau kawm uantej (kawm uantej)
Yam yuavtsum tau kawm uantej (kawm uantej)

4. Qhib MATLAB thiab ntaus 'uiimport' rau hauv lub qhov rai hais kom ua.

5. Xaiv cov ntaub ntawv officialdiagnoses.txt thiab xa nws mus rau hauv MATLAB ua cov lej ntawm tes.

6. Nco ntsoov tias koj pom 'kev kuaj mob' raws li qhov sib txawv hauv chaw ua haujlwm.

Kauj Ruam 3: Yam yuavtsum tau kawm uantej (tsis tau)

Yam yuavtsum tau kawm uantej (kawm uantej)
Yam yuavtsum tau kawm uantej (kawm uantej)

7. Rub tawm txoj haujlwm ModWald.m, uas tuaj yeem tau txais los ntawm cov cai saum toj no lossis rub tawm los ntawm Canvas.

(Txoj cai muab los ntawm Professor King thiab Professor Choi)

Kauj ruam 4: Yam yuavtsum tau kawm uantej (tsis tau)

Yam yuavtsum tau kawm uantej (kawm uantej)
Yam yuavtsum tau kawm uantej (kawm uantej)

8. Rub tawm 400 cov duab nyoos los ntawm cov ntaub ntawv ntu ntawm The STARE Project.

Kauj Ruam 5: Ntxuav Matlab txhawm rau Npaj rau Txoj Cai Khiav

Ntxuav Matlab txhawm rau npaj rau Kev Ua Haujlwm Txoj Cai
Ntxuav Matlab txhawm rau npaj rau Kev Ua Haujlwm Txoj Cai

Ntxiv rau cov cai:

1. kaw tag nrho (Kaw tag nrho cov duab qhib yav tas los)

2. clearvars - tshwj tsis yog kev txheeb xyuas kab mob (tshem tawm txhua qhov kev hloov pauv tshwj tsis yog cov ntaub ntawv kuaj mob txt ua ntej tuaj)

3. cclc (Clears Command Window)

Kauj Ruam 6: Xaiv 10 Cov Duab Qhov Muag Li Qub thiab 10 Duab Nrog Cov tsos mob Ntshav Qab Zib Retinopathy

Xaiv 10 Cov Duab Qhov Muag Ib Leeg thiab 10 Duab Nrog Mob Ntshav Qab Zib Retinopathy Cov tsos mob
Xaiv 10 Cov Duab Qhov Muag Ib Leeg thiab 10 Duab Nrog Mob Ntshav Qab Zib Retinopathy Cov tsos mob
Xaiv 10 Cov Duab Qhov Muag Ib Leeg thiab 10 Duab Nrog Mob Ntshav Qab Zib Retinopathy Cov tsos mob
Xaiv 10 Cov Duab Qhov Muag Ib Leeg thiab 10 Duab Nrog Mob Ntshav Qab Zib Retinopathy Cov tsos mob

1. Nqa cov ntawv kuaj mob thiab rho cov duab npe. Cov npe no muaj nyob hauv thawj kab ntawv ntawm kab ntawv txhawm rau rho tawm lawv 'officialdiagnoses (:, 1)'. Cov lej ntawm cov npe duab tau muab rau qhov sib txawv, "all_image_numbers"

2. Hloov pauv tag nrho cov duab_numbers sib txawv los ntawm cov xov tooj ntawm tes mus rau cov lej matrix siv cov haujlwm cell2mat

Kauj Ruam 7: Xaiv 10 Cov Duab Qhov Muag Li Qub thiab 10 Duab Nrog Cov Mob Ntshav Qab Zib Mob Retinopathy (tsis yog)

Xaiv 10 Cov Duab Qhov Muag Ib Leeg thiab 10 Duab Nrog Mob Ntshav Qab Zib Retinopathy Cov tsos mob (tsis yog)
Xaiv 10 Cov Duab Qhov Muag Ib Leeg thiab 10 Duab Nrog Mob Ntshav Qab Zib Retinopathy Cov tsos mob (tsis yog)
Xaiv 10 Cov Duab Qhov Muag Ib Leeg thiab 10 Duab Nrog Mob Ntshav Qab Zib Retinopathy Cov tsos mob (tsis yog)
Xaiv 10 Cov Duab Qhov Muag Ib Leeg thiab 10 Duab Nrog Mob Ntshav Qab Zib Retinopathy Cov tsos mob (tsis yog)

3. Xaiv 10 qhov qub qhov muag pom cov duab kom ua raws txoj cai. Cov duab xaiv hauv qhov no yog 278, 199, 241, 235, 35, 77, 82, 164, 239, 170.

Muab cov lej no tso rau hauv cov lej thiab muab lawv rau qhov sib txawv uas yuav raug hu thaum thauj cov duab.

4. Rov ua cov kauj ruam 3 rau cov duab retinal uas tau kuaj pom tias muaj ntshav qab zib retinopathy. Cov duab xaiv hauv qhov no yog 139, 137, 136, 135, 133, 140, 141, 116, 157, 188.

Kauj Ruam 8: Tsim 2 Qhov Hloov Pauv (Li qub thiab kuaj pom) thiab Teeb Lawv Txhua Qhov Sib npaug rau 0

Tsim 2 Variables (Normal and Diagnosed) thiab Teem Txhua Qhov Sib npaug rau 0
Tsim 2 Variables (Normal and Diagnosed) thiab Teem Txhua Qhov Sib npaug rau 0

Tsim cov kev hloov pauv no ua ntej rau lub voj kom pib ua cov lej lej.

Kauj Ruam 9: Tsim kom muaj Loop kom Tau Txais Upload Cov Duab Ib Leeg

Tsim kom muaj Loop kom Tau Txais Upload Cov Duab Ib Leeg
Tsim kom muaj Loop kom Tau Txais Upload Cov Duab Ib Leeg

1. Tsim kom muaj lub voj

2. Teem ib qhov suav sib txawv (i, qhov no) mus rau qhov sib piv ntawm qhov muaj nuj nqis 1-10. Qhov kev suav qhov sib txawv no yuav raug siv los hu rau txhua tus duab ib tus zuj zus

3. Siv tus lej i hauv cov lej ntawm cov duab los rho tawm thiab hloov lub npe duab los ntawm txoj hlua mus rau tus lej siv tus lej num2str.

Nrhiav tus lej ntawm tus lej tam sim no hauv lub npe duab siv tus lej ua haujlwm. Muab tus nqi no rau qhov sib txawv, digits_normal. Tus lej no yuav tsum yog 1 rau tus lej ib leeg, 2 rau tus lej ob tus lej, thiab 3 rau tus lej thib peb. Cov ntaub ntawv no yuav raug siv los txiav txim siab hu cov duab.

Kauj Ruam 10: Tsim kom muaj Loop kom Tau Txais Upload Cov Duab Ib Leeg (tsis yog)

Tsim kom muaj Loop kom Tau Txais Upload Cov Duab Ib Leeg (tsis yog)
Tsim kom muaj Loop kom Tau Txais Upload Cov Duab Ib Leeg (tsis yog)

3. Tsim ib daim ntawv yog tias muaj tag nrho peb qhov ua tau los ntawm cov kauj ruam dhau los. Yog tias lub npe duab muaj 1 tus lej, daim duab yuav raug hu ua "im000", yog tias nws muaj 2 tus lej, daim duab yuav raug hu ua "im00", thiab yog tias nws muaj 3 daim duab yuav raug hu ua "im0".

4. Hauv qab txhua qhov yog hais tawm, muab qhov sib txawv los nyeem "im" hauv qab qhov sib xws, yog cov lus nrog tus lej zeros (raws li tau piav qhia saum toj no), ua raws li i.

Kauj ruam 11: Qhib ciam teb ntawm daim duab

Qhib ciam teb ntawm daim duab
Qhib ciam teb ntawm daim duab

Coj tus duab qub thiab siv lub lim lim lim los tshem tawm cov ciam teb dub thiab muab rau qhov hloov pauv I_crop. Cov qoob loo qoob loo tau teev tseg siv tus lej [95, 95, 500, 410].

Kauj Ruam 12: Tsim Cov Duab Grey

Tsim kom muaj cov duab Grey
Tsim kom muaj cov duab Grey

Nqa cov duab txiav thiab siv rbg2gray lim los hloov cov duab rau xim dub. Muab cov duab no hloov mus rau I2.

Kauj Ruam 13: Tsim Cov Duab Sib Piv

Tsim Cov Duab Zoo Nkauj
Tsim Cov Duab Zoo Nkauj

Siv daim duab I2 thiab siv qhov tsis ncaj ncees los kho qhov tseem ceeb.

Nqa qhov tseem ceeb uas poob hauv thaj tsam [0.2, 0.7] thiab xa lawv mus rau [0, 1]. Cov gamma tau teeb tsa rau 0.8 kom cov duab ci dua. Muab cov duab tshiab rau I_adjusted.

Kauj Ruam 14: Txhim Kho Cov Duab Zoo Li Cas

Txhim Kho Cov Duab Zoo
Txhim Kho Cov Duab Zoo

Coj I_adjusted duab thiab siv adapthisteq muaj nuj nqi los txhim kho qhov sib piv.

Adapthisteq syntax xav tau lub npe duab, I_adjusted, 'numTiles', qhov loj ntawm numTiles, 'nBins', thiab tus naj npawb ntawm lub thoob. Qhov loj ntawm numTiles tau teeb tsa rau [8 8], faib cov duab rau hauv 8x8 cov vuas thiab cov naj npawb ntawm cov thoob tau teeb tsa rau 28. Muab cov duab rau I_constrast.

Kauj Ruam 15: Tsim Qhov Nruab Nrab Lim

Tsim Qhov Nruab Nrab Lim
Tsim Qhov Nruab Nrab Lim

Tsim qhov sib txawv hu ua 'meanfilt' siv fspecial muaj nuj nqi. Tawm tswv yim 'ua haujlwm nruab nrab' los tsim qhov nruab nrab lim thiab ntxig rau [90 90] rau qhov loj me ntawm lub qhov rais.

Kauj Ruam 16: Muab cov lim nruab nrab nruab nrab nrog cov duab sib piv

Ua ke qhov nruab nrab lim nrog cov duab sib piv
Ua ke qhov nruab nrab lim nrog cov duab sib piv

Tsim qhov hloov pauv tshiab hu ua mask_mean thiab siv qhov ua haujlwm lim dej coj mus rau I_contrast duab thiab txhawm rau siv lub lim nruab nrab uas tau tsim yav tas los.

Kauj Ruam 17: Ua Lub Ntsej Muag Npog Tshiab los ntawm Kev Txiav Tawm Pixels

Ua Lub Ntsej Muag Npog Tshiab los ntawm Kev Txiav Tawm Pixels
Ua Lub Ntsej Muag Npog Tshiab los ntawm Kev Txiav Tawm Pixels

Tsim kom muaj qhov sib txawv hu ua mask_mean2 thiab siv qhov ua haujlwm rho tawm los rho tus nqi ntawm txhua lub pixel hauv I_contrast los ntawm cov pixel sib xws hauv mask_mean.

Kauj Ruam 18: Tsim Binary Filtered Image

Tsim Binary Filtered Duab
Tsim Binary Filtered Duab

Tig cov duab grayscale rau dub thiab dawb siv imbinarize. Cov tswv yim mask_mean2, 'yoog raws', 'ForegroundPolarity', 'tsaus ntuj', 'Sensitivity', 0.6. Muab cov duab tshiab no rau mask_binarize.

Kauj Ruam 19: Tshem Tawm Cov Duab Me Me Pom Hauv Cov Duab Duab

Tshem Tawm Blobs Me Pom Hauv Cov Duab Duab
Tshem Tawm Blobs Me Pom Hauv Cov Duab Duab

Tshem tawm cov khoom nrog kev sib txuas tsawg dua 100 pixels siv bwareaopen ua haujlwm ntawm mask_binarize thiab teeb tus nqi pib mus rau 100. Muab qhov sib txawv ua bw.

Kauj Ruam 20: Tsim Cov Qauv Txheej Txheem Disk

Tsim Disk Structuring Element
Tsim Disk Structuring Element

Tsim cov txheej txheem txheej txheem disk (nrog lub vojvoog ntawm 2) siv cov haujlwm ua haujlwm. Muab nws rau se.

Kauj Ruam 21: Ua Kev Ua Phem Morphological

Ua Morphological Close Operations
Ua Morphological Close Operations

Nqa bw thiab siv qhov kev ua haujlwm imclose rau lub hauv paus txheej txheem kom ua lub morphological kaw haujlwm ntawm qhov khoom.

Kauj Ruam 22: Nrhiav Cov Hom Phiaj Nrog Kev Sib Txuas ntawm Yam Tsawg 8

Nrhiav Cov Hom Phiaj Nrog Kev Sib Txuas ntawm Yam Tsawg 8
Nrhiav Cov Hom Phiaj Nrog Kev Sib Txuas ntawm Yam Tsawg 8

Nqa bw thiab siv bwconncomp txhawm rau nrhiav cov khoom nrog kev sib txuas tsawg kawg 8 hauv daim duab. Muab tus lej tso tawm rau cc_1.

Kauj Ruam 23: Nrhiav Tus Zauv Ntau Tshaj Ntawm Cov Pixels Txuas

Nrhiav Tus Zauv Tshaj Plaws Ntawm Cov Txuas Pixels
Nrhiav Tus Zauv Tshaj Plaws Ntawm Cov Txuas Pixels
Nrhiav Tus Zauv Tshaj Plaws Ntawm Cov Txuas Pixels
Nrhiav Tus Zauv Tshaj Plaws Ntawm Cov Txuas Pixels

Siv cellfun muaj nuj nqi los ua lub luag haujlwm "tus lej" ntawm txhua lub cell hauv CC. Qhov no pom tus lej ntawm cov ntsiab lus hauv PixelIdxList cell. Muab tus nqi rau "numPixels".

Nrhiav qhov siab tshaj plaws hauv numPIxels. Muab qhov loj tshaj plaws siab tshaj plaws rau "loj tshaj" thiab qhov ntsuas ntawm tus nqi siab tshaj rau "idx".

Kauj Ruam 24: Teem Max Max Qhov Muaj Peev Xwm rau 0 thiab Nrhiav Pixels Nrog> = 26 Pixel Kev Sib Txuas

Tshem Tawm Cov Roj Ntshav Hauv Duab
Tshem Tawm Cov Roj Ntshav Hauv Duab

= 26 Pixel Kev Sib Txuas "src =" https://content.instructables.com/ORIG/FXY/DTW3/JEOIIEL4/FXYDTW3JEOIIEL4-p.webp

Daim Duab Zaub
Daim Duab Zaub

= 26 Pixel Kev Sib Txuas "src =" https://content.instructables.com/ORIG/FXO/GBX1/JEOIIELB/FXOGBX1JEOIIELB-p.webp

Tshem Tawm Lub Nkoj thiab Suav Blobs Cov Ntshav
Tshem Tawm Lub Nkoj thiab Suav Blobs Cov Ntshav

= 26 Pixel Kev Sib Txuas "src =" {{file.large_url | ntxiv: 'pib = webp & thav duab = 1 & qhov siab = 300' %} ">

Txheeb Xyuas Cov Duab Retinal Raws Li Tus Naj Npawb Cov Ntshav Teev Taw Qhia
Txheeb Xyuas Cov Duab Retinal Raws Li Tus Naj Npawb Cov Ntshav Teev Taw Qhia

= 26 Pixel Kev Sib Txuas "src =" {{file.large_url | ntxiv: 'pib = webp & thav duab = 1 & qhov siab = 300' %} ">

Teem cov pixels nrog qhov loj tshaj plaws hauv daim duab "bw" rau 0, ua rau cov pixels dub.

Nrhiav cov khoom nrog kev sib txuas tsawg kawg 26 pixels hauv daim duab siv bwconncomp. Muab rau qhov sib txawv cc_1.

Kauj Ruam 25: Tshem Tawm Cov Roj Ntshav Hauv Duab

Tshem tawm cov hlab ntsha tseem muaj nyob hauv daim duab siv bwpropfilt muaj nuj nqi nrog [0, 0.9].

[0.9, 1] raug tshem tawm vim tias qhov tseem ceeb ze rau 1 qhia txog kab. Muab rau "RemoveVessels".

Kauj Ruam 26: Daim Duab Zaub

Tso tawm txhua cov duab lim hauv ib qho subplot. Imshow. nrog 'ciam teb' thiab 'nruj' cov tswv yim, qhia tawm txhua daim duab hauv cov qauv txheej txheem. Ntxiv lub npe rau txhua daim duab kom paub qhov txawv uas lim tau siv.

Kauj Ruam 27: Tshem Tawm Lub Nkoj thiab Suav Blobs Cov Ntshav

1. Siv "RemoveVessels" thiab siv 'Centroid' qhov tshwj xeeb hauv cheeb tsam cov khoom siv los txheeb xyuas cov centroids ntawm cov khoom hauv daim duab. Cov khoom no yuav tsum sib haum nrog cov ntshav txhaws tam sim no hauv daim duab.

2. Suav cov naj npawb ntawm cov ntshav uas tau txheeb xyuas los ntawm kev siv qhov ntev ntawm lub hauv paus nruab nrab.

Kauj Ruam 28: Txheeb Xyuas Cov Duab Retinal Raws Li Tus Zauv Cov Ntshav Ntshav Ntshav

Siv yog cov lus los txheeb xyuas cov duab raws tus naj npawb ntawm cov ntshav txhaws tau txheeb xyuas.

Yog tias tus lej ntawm cov cim hauv nruab nrab tau tsawg dua lossis sib npaug rau 5, daim duab tau txheeb pom tias zoo li qub.

Yog tias tus lej ntawm cov centroids ntau dua 5, daim duab tau kuaj pom tias muaj ntshav qab zib retinopathy.

Qhov txiaj ntsig tau luam tawm rau ntawm lub qhov rai hais kom ua siv fprintf.

Kauj Ruam 29: Yog Muaj Ntau Tshaj 5 Blobs …

Yog tias Muaj Ntau Tshaj 5 Blobs…
Yog tias Muaj Ntau Tshaj 5 Blobs…

Rov hais dua cov lus qhia saum toj no rau cov duab kuaj mob raws li lwm nqe lus. Qhov no yuav ua haujlwm yog tias tus lej blobs ntau dua 5.

Xaus qhov lus hais.

Kauj Ruam 30: Rov Ua Dua Cov Txheej Txheem rau Cov Duab Ib Leeg Nrog Duab Zauv Tus Nqi Raws Li 2 thiab 3

Rov Ua Dua Cov Txheej Txheem rau Cov Duab Ib Leeg Nrog Duab Tus Zauv Zoo Li 2 thiab 3
Rov Ua Dua Cov Txheej Txheem rau Cov Duab Ib Leeg Nrog Duab Tus Zauv Zoo Li 2 thiab 3
Rov Ua Dua Cov Txheej Txheem rau Cov Duab Ib Leeg Nrog Duab Tus Zauv Zoo Li 2 thiab 3
Rov Ua Dua Cov Txheej Txheem rau Cov Duab Ib Leeg Nrog Duab Tus Zauv Zoo Li 2 thiab 3

Rov ua cov txheej txheem rau qhov seem ntawm qhov qub yog cov lus hais thaum tus lej (tus lej ntawm tus lej hauv daim duab) yog sib npaug rau 2 thiab 3. Qhov no ua tiav rau lub voj rau cov duab ib txwm muaj.

Xaus qhov rau lub voj.

Kauj Ruam 31: Rov Ua Dua Cov Txheej Txheem rau Cov Duab Diagnosed

Rov Ua Dua Li Txheej Txheem rau Cov Duab Diagnosed
Rov Ua Dua Li Txheej Txheem rau Cov Duab Diagnosed

Rov ua dua tag nrho cov txheej txheem siv cov duab kuaj pom los ntawm matrix "numbers_to_extract_diagnosed".

Nco ntsoov hla txhua daim duab (i) thiab hloov nws mus rau daim duab (i+10) yog li cov duab kuaj pom yuav tshwm li cov duab 11 txog 20.

Kauj Ruam 32: Txheeb cais

Txheeb cais
Txheeb cais

1. 'Qhov tseeb_Diagnosis_Matrix' yog siv los sib piv cov txiaj ntsig mus rau qhov kev kuaj mob pom nyob hauv cov ntaub ntawv txt. Thawj 10 zeros qhia tias thawj 10 cov duab yuav tsum yog ib txwm muaj. 10 qhov kawg qhia tias 10 daim duab kawg yuav tsum tau muab cais ua ntshav qab zib retinopathy.

2. Ob npaug sib npaug kos npe siv los tsim 'number_correct' tsim cov laj thawj los ntawm kev sib piv tus nqi ntawm cov ntsiab lus sib xws ntawm 'Qhov tseeb_Diagnosis_Matrix' rau 'Diagnosis_Matrix' tsim los ntawm lub voj.

Rau txhua lub ntsiab lus uas phim qhov kev kuaj mob a 1 yuav raug ntxiv, txhais tau tias cov cai raug txheeb xyuas cov duab ntawd. Yog tias nws tsis raug nws yuav ntxiv 0 rau hauv matrix.

Tom qab ntawd, suav tag nrho qhov ntawd ntxiv rau txhua qhov. Hauv lwm lo lus, nws pom cov txiaj ntsig ntawm cov duab kuaj pom raug.

3. 'Final_percentage_correct' yog xam feem pua ntawm qhov tseeb qhov chaws kuaj mob ntshav qab zib retinopathy. Tus naj npawb ntawm cov duab kuaj pom raug muab faib los ntawm 20 (tag nrho cov duab) thiab muab sib npaug los 100 kom pom qhov feem pua ntawm kev kuaj mob ua tiav.

Kauj Ruam 33: Nrhiav Kev Ntseeg Siab

Nrhiav Kev Ntseeg Siab
Nrhiav Kev Ntseeg Siab

1. Xyuas kom koj muaj ModWald.m rub tawm los hu nws ua haujlwm. Tsis muaj lub luag haujlwm, koj yuav tsum tau suav qhov kev ntseeg siab ib ntus siv qhov hloov pauv Wald txoj kev koj tus kheej.

2. ModWald muaj nuj nqi muaj 2 lub tswv yim qhov twg thawj yog tus lej ntawm cov duab raug txheeb xyuas, thiab qhov thib ob yog tag nrho cov duab.

3. ModWald muaj nuj nqi yuav tso tawm qhov qis thiab sab saud ntawm qhov kev ntseeg siab ntawm qhov sib piv rau qhov raug ntawm cov ntaub ntawv piv txwv. Hauv lwm lo lus, nws yuav koj muab ntu luv ntawm qhov feem pua qhov tseeb qhov tseeb ntawm qhov raug ntawm cov cai yuav dag.

4. Siv fprintf hauv qab no los tso tawm cov txheeb cais thiab kev cog qoob loo mus rau qhov hais kom ua qhov rai.

> fprintf ('%. 0f feem pua ntawm cov duab retinal raug kuaj pom tseeb raws li kev kuaj mob. / n / n', Final_percentage_correct)

> fprintf ('Qhov feem pua tseeb uas peb tus lej yuav raug kuaj mob ntshav qab zib retinopathy yuav / n poob mus rau qhov ntau ntawm [%.3f, %.3f], raws li 20 cov duab piv txwv / n', qis dua, sab saud)

Pom zoo: