snake-dqn njengendlela eya ML

Программирование

Ifunyenwe kwi-tensorflow-js into oyifunayo kumanyathelo okuqala kwi-ML kunye nokurhweba.

Olu luqeqesho lwe-dqn apho imivuzo kunye nezohlwayo zinikezelwa kwi-arhente ngezenzo.

https://github.com/tensorflow/tfjs-examples/tree/master/snake-dqn

https://storage.googleapis.com/tfjs-examples/snake-dqn/index.html

Kuyavela ukuba sinenyoka efunda kumava ayo ukuhamba. Unenani elithile leentshukumo (jika okanye uqhubeke) kwaye umsebenzi wakhe kukufika kwisiqhamo. Ekuqaleni, inyoka ayiyazi indlela, kodwa ngexesha loqeqesho, ifumana amandla okufumana iziqhamo kunye ne-dodge. Ifana kakhulu norhwebo, akunjalo?

Ewe, ubuncinci bomsebenzi wethu, xa sinedatha esebenzayo, kwaye irobhothi kufuneka yenze isigqibo sokuthenga okanye ukuthengisa.

I-minus yenyoka kukuba ibhaliwe kwi-node.js, kwaye kufuneka sikwazi ukuqeqesha kwi-browser (ukuze nawuphi na umsebenzisi angayenza). Ngoko ke, kwakumele kwenziwe okufanayo kumxhasi.

Ndatsala inyoka njengoko injalo kwiphepha lam ngetshathi ndazama ukuyivula. Yayingekho!

Inyoka yazilwela

iipakethi kuqala,

emva koko iingxoxo. (ngendlela, ndenze nesicelo sokutsala ecaleni kokulungiswa https://github.com/tensorflow/tfjs-examples/pull/353),

emva koko %% Ukwala okungaphathwanga (TypeError): Ayinakubiza udidi njengomsebenzi%%. Yintoni elungiswayo apha https://github.com/tensorflow/tfjs/pull/3906/files, kodwa ukusukela oko Akukabikho kukhululwa, ngoko kuye kwafuneka ndiyitshintshe ngezandla zam. Apha, ngendlela, abantu abaninzi banengxaki https://github.com/tensorflow/tfjs/issues/3384.

Abancinci sele behambele phambili, njengokutshintsha umsebenzi kwi-fs nge indexeddb. Umsebenzi endiye ndahlola ngawo apha, ngendlela. Ewe, ngokubanzi, inqwelo-pole yandikhuthaza ukuba ndenze yonke into kumxhasi.

https://github.com/tensorflow/tfjs-examples/tree/master/cart-pole

https://storage.googleapis.com/tfjs-examples/cart-pole/dist/index.html

ekugqibeleni, kwenzeka oku:

https://github.com/pskucherov/opexflow/pull/16/files

Ewe, eneneni, inyathelo elilandelayo liya kuba:

  1. Yanele kwiitshathi
  2. Umbono
  3. Qeqesha irobhothi kwidatha eyaziwayo ukubonisa esona siphumo siphezulu

Apha ngezantsi kukho idemo yevidiyo yoqeqesho lomsebenzi weerobhothi kumxhasi. Ngenye imini baya kurhweba ngekamva le-Sberbank endaweni yam.

pskucherov
Rate author
Add a comment